Hosts Down - Stop performing its service checks

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Hosts Down - Stop performing its service checks

Post 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
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Hosts Down - Stop performing its service checks

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Hosts Down - Stop performing its service checks

Post 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.
Last edited by tmcdonald on Mon Dec 21, 2015 1:36 pm, edited 1 time in total.
Reason: Edited for clarity
Former Nagios employee
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: Hosts Down - Stop performing its service checks

Post by brdr »

We check host alive in a host template. When the host goes down the service checks for the host continues to check.
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: Hosts Down - Stop performing its service checks

Post by brdr »

perfect! Thx T!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Hosts Down - Stop performing its service checks

Post 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.
Former Nagios employee
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Hosts Down - Stop performing its service checks

Post by eloyd »

Thanks, @TM. I guess I need to read more gooder. :-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Hosts Down - Stop performing its service checks

Post 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?
Former Nagios Employee
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: Hosts Down - Stop performing its service checks

Post by brdr »

please do!!
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Hosts Down - Stop performing its service checks

Post 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.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked