I monitor multiple Windows Server Services by using host attributes. My check for a windows service looks like this:
check_nrpe -H $HOSTADDRESS$ -c nsc_checkservicestate -a 'ShowAll "%WINDOWS_SERV%=started"'
I have several services that I check on each host and when they don't start I'd like them to be restarted.
On the Service Check that I use on the Advanced tab I've entered in the following for Event Handler:
windows_service_restart $SERVICESTATE$ $HOSTADDRESS$ %WINDOWS_SERV%
It doesn't seem to work with the attribute in there but does work if i specify the service like 'spooler' or another specific one. Any ideas on how i can have it restart multiple services?