Page 1 of 1

nagios monitoring a failover process

Posted: Thu Aug 29, 2013 3:48 am
by chrislewis28
Hi,

We have a service which runs in a failover mode and I would like Nagios to monitor it. The logic would be:

check if process is running on host A if yes return OK status, if no check if process is running on host B if yes return OK status if no return critical status.

Is there a way Nagios can do this without me having to write my own plugin?

Chris

Re: nagios monitoring a failover process

Posted: Thu Aug 29, 2013 4:27 am
by gshergill
Hi chrislewis28,

I think you may be looking for service dependency.

Check these links, they should provide you with the details.

http://nagios.sourceforge.net/docs/3_0/ ... dependency
http://nagios.sourceforge.net/docs/3_0/ ... ncies.html

Good luck!

Kind Regards,

Gary Shergill

Re: nagios monitoring a failover process

Posted: Thu Aug 29, 2013 11:15 am
by sreinhardt
I would agree, that service dependencies may be one way to do it, however it sounds like you could write a script that takes both hosts and the service to check. Checks the first provided, if off, checks the second host, if both are off fails critical. Off hand I do not know of a check that does this, but with more information regarding what this service is maybe we can find something.