Page 1 of 1

Using event handler in Nagios

Posted: Wed Aug 26, 2015 11:25 am
by yunushaikh
Hello Experts,

I have two servers (192.168.0.1 and 192.168.0.2) on which tomcat service runs tomcat service name is 'tomcat7'

At a time only 1 server has the service in start state.

I need Nagios to monitor both the services. As one service will always be stopped I dont want notification alerts to be recieved until the service is started on one server.

If the service stops on first server then I want Nagios to check if service is started on another server.
and if service is not started then I should get an alert

Is there any possible way to do this using event handler?
Please suggest

Re: Using event handler in Nagios

Posted: Wed Aug 26, 2015 11:58 am
by hsmith
yunushaikh wrote:Hello Experts,

I have two servers (192.168.0.1 and 192.168.0.2) on which tomcat service runs tomcat service name is 'tomcat7'

At a time only 1 server has the service in start state.

I need Nagios to monitor both the services. As one service will always be stopped I dont want notification alerts to be recieved until the service is started on one server.

If the service stops on first server then I want Nagios to check if service is started on another server.
and if service is not started then I should get an alert

Is there any possible way to do this using event handler?
Please suggest
Hi yunushaikh,

You could do this using a combination of event handlers and the negate plugin(this document is for XI, but the same ideas still apply for Core).