Summarized email for child objects when parent 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
jason_jackal
Posts: 6
Joined: Wed Nov 05, 2014 3:34 pm

Summarized email for child objects when parent is down

Post 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)
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Summarized email for child objects when parent is down

Post by rhassing »

You could also change the content of the first message to "Please check Nagios, something is really wrong" :-)
Rob Hassing
Image
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Summarized email for child objects when parent is down

Post 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.
Rob Hassing
Image
jason_jackal
Posts: 6
Joined: Wed Nov 05, 2014 3:34 pm

Re: Summarized email for child objects when parent is down

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Summarized email for child objects when parent is down

Post 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.
Former Nagios Employee
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Summarized email for child objects when parent is down

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