Cutting down on notifications

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
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

Cutting down on notifications

Post by t3dus »

So I'm looking to cut down on the number of notifications I get for a single issue.

My issue is if my webserver goes down (Which I monitor) I also get complains about the websites I monitor on the same said server.

I thought i had it setup so if the "parent" host goes down the children don't notify me for the same outage but that isn't the case.

Example: If Host A goes down and site example.com lists Host A as a parent I still get notified about example.com being down.
steffi
Posts: 25
Joined: Wed Mar 06, 2019 9:43 am

Re: Cutting down on notifications

Post by steffi »

I thought i had it setup so if the "parent" host goes down the children don't notify me for the same outage but that isn't the case.
The option is named "parents", not parent.
Did you verify your nagios.cfg/restart server after changes? Or is "parent" just a typo?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Cutting down on notifications

Post by benjaminsmith »

As @steffi mentioned, verify your configuration and then restart nagios. If your still having the issue, post the configurtion definitions for us to review.

To verify your configuration:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
To restart nagios:

Code: Select all

service nagios restart
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

Re: Cutting down on notifications

Post by t3dus »

You are right. I meant to say "parents" and yes it's specified but still get notifications from both the parents and the child when the server is down.

Do I need to specify some sort of delay so i don't get notifications from the child when the parents is down?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Cutting down on notifications

Post by benjaminsmith »

Hi @t3dus,

You're probably are receiving notifications because those child hosts are configured to notify when they are in an unreachable state. Check the notification options in your configuration files.

See this page for more information:
Determining Status and Reachability of Network Hosts
If you want to spare yourself from a flood of UNREACHABLE notifications during network outages, you can exclude the unreachable (u) option from the notification_options directive in your host definitions and/or the host_notification_options directive in your contact definitions.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

Re: Cutting down on notifications

Post by t3dus »

benjaminsmith wrote:Hi @t3dus,

You're probably are receiving notifications because those child hosts are configured to notify when they are in an unreachable state. Check the notification options in your configuration files.

See this page for more information:
Determining Status and Reachability of Network Hosts
If you want to spare yourself from a flood of UNREACHABLE notifications during network outages, you can exclude the unreachable (u) option from the notification_options directive in your host definitions and/or the host_notification_options directive in your contact definitions.
I guess that's one way to do it.

I was picturing it would work like this link https://assets.nagios.com/downloads/nag ... ncies.html by default but apparently it doesn't.

What I want is if the parent host is down (aka a router) that all the other hosts/services after that don't notify me and spam my e-mail.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Cutting down on notifications

Post by benjaminsmith »

Hi @t3dus,
I was picturing it would work like this link https://assets.nagios.com/downloads/nag ... ncies.html by default but apparently it doesn't.
Can you post your configuration definitions for us to review.

There's also a configuration setting in /usr/local/nagios/etc/nagios.cfg that will allow you to disable service checks when the host is down on system wide basis.

Code: Select all

host_down_disable_service_checks=1
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
telix
Posts: 3
Joined: Fri Mar 08, 2019 12:35 am

Re: Cutting down on notifications

Post by telix »

I used to use this technique of making socket timeouts return an UNKNOWN state instead of CRITICAL .
Then to disable service alarms on UNKNOWN
https://chriscarey.com/blog/2012/06/09/ ... ds-alerts/

Wish I knew about this host_down_disable_service_checks=1 setting! Looks like a much better approach and exactly what was needed
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Cutting down on notifications

Post by lmiltchev »

You are right. I meant to say "parents" and yes it's specified but still get notifications from both the parents and the child when the server is down.
@t3dus, what kind of notifications are you receiving? Can you show us an actual email notification that you received? Have you excluded the unreachable (u) option from the notification_options directive in your host definitions and/or the host_notification_options directive in your contact definitions? Can you show us sample configs?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked