Page 1 of 1

Do not receive notifications from services if host is down

Posted: Tue Jun 11, 2019 10:10 am
by ericclaus
Hello,


I would like to configure all hosts and services so that if a host becomes unreachable I do not receive notifications about the host's services being down as well (e.g. if a host stops responding to ping, I don't care if it's memory usage check fails).

I'm relatively new to Nagios and haven't found a way to accomplish this yet. What is the best way to go about doing this?

Thank you in advance.

Re: Do not receive notifications from services if host is do

Posted: Tue Jun 11, 2019 10:41 am
by lmiltchev
Actually, this is the "default" nagios behavior.
If the host is in hard non-OK state, notifications for services on this host won't be sent out.
See full documentation below:

https://assets.nagios.com/downloads/nag ... tions.html

If this is not working for you, we need to investigate, and find out what is causing the issue. You can check to see if you have multiple nagios processes running on the system by running:

Code: Select all

ps -ef | grep nagios.cfg | grep -v grep
We would need to see the nagios.log, showing the host going down in a hard down state, and notifications for services on that host being sent.

Re: Do not receive notifications from services if host is do

Posted: Tue Jun 11, 2019 11:44 am
by ericclaus
Thanks for your quick reply! I'll see if I can replicate the issue again and update this later this afternoon.

Re: Do not receive notifications from services if host is do

Posted: Tue Jun 11, 2019 11:46 am
by lmiltchev
Sure, let us know if you have any further questions/issues. Thank you!