Disabling service checks when a host is down

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Disabling service checks when a host is down

Post 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?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Disabling service checks when a host is down

Post 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.
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: Disabling service checks when a host is down

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Disabling service checks when a host is down

Post 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.
Former Nagios employee
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: Disabling service checks when a host is down

Post by snapon_admin »

Perfect, thanks! Yeah that's the one I was looking for. What directory is nagios.cfg in again?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Disabling service checks when a host is down

Post by tmcdonald »

/usr/local/nagios/etc/nagios.cfg is standard for an XI install.
Former Nagios employee
Locked