I did. And just did again to be sure. Changed the check service and variable definition to only worry about one service as shown below.jdalrymple wrote:Did you try it with only 1 failed service for sure? We have to crawl before we can walk.
Code: Select all
host_name [hostname]
service_description #TEST restart dead service
use #standard-service
check_command check_nrpe!check_service!service=mfcom!'crit=not state_is_ok()'!!!!!
event_handler restart_service
event_handler_enabled 1
_SERVICE mfcom
register 1The script works when restarting the service alone via command line.
Code: Select all
./check_nrpe -H [hostname] -p 5666 -t 30 -c restart_service -a mfcom
The Citrix MFCOM Service service is stopping.
The Citrix MFCOM Service service was stopped successfully.
The Citrix MFCOM Service service is starting.
The Citrix MFCOM Service service was started successfully.|