Sevice Dependencies

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Sevice Dependencies

Post by lmiltchev »

I wouldn't try setting this up with service dependencies. The easiest way to do this would be via the Nagios BPI.
Create a new BPI Group, add hosts A & B (these would be the ping checks for both hosts), set the "Health Thresholds" as "Warning" = 49 and "Critical" = 48.
If one of the two hosts goes down, the status of the BPI group would be still "OK". If both go down, status will change to "Critical".
After you are done, run the "BPI Wizard" to set up check for your BPI group.
Be sure to check out our Knowledgebase for helpful articles and solutions!
hasnatawan
Posts: 5
Joined: Tue Apr 30, 2013 1:57 am

Re: Sevice Dependencies

Post by hasnatawan »

thank you very much for you guidance but actually what i want to know is that notification(email ) to be sent when both of them are down is it possible ?( currently i configured bpi group but it send email when one of then is down.)
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Sevice Dependencies

Post by sreinhardt »

It should be yes, you most likely will want to look at using the bpi wizard within nagios to check against the status of your groups. This way you can get alerts specifically when a group is in a critical or failed state. If you are looking to modify the alerts already coming from nagios for a service that is dependent on two other services, you may wish to disable or alter notifications for that dependent service and use the bpi check for most notifications.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked