Accelerate 'OS and Application Monitoring' objects to 'Not Existing' state for faster deletion from Inventory
search cancel

Accelerate 'OS and Application Monitoring' objects to 'Not Existing' state for faster deletion from Inventory

book

Article ID: 439881

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

Currently, the default setting to retain a resource in the No Data Receiving state is 7 days.

However, an Operations admin might want to clean up application resources from the Operations inventory and move the resources to the Not Existing state for various use cases, such as Dashboard and Relationship updates.

Environment

VCF Operations 9.0.0 and above

Resolution

Workaround to achieve the desired state needs Operations administrator to update a default property in the AppOSUCP adapter config file running the Cloud Proxy appliances, where Telegraf agents are monitored.

Modify the collection cycle threshold on the Cloud Proxy to accelerate the removal of objects that no longer exist.

  1. Log in to the Cloud Proxy appliance via SSH as the root user.
  2. Navigate to the adapter configuration directory:
    cd /usr/lib/vmware-vcops/user/plugins/inbound/AppOSUCPAdapter3/conf/
  3. Backup the configuration file:
    cp config.properties config.properties.bak
  4. Edit the file:
    vi config.properties
  5. Locate and update the following property from 2016 to 7:
    MAX_COLLECTION_CYCLE_FOR_NOT_EXISTING_STATE=7
  6. Save the file and restart the collector service to apply the change:
    service vmware-vcops restart collector

Additional Information

Please note that the changes to the config.properties file are reset on upgrade. The above change will need to be re-implemented after upgrade, as the OS and Application Monitoring adapter is refreshed on upgrade.

 

The MAX_COLLECTION_CYCLE_FOR_NOT_EXISTING_STATE value indicates the amount of collection cycles it takes for an object to go into the Not Existing state. The default value is 2016 collection cycles, where a collection cycle is 5 minutes.

2016 * 5 = 10080 minutes
10080 / 60 = 168 hours
168 / 24 = 7 days

The value specified in the resolution above, 7 collection cycles, equals 35 minutes. This can be adjusted as desired, but it's not recommended to make this value lower than the proposed value.