Nagios specific scripts and/or binaries

Arno Lehmann al at its-lehmann.de
Fri Mar 24 19:20:55 CET 2006


Hi,

On 3/24/2006 7:11 PM, George Rushby wrote:
...
> I get the following error in the nagios.log file
> 
>  
> 
> [1143218696] SERVICE NOTIFICATION: george;test-server;Current 
> Users;WARNING;notify-by-sms;USERS WARNING - 1 users currently logged in
> 
> [1143218696] Warning: Attempting to execute the command "/usr/bin/printf 
> "***** Nagios  *****\n\nNotification Type: PROBLEM\n\nService: Current 
> Users\nHost: test-server\nIP: 10.0.0.200\nState: WARNING\nDate/Time: Fri 
> Mar 24 18:44:56 SAST 2006\n\nAdditional Info:\n\nUSERS WARNING - 1 users 
> currently logged in" | pipesend" resulted in a return code of 127.  Make 
> sure the script or binary you are trying to execute actually exists...
> 
...
> If I remove the ‘pipesend’ and replace it with ‘mail’ and execute it via 
> Nagios it works.
> 
>  
> 
> So the question is, does Nagios only work with special scripts and/or 
> binaries?
> 

PATH or permissions.

I'm quite sure that your script either can not be found in Nagios' 
search path, or that Nagios can't run it due to missing permissions.

You should keep in mind that all test work should be done as the user 
Nagios runs as.

Arno

> 
> Thanks in advance
> 
> George
> 
> 
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.3.0/290 - Release Date: 2006/03/23
> 

-- 
IT-Service Lehmann                    al at its-lehmann.de
Arno Lehmann                  http://www.its-lehmann.de



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list