Nagios Plugin and Mail errors

Matt Pounsett matt.pounsett at cira.ca
Wed Sep 24 18:54:43 CEST 2003


It looks like you have a whole bunch of unrelated errors here.  I'll address
the ones I can immediately recognize:

On Wed, 24 Sep 2003, R. F. wrote:

> sh: line 1: /bin/mail: Permission denied
> 
> /bin/mail -s "Host DOWN alert for sv09!" visigoth at home.nl" resulted in a
> return code of 126. Make sure the script or binary you are trying to
> execute actually exists...

You (nagios) don't have permission to execute /bin/mail.  Check the
permissions on the binary.  It also looks as if you may have unbalanced quotes
in the command.. double check your command syntax.

'126' is the exit code of the call to /bin/mail..  Nagios normally expects a
return code in the range 0 -> 3 (OK, WARNING, CRITICAL, UNKNOWN).

> Warning: Return code of 127 for check of service 'HTTP' on host 'sv09'
> was out of bounds. Make sure the plugin you're trying to run actually
> exists.

Again, check the syntax of your command.  check_http failed to run for some
reason.  I find I get error code 127 if I mistype the path to the binary, or
if I have unbalanced quotes.

> Information says: "(Return code of 127 is out of bounds - plugin may be
> missing)" - except ping, which says "/bin/ping -n -U -c 5 <ip>" (and
> status is 'unknown') and SMTP (running fine).

Possibly you're getting usage information back from your call to your ping
plugin.  



Whenever you get errors like these, take a careful look at your command
syntax.. that's usually the culprit.  If you can't figure it out, then please
cut and paste your check command into any requests for help.. it makes it a
lot easier to point out the problems.

-- 
Matt Pounsett                 CIRA - Canadian Internet Registration Authority
Technical Support Programmer                    350 Sparks Street, Suite 1110
matt.pounsett at cira.ca                                 Ottawa, Ontario, Canada
613.237.5335 ext. 231                                      http://www.cira.ca



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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