Hi, we have XI5.2.2
What is the preferred method to not have Nagios perform a hosts service checks when the host is down?
Note: We currently do not use PING service checks.
Thx
Hosts Down - Stop performing its service checks
Re: Hosts Down - Stop performing its service checks
How do you know the host is down if you are not pinging it? Whatever that method is, use that for the check_host_command and Nagios will see the host as down if the check fails.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Hosts Down - Stop performing its service checks
He's referring to the service checks for that host.
I added the host_down_disable_service_checks option to Core a little while ago for this very reason:
https://github.com/NagiosEnterprises/na ... 1236-L1247
If you set host_down_disable_service_checks=1 in nagios.cfg and restart, it should skip checks on services whose host is down anything other than UP. This was added in 4.1.0.
I added the host_down_disable_service_checks option to Core a little while ago for this very reason:
https://github.com/NagiosEnterprises/na ... 1236-L1247
If you set host_down_disable_service_checks=1 in nagios.cfg and restart, it should skip checks on services whose host is down anything other than UP. This was added in 4.1.0.
Last edited by tmcdonald on Mon Dec 21, 2015 1:36 pm, edited 1 time in total.
Reason: Edited for clarity
Reason: Edited for clarity
Former Nagios employee
Re: Hosts Down - Stop performing its service checks
We check host alive in a host template. When the host goes down the service checks for the host continues to check.
Re: Hosts Down - Stop performing its service checks
perfect! Thx T!
Re: Hosts Down - Stop performing its service checks
Glad I could help! Lemme know how it works out.
One caveat is that the services, since they are not checked, will retain whatever state they had before the host went down, so even if they would still be OK even though the host is DOWN, they will stay as whatever they were.
One caveat is that the services, since they are not checked, will retain whatever state they had before the host went down, so even if they would still be OK even though the host is DOWN, they will stay as whatever they were.
Former Nagios employee
Re: Hosts Down - Stop performing its service checks
Thanks, @TM. I guess I need to read more gooder. 
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Hosts Down - Stop performing its service checks
@eloyd - Great thoughting going on there.eloyd wrote:Thanks, @TM. I guess I need to read more gooder.
@brdr - Do you mind if I mark this thread as resolved and close it out?
Former Nagios Employee
Re: Hosts Down - Stop performing its service checks
Glad we were able to help. We'll lock this thread now and feel free to open another should you require assistance with anything else.
Be sure to check out the Knowledgebase for helpful articles and solutions!