Event Handler not firing

Martin, Stanley G [CC] Stanley.G.Martin at mail.sprint.com
Wed Oct 15 16:23:16 CEST 2003


I finally got an event setup to fire when a service on a Win2K boxes
stops running.  However, when the service goes CRITICAL and HARD, the
job is not being run.  The nagios.log file says it is, but my script is
written in Perl with outputs to a logfile that isn't getting touched.  I
can run the script manually just fine.

Nagios.log entry:
[1066226354] SERVICE ALERT: kcncap17;Crystal Page
Server;CRITICAL;SOFT;1; pageserver: Stopped
[1066226354] SERVICE EVENT HANDLER: kcncap17;Crystal Page
Server;CRITICAL;SOFT;1;restart-service
[1066226414] SERVICE ALERT: kcncap17;Crystal Page
Server;CRITICAL;SOFT;2; pageserver: Stopped
[1066226414] SERVICE EVENT HANDLER: kcncap17;Crystal Page
Server;CRITICAL;SOFT;2;restart-service
[1066226474] SERVICE ALERT: kcncap17;Crystal Page
Server;CRITICAL;HARD;3; pageserver: Stopped
[1066226474] SERVICE EVENT HANDLER: kcncap17;Crystal Page
Server;CRITICAL;HARD;3;restart-service

ommand.cfg entry for event:
define command {
    command_name    restart-service
    command_line
/usr/local/nagios/libexec/eventhandlers/restart_service $HOSTNAME$
$SERVICEDESC$ $SERVICESTSATE$ $STATETYPE$
}

Event Script: /usr/local/nagios/libexec/eventhandlers
-rwxr-xr-x    1 nagios   nagios       3613 Oct 15 08:29 restart_service


Any ideas why this isn't actually running the script?  Is there another
logfile I could look at that might tell me something?

Stanley G. Martin
System Administrator
Sprint - EAS Business Intelligence 
Stanley.G.Martin at mail.sprint.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031015/b42d2612/attachment.html>


More information about the Users mailing list