Page 1 of 1

Service Dependency

Posted: Mon Jun 17, 2019 6:44 am
by nms
To whom it may concern,

We have made some tests on the service dependencies. The scenario is that all the services of the host are dependent on one service which is the ping. It connects to the server via ssh. We want to achieve the goal that when the server is down, the other services wouldn't be executed.

Also, is it possible that the services are dependent on the host rather on a particular service?

Can you kindly help us with the above?


Best Regards,
James

Re: Service Dependency

Posted: Mon Jun 17, 2019 11:15 am
by benjaminsmith
Hi James,
Also, is it possible that the services are dependent on the host rather on a particular service?
One thing to remember is that in Nagios all services are associated with a host, so when you create a service dependency where one service is dependent upon another service you also have to include the hosts as well in the definition. In short, every service definition requires the host/service and the dependent host / dependent service.

However, there is the option to disable service checks when the host is down on a global basis in the nagios configuration file /usr/local/nagios/etc/nagios.cfg.

Code: Select all

host_down_disable_service_checks=1
Please see: Nagios XI - Service Dependencies

Let me know if you have any other questions.