Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to initiate Discovery health rules

pavansakala
Tera Contributor

How to initiate Discovery health rules in ServiceNow

2 REPLIES 2

pratikjagtap
Giga Guru
Giga Guru

Hi @pavansakala ,

Discovery Health Rules are checks that run after Discovery scans, helping validate:

  • CI creation success

  • Duplicate CI detection

  • IP range issues

  • Pattern/probe failures

  • Classification problems

Health Rules Run Automatically After a Discovery

  • When you run Discovery on a schedule or manually via a Quick Discovery, ServiceNow automatically triggers the health rules based on the configuration.

  • No need to manually call them unless you're troubleshooting or testing.

Health Rules Run Automatically After a Discovery

  • When you run Discovery on a schedule or manually via a Quick Discovery, ServiceNow automatically triggers the health rules based on the configuration.

  • No need to manually call them unless you're troubleshooting or testing.

var dhm = new DiscoveryHealthManager();
dhm.runHealthRules();

 

Steps to View / Manage Discovery Health Rules

  1. Go to Discovery > Discovery Health > Health Rules

  2. You’ll see a list of out-of-the-box (OOB) rules like:

    • Duplicate Windows Servers

    • Misclassified Linux devices

    • Devices with missing serial numbers

  3. You can:

    • Activate/deactivate rules

    • Customize conditions

    • Create new ones using standard filters

Each rule defines:

  • What CI class it targets (e.g., cmdb_ci_win_server)

  • What condition it checks for

  • Whether it’s critical

To view the outcomes of the health rules:

  1. Go to Discovery > Discovery Health > Health Results

  2. Filter by:

    • Discovery run

    • Timeframe

    • CI class or IP range

These results help you clean up your CMDB and improve Discovery quality.


🧪 Use in Dashboards or Alerts

You can display Discovery Health Rule results in:

  • CMDB Health Dashboards

  • Discovery Reports

  • Notifications (if you want to alert teams when critical rules are triggered)

If my response helped, please hit the 👍Thumb Icon and accept the solution so that it benefits future readers.

 

Regards,
Pratik

Peter Bodelier1
Tera Contributor

@pratikjagtap Isn't it great how AI can make stuff up that doesn't exist?