Event Handlers

Chris Purcell nagios at cjp.us
Thu Jul 22 17:02:30 CEST 2004


I'm having a problem getting Nagios to execute any event handlers when a
service or host goes down.  As a test, I wrote a Perl script called
nagios_test.pl that will simply email me a short message each time its
run.  The event handler never runs when the host goes down...

hosts.cfg

define host{
        use               generic-host
        host_name         fake_server
        alias             Fake Non-existent Server
        address           192.0.99.101
        parents           cat4506
        }


services.cfg

define service{
        use                   generic-ping
        host_name             fake_server
        event_handler         event_handler_testing
        }


checkcommands.cfg

define command{
        command_name    event_handler_testing
        command_line    /usr/local/nagios/libexec/nagios_test.pl
$SERVICESTATE$ $STATETYPE$ $SERVICEATTEMPT$
        }


I get a notification from Nagios when the host goes down, but the event
handler perl script never runs at all.   I don't see anything in the logs
about the event handler trying to execute.   The nagios user can run the
script from the shell.  Am I missing something?

Thanks,
Chris





-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
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