Parent/Child "Recovery" Notifications
Posted: Wed Oct 10, 2018 5:02 pm
Hi. This may belong in NagiosCore but since I have XI....
1) What is the macro/variable name to call a host's parent host?
2) What's the best way to get Nagios to run a check (event handler? script?) before sending "RECOVERY" emails for a child and if the host's $LASTHOSTSTATE$ == "UNREACHABLE" [and it's parent's $LASTHOSTSTATE$ == "DOWN"], to skip sending the "RECOVERY" notification and retry the check again at the next check interval. otherwise, it can send the "RECOVERY" email.
Background:
I inherited a chatty Nagios system and I'm working to clean it up. I assigned parents to my hosts which took care of the unwanted "DOWN" notifications for the child hosts. However, the "RECOVERY" emails are not working as needed.
When a child host goes "UNREACHABLE" because it's parent is "DOWN", I do not need or want 25+ "RECOVERY" emails from the child hosts when the parent comes back up. I need 1 "RECOVERY" email. From the parent host. Otherwise it's confusing to the system owners.
However, disabling all the "RECOVERY" emails for the child is not a viable option. If the child goes "DOWN" on it's own, I most certainly want a "RECOVERY" alert for that.
What I can do to fix this?
Here's the requested system info:
Linux Distro CentOS 6.3
32 or 64bit? 64-bit
VMware or Manual? VMware XI Appliance
Is Gnome installed? No
Are you using a proxy? Yes
Are you using SSL? Yes
Nagios XI Version 5.5.2
Thanks for your help!
Allison
1) What is the macro/variable name to call a host's parent host?
2) What's the best way to get Nagios to run a check (event handler? script?) before sending "RECOVERY" emails for a child and if the host's $LASTHOSTSTATE$ == "UNREACHABLE" [and it's parent's $LASTHOSTSTATE$ == "DOWN"], to skip sending the "RECOVERY" notification and retry the check again at the next check interval. otherwise, it can send the "RECOVERY" email.
Background:
I inherited a chatty Nagios system and I'm working to clean it up. I assigned parents to my hosts which took care of the unwanted "DOWN" notifications for the child hosts. However, the "RECOVERY" emails are not working as needed.
When a child host goes "UNREACHABLE" because it's parent is "DOWN", I do not need or want 25+ "RECOVERY" emails from the child hosts when the parent comes back up. I need 1 "RECOVERY" email. From the parent host. Otherwise it's confusing to the system owners.
However, disabling all the "RECOVERY" emails for the child is not a viable option. If the child goes "DOWN" on it's own, I most certainly want a "RECOVERY" alert for that.
What I can do to fix this?
Here's the requested system info:
Linux Distro CentOS 6.3
32 or 64bit? 64-bit
VMware or Manual? VMware XI Appliance
Is Gnome installed? No
Are you using a proxy? Yes
Are you using SSL? Yes
Nagios XI Version 5.5.2
Thanks for your help!
Allison