1

Executing a script from Nagios event handler fails to run

view story
linux-howto

http://unix.stackexchange.com – I have Nagios running on a webserver. For this one Nagios service check in particular, if it fails, it will run a script. This script is triggered via Nagios event handlers. Nagios event handler command: define command{ command_name testDisableServer command_line /usr/local/nagios/etc/objects/event_handlers/testDisableServer.sh } I am executing a script called testDisableServer.sh from Nagios event handlers that looks like this: #!/bin/bash wall "Script execution started"; /usr/bin/sudo /root/scripts/disableServer.sh force This script 'testDisableServer.sh' has t (HowTos)