While engaging in several vC Ops projects – the question that i get to asked quite often is: ” what are those blue question mark resources?! ”
if you’re not sure what i’m talking about, follow this steps:
- Login to the Custom UI – https://<IP_Address_of_vCOPS>/Custom
- Click on “Environment” Tab and navigate to “Environment Overview”
- On the left pane – navigate to “Adapter Kinds” -> “VMware Adapter”
- Sort by “Health”
So, couple of things to know about the “riddle metric”:
- The reason for the blue question mark is that vC Ops objects aren’t being deleted automatically after the object is being removed from the vCenter.
- The blue question mark can be every resource in the virtual environment – Hosts, VM’s, Datastores, etc…
- in earlier versions, before 5.8, the default value of “deleteNonExisting” is False.
And now for the fun part – how can we resolve it?
Well, actuality this is pretty simple – all we need to do is editing the “deleteNotExisting” entry.
- Using SSH – connect to the Analytics VM as root.
Personally – I like to use WinSCP, which i find very comfortable.
- Navigate to the following location:
” /usr/lib/vmware-vcops/user/conf/controller ”
- Open ” controller.properties ” file
- Locate the ” deleteNonExisting ” entry, and set the value to true
deleteNotExisting = true
- Save and close the file
- Login to the UI VM with Admin user and run the following: “vcops-admin restart“
there are two more entries, colored in blue, that can be changed. It’s totally up to you if you decided to change the default values.
the two entries are:
deletionSchedulePeriod = hours
Which is basically the number of hours after which the object is deleted
deletionPeriod = days
Defines the number of days after which object is cleaned.
After following this procedure – all the blue ? in under environment status should be cleared.
With that – i think I will close this post.
So – stay tuned on Virtual Jedi for more goodies!