I’ve got a problem with executing an event handler in my Nagios. I am locking for a possibility to check what nagios is doing. I can see, in the nagios.log, that it should be executed. But nothing happens.
Screenshot of Nagios.log:
I write this script to restart the spooler service on our Server. Her it is:
I created it in the "/usr/lib/nagios/Plugins/RemoteRestartNTServices.cmd". To avoid access-problems, I changed the owner an give anybody access to it.
To debug the script, I write every step in a log-File called RemoteRestartNTServices.log. Bevor any command is executed, an “echo start >> RemoteRestartNTServices.log” would be executed.
But the RemoteRestartNTServices.log will not be written und even if I create a RemoteRestartNTServices.log nothing will be written in it.
How can I debug this?
Dos anyone see any failure?
Thanks for your help,