Disabling service checks when a host is down
- snapon_admin
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
- Contact:
Disabling service checks when a host is down
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
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.
Please let us know if you have any additional questions.
- 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
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
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.
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
- 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
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
/usr/local/nagios/etc/nagios.cfg is standard for an XI install.
Former Nagios employee