I'm trying to implement my first event handler but I cannot get it to trigger. I am following the guide from here to restart a Windows service - http://assets.nagios.com/downloads/nagi ... h_NRPE.pdf
I am running Nagios XI 2011R2.3 on Centos 6.2 on VMWare (the pre-built image available for download), Nagios itself has been upgraded a couple of times
The Event Handler script itself is working fine, I can execute this manually and my windows service will start successfully. Using some logging in the handler script I can determine it is never run, so it must be bad configuration in my nagios instance
I've setup a command as follows...
Command: WindowsService__Restart
Command line: $USER1$/servicestart.sh $SERVICESTATE$ $HOSTADDRESS$ $_SERVICESERVICE$
Command type: misc command
Active: enabled
The service...
Event handler: WindowsService__Restart
Event handler enabled: on
The service uses a couple of templates, Event Handler is empty and Event handler enabled is skip. There is also a service escalation in use (first notification=1) if relevant
any help would be appreciated, many thanks