Page 1 of 1

Summarized email for child objects when parent is down

Posted: Mon Dec 28, 2015 10:26 am
by jason_jackal
Folks:
Is it possible to get a summarized email that lists affected child objects when a parent object goes down? I am trying to limit the number of emails that I receive when I have an outage of parent object, which has 20 different child objects.

This might seem odd, but I have staff members that forget to check child objects when there is an outage.

So - is it possible to get one outage email that lists or summarized affected devices down-stream?

Example
Parent object (Main Layer 3 cisco switch)
child object (Layer 2 switch)
child object (layer 2 switch)
child object(server)

Re: Summarized email for child objects when parent is down

Posted: Mon Dec 28, 2015 10:32 am
by rhassing
You could also change the content of the first message to "Please check Nagios, something is really wrong" :-)

Re: Summarized email for child objects when parent is down

Posted: Mon Dec 28, 2015 10:34 am
by rhassing
I'm not familiar with the fact if it is possible to create a message which tells about the childs? I would first check if there are macros available.

Re: Summarized email for child objects when parent is down

Posted: Mon Dec 28, 2015 10:40 am
by jason_jackal
rhassing wrote:You could also change the content of the first message to "Please check Nagios, something is really wrong" :-)
Hi rhassing - thank you for your quick response. As a stop-gap, this is what I am doing now; however, I thought a summarized email would assist in troubleshooting from mobile devices that do not have vpn connectivity to view objects that "might" be affected. Currently - I do not expose my Nagios server to the Internet, and due to the latter a vpn is required.

I am not always able to get to a computer with vpn connectivity to review outages, and affected devices.


Thank you

Re: Summarized email for child objects when parent is down

Posted: Mon Dec 28, 2015 4:19 pm
by rkennedy
Currently, I don't think Nagios will be able to do this out of the box.

As for possible, yes, I believe it is. It would take a bit of custom development though. You would need to create a custom script to query those results in question, and then send the results out.

Re: Summarized email for child objects when parent is down

Posted: Mon Dec 28, 2015 4:21 pm
by lmiltchev
I am trying to limit the number of emails that I receive when I have an outage of parent object, which has 20 different child objects.
If you set up the parent/child relationships properly, instead of "Down", you would get "Unreachable" states for the children. Then you can exclude "Unreachable" states from notifications.
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.
https://assets.nagios.com/downloads/nag ... ility.html