interpreting event-handler log: restart program

Jasmine Chua jasmine.chua at securecirt.com
Mon Nov 4 14:47:36 CET 2002


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

Thanks folks.. but i think i have figured out what is wrong. It is calling a 
script that does not exist in the directory.   

On Monday 04 November 2002 21:34, Jasmine Chua wrote:
> -- 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

iD8DBQE9xnp9NgvTa7Hj2AURAnQVAKCrk5domWmoZnafCSjzBexhpdn/LgCgwKbN
6y/W0zFToRedJyP1X7WVeSk=
=LNEI
-----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