Page 1 of 1

Custom notifications for two hosts.

Posted: Wed Aug 24, 2016 9:40 am
by Johnjones
I have two hosts H1 and H2. when H1 is down it should create a Warning notification instead of down when H2 is up. I tried to use BPI for this but the notification sent from BPI doesn't have any information on which host is down. Is there way to customize the BPI notification to send the status of all the hosts with hostnames that are in problem condition in the group.

Re: Custom notifications for two hosts.

Posted: Wed Aug 24, 2016 3:49 pm
by tmcdonald
Are you also looking for the reverse, where H2 will not alert if H1 is up?

Re: Custom notifications for two hosts.

Posted: Wed Aug 24, 2016 8:22 pm
by Box293
An alternative to this is to use the check_clusters plugin. You could have a ping service on each host, and use the status of those services for the check_cluster plugin (the check_cluster plugin is used for the host check).

Have a read up about it here:
https://assets.nagios.com/downloads/nag ... sters.html