Nagios sending service notifications when host is DOWN

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jaxon
Posts: 9
Joined: Mon Sep 28, 2015 9:16 am

Nagios sending service notifications when host is DOWN

Post by jaxon »

Hi Support,

I noticed that Nagios is sending service notifications when its corresponding host server is down or not reachable.
How can I configure Nagios to send service notification only when host is UP and Reachable.

Quick and Simple solutions is highly appreciated, configuring services dependency would be tedious job for each service and host. :)

I am using Nagios Ver. 4.

Thanks,
Jayesh
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios sending service notifications when host is DOWN

Post by hsmith »

Are you using templates?
Former Nagios Employee.
me.
jaxon
Posts: 9
Joined: Mon Sep 28, 2015 9:16 am

Re: Nagios sending service notifications when host is DOWN

Post by jaxon »

hsmith wrote:Are you using templates?
Yes I am using templates, But those are default one.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios sending service notifications when host is DOWN

Post by Box293 »

When a host goes down, it suppresses it's services from sending notifications, however the services will still continue to be checked (unlike in dependencies).

One of the most overlooked setting is having your host and service check intervals set to the same. When this occurs, your service objects can send notifications out before the host object goes down.

I have this explained in a lot more detail here:
http://sites.box293.com/nagios/guides/c ... -intervals

Also, a new feature in Nagios Core 4.1.x is called host_down_disable_service_checks. It can be explained as automatic service dependencies for a hosts services.

My advice is as follows:

Make sure your host objects have the correct intervals so the host object goes down before the services do.
AND
Upgrade to Nagios Core 4.1.1 an implement the host_down_disable_service_checks=1 setting in nagios.cfg.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked