Define Multiple Event Handlers

Andreas Ericsson ae at op5.se
Fri Feb 22 09:12:07 CET 2013


On 02/21/2013 09:16 PM, Travis Runyard wrote:
> I'm trying to define multiple event handlers for a service but am getting
> the error during preflight check:
> Error: Event handler command 'update-nagex,reset-proc' specified in service
> 
> I've tried two different ways to define it in the service:
> 
> event_handler  update-nagex,reset-proc
> 
> and
> 
> event_handler update-nagex
> event_handler reset-proc
> 
> When I define them on separate lines, Nagios seems to only pick up the last
> event_handler defined which is reset-proc
> 
> Any ideas?

Create a wrapper script that runs both handlers with their proper
arguments.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list