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

ayman_h
Kilo Sage
Kilo Sage

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

5 REPLIES 5

CMDB Whisperer
Mega Sage
Mega Sage

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.

Thanks @CMDB Whisperer . Yes, I saw an earlier post from you on this and looks like this best possible approach to this

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. 

 

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.