Page 1 of 1

Hosts Down - Stop performing its service checks

Posted: Mon Dec 21, 2015 1:27 pm
by brdr
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

Re: Hosts Down - Stop performing its service checks

Posted: Mon Dec 21, 2015 1:30 pm
by eloyd
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.

Re: Hosts Down - Stop performing its service checks

Posted: Mon Dec 21, 2015 1:33 pm
by tmcdonald
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.

Re: Hosts Down - Stop performing its service checks

Posted: Mon Dec 21, 2015 1:36 pm
by brdr
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

Posted: Mon Dec 21, 2015 1:39 pm
by brdr
perfect! Thx T!

Re: Hosts Down - Stop performing its service checks

Posted: Mon Dec 21, 2015 1:57 pm
by tmcdonald
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.

Re: Hosts Down - Stop performing its service checks

Posted: Mon Dec 21, 2015 1:59 pm
by eloyd
Thanks, @TM. I guess I need to read more gooder. :-)

Re: Hosts Down - Stop performing its service checks

Posted: Mon Dec 21, 2015 2:40 pm
by rkennedy
eloyd wrote:Thanks, @TM. I guess I need to read more gooder. :-)
@eloyd - Great thoughting going on there.

@brdr - Do you mind if I mark this thread as resolved and close it out?

Re: Hosts Down - Stop performing its service checks

Posted: Tue Dec 22, 2015 3:04 pm
by brdr
please do!!

Re: Hosts Down - Stop performing its service checks

Posted: Tue Dec 22, 2015 3:21 pm
by bwallace
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.