This is a cache of https://support.nagios.com/kb/article/nagios-xi-service-dependencies-505.html. It is a snapshot of the page at 2025-05-14T00:41:06.450+0000.
Nagios <strong>xi</strong> - Service Dependencies
Home » Categories » Products » Nagios xi » Documentation » Best Practices

Nagios xi - Service Dependencies

Overview

This guide on Best Practices briefly explains service dependencies in Nagios xi.

 

Service Dependencies

When a host goes down, the services still get executed and can result in services in an unknown or critical state. Nagios suppresses any notifications however they still appear as critical in the interface.

Sometimes a host can be up but the monitoring agent can be down. An example of this is an NRPE agent.

By using service dependencies, if the master service goes down, you prevent notifications being sent OR prevent checks from being executed. Either option simply pushes the next check or notification to the next interval.

This is very similar to this KB article "Intervals - Host vs Service", make sure your master service goes down HARD before the dependent services, use different check intervals or retries.

Master service e.g. - Ping or NRPE Version.

 

Disable Service Checks

A new feature of Nagios Core 4.1.0 (included in xi 5 onwards) is a configuration directive called host_down_disable_service_checks.

  • It’s best described as automatic service dependencies on their own hosts.

  • System wide setting, this applies across the board, it is not granular.Can reduce the load on the xi host as plugins will not be executed if this host is down.

    • Define in /usr/local/nagios/etc/nagios.cfg
      • host_down_disable_service_checks=1
      • Can also be defined via CCM > Advanced > Nagios Core Main Config

      • Restart nagios monitoring engine or Apply Configuration for setting to take effect

  • Keep in mind that if the host is down then any defined service dependencies will be ignored.

 

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

2.83 (6)
Article Rating (6 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios xi - Configuration Wizards and Templates
Viewed 11479 times since Tue, May 3, 2016
Nagios xi - Check Interval Considerations
Viewed 8151 times since Tue, May 3, 2016
Nagios xi - MRTG Clean Configs
Viewed 8689 times since Tue, May 3, 2016
Nagios xi - xi Server Considerations
Viewed 7934 times since Mon, May 2, 2016
Nagios xi - Macros and Custom Object Variables
Viewed 8209 times since Tue, May 3, 2016
Nagios xi - Groups
Viewed 10232 times since Tue, May 3, 2016
Nagios xi - Best Practices for Managing Configs
Viewed 8920 times since Wed, Jul 19, 2017
Nagios xi - What Is Monitoring xi ?
Viewed 4692 times since Mon, May 2, 2016
Nagios xi - Monitoring the Nagios xi "localhost"
Viewed 9064 times since Mon, May 2, 2016