Hello,
thanks for your help.
The command just executes fines without any error. But nothing happens on my other (windows) server.
thanks
Bruno
Search found 6 matches
- Mon Jun 12, 2017 8:16 am
- Forum: Nagios XI
- Topic: Unable to execute script using event_handler
- Replies: 10
- Views: 6779
- Thu Jun 08, 2017 9:47 am
- Forum: Nagios XI
- Topic: Unable to execute script using event_handler
- Replies: 10
- Views: 6779
Re: Unable to execute script using event_handler
output of sudoers file ## Sudoers allows particular users to run various commands as ## the root user, without needing the root password. ## ## Examples are provided at the bottom of the file for collections ## of related commands, which can then be delegated out to particular ## users or groups. ##...
- Thu Jun 08, 2017 9:44 am
- Forum: Nagios XI
- Topic: Unable to execute script using event_handler
- Replies: 10
- Views: 6779
- Thu Jun 08, 2017 3:53 am
- Forum: Nagios XI
- Topic: Unable to execute script using event_handler
- Replies: 10
- Views: 6779
Re: Unable to execute script using event_handler
thanks for your reply but same errors and still no run with nagios user or eventhandler [1496911822] HOST ALERT: event_handler_test;DOWN;HARD;1;test [1496911822] GLOBAL HOST EVENT HANDLER: event_handler_test;DOWN;HARD;1;xi_host_event_handler [1496911822] HOST EVENT HANDLER: event_handler_test;DOWN;H...
- Wed Jun 07, 2017 8:51 am
- Forum: Nagios XI
- Topic: Unable to execute script using event_handler
- Replies: 10
- Views: 6779
Re: Unable to execute script using event_handler
Thanks for your help ! here the full script "event_handler_shutdown.sh" #!/bin/bash set -x DATE=$(date) echo "Power has been lost at $DATE" >> /usr/local/nagios/libexec/tmp/shutdown_log.txt sshpass -p 'P@ssword123' ssh -tt -l administrator@domain.local 10.0.254.4 "schtasks /...
- Wed May 31, 2017 10:21 am
- Forum: Nagios XI
- Topic: Unable to execute script using event_handler
- Replies: 10
- Views: 6779
Unable to execute script using event_handler
Hello, I'm encountering an issue using event_handler to run a script (the script juste start a scheduled task on a windows server, that initiates a shutdown of all virtual machines in my infrastructure using powercli). When i'm starting the script manually, everything is going fine. i'm running nagi...