interpreting event-handler log: restart program

Jasmine Chua jasmine.chua at securecirt.com
Mon Nov 4 14:34:52 CET 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


- -- Hi all,

I wanted to restart a program when a remote server 's load average falls 
critical. My script works all right by itself. However, when I try to get 
nagios to do it automatically through event-handlers.. I got this message in 
the logs.. 

SERVICE ALERT: host-abc;Load;OK;HARD;3;load average: 0.00, 0.00, 0.00
SERVICE EVENT HANDLER: host-abc;Load;OK;HARD;3;restart_program
Warning: Attempting to execute the command 
"/usr/local/nagios/libexec/eventhandlers/restart_program OK HARD 3" resulted 
in a return code of 127.  Make sure the script or binary you are trying to 
execute actually exists...

I have checked the location of my script and made sure it is in there with the 
right permissions. I dont think nagios is executing my script.
anyone has an idea whats going on?
   
Jasmine Chua
Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd)
http://www.securecirt.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9xneBNgvTa7Hj2AURArReAJoC0zEsGq3uTCv25s9arvP1eNAO4wCguc1S
0OyQWG2AUKCOmng86WAbqLc=
=ZnQt
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com




More information about the Users mailing list