Best practice for only showing specific classes on the CMDB Health dashboard

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2024 11:48 AM
Hi,
I would like the CMDB Health Dashboard to only calculate metrics for a few specific classes, e.g. Network Gear, Server, etc. What is the best practice to use Health inclusion rules effectively without having to define a Health inclusion rule for each class I want to avoid? Is it best practice to define the Health inclusion rule at the base CMDB class and call out the class names I want to include?
Regards,
Ayman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2024 11:53 AM
I usually like to white list. For the base CI class I add an invalid query like "Sys ID is empty" and then include ONLY the class branches that I want to include. Unfortunately there is no way OOB to abstract those inclusion rules to look at Principal CI Classes, but there are still opportunities to leverage the principal class attribute to drive a more consistent approach to CMDB Health configuration.
The opinions expressed here are the opinions of the author, and are not endorsed by ServiceNow or any other employer, company, or entity.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2024 11:00 AM
Thanks @CMDB Whisperer . Yes, I saw an earlier post from you on this and looks like this best possible approach to this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2024 08:23 AM
If we created a new T/F field to replicate the Principal Class setting, that could be used as a filter in Health Inclusion, couldnt it? I ask because I'm in the same boat. Our count of Principal classes grows and grows, prefer the update to Health be automatic in some fashion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2024 01:11 PM - edited ‎04-16-2024 01:11 PM
I haven't done it myself but in theory you should be able to devise a Script Include to help you filter based on Principal Class without having to add a separate field to do this. So in your inclusion filter you would have a condition like Class -> is one of -> javascript:getPrincipalClassNames().
The opinions expressed here are the opinions of the author, and are not endorsed by ServiceNow or any other employer, company, or entity.