Page 1 of 1

Disabling service checks when a host is down

Posted: Tue Dec 27, 2016 11:27 am
by snapon_admin
I know this was added to Core awhile back, but for some reason I can't find the post explaining what file to edit and what needs to be edited to enable this feature. Can someone point me in the right direction for setting service checks to disabled when hosts are down please?

Re: Disabling service checks when a host is down

Posted: Tue Dec 27, 2016 12:53 pm
by dwhitfield
I think you are looking for https://assets.nagios.com/downloads/nag ... ncies.html but if that doesn't seem right, then you are probably looking for https://assets.nagios.com/downloads/nag ... bject.html.

Please let us know if you have any additional questions.

Re: Disabling service checks when a host is down

Posted: Tue Dec 27, 2016 2:34 pm
by snapon_admin
I don't believe either of those are what I'm looking for. It's defintely not service dependencies. This is something that was added into core awhile back, there's a line of code that needs to be changed I believe that makes it so that service checks are not ran if the host they belong to is down.

Re: Disabling service checks when a host is down

Posted: Tue Dec 27, 2016 2:37 pm
by tmcdonald
I wrote that, actually :)

https://github.com/NagiosEnterprises/nagioscore/pull/44

Set host_down_disable_service_checks=1 in nagios.cfg and restart. The service state will not change when skipped in this manner. The option was added strictly for decreasing CPU usage when a host goes down.

Re: Disabling service checks when a host is down

Posted: Tue Dec 27, 2016 2:39 pm
by snapon_admin
Perfect, thanks! Yeah that's the one I was looking for. What directory is nagios.cfg in again?

Re: Disabling service checks when a host is down

Posted: Tue Dec 27, 2016 2:43 pm
by tmcdonald
/usr/local/nagios/etc/nagios.cfg is standard for an XI install.