Stale CIs

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2025 12:28 PM
Hello,
I am getting CIs in my Stale CIs report that are not stale. Some are still being discovered, some are retired due to business rule, therefor shouldnt be stale as those also were just decommissioned a few weeks ago. I set a health inclusion rule to not pull any Install Status CIs that are retired, but it still is. Is there a rule somewhere else that I need to set that is over riding my health inclusion rule. I am only noticing this on VM's on vCenter.
Thank you
Nikki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2025 11:34 PM
Step 1: Use Scripted Inclusion Rule
Go to CMDB Health > Configuration > Health Inclusion Rules.
Click New → Choose Staleness as type.
For Class: cmdb_ci_vmware_instance
Set Active = true
Use this Script:
(function executeRule(ci) {
return ci.install_status != 7; // Exclude Retired VMs
})(current);
Step 2: Link Rule to Staleness Schedule
Go to CMDB Health > Staleness > Schedules
Find the schedule for cmdb_ci_vmware_instance or parent class.
Edit it → Set Inclusion Rule to the one you created.
Save and run the schedule.
See if this works for you.
✔️ If this solves your issue, please mark it as Correct.
✔️ If you found it helpful, please mark it as Helpful.
—
Shubham Jain