Unable to execute script using event_handler

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Unable to execute script using event_handler

Post by tgriep »

Check the remote system's log files to see why the command ran on the Nagios system but did not run the command on the remote system, there has to be a permission / login account issue that is keeping the command from running.
You can try running the command as the nagios user again but enabling verbose mode by adding the -vvv to the command like the example below. That may tell you why it it not working.

Code: Select all

su - nagios
sshpass -p 'P@ssword123*' ssh -vvv -tt -l [email protected] 10.0.254.4 'schtasks /Run /TN Shutdown_ALL_INFRA'
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked