Nagios Plugin and Mail errors
Marc Powell
mpowell at ena.com
Wed Sep 24 18:42:07 CEST 2003
> -----Original Message-----
> From: R. F. [mailto:visigoth at home.nl]
> Sent: Wednesday, September 24, 2003 11:05 AM
> To: nagios-users at lists.sourceforge.net
>
> Hi there, I am getting the following errors when starting Nagios:
>
> ---
> /usr/lib/nagios/plugins/check_ftp: error while loading shared
libraries:
> libssl.so.4: cannot open shared object file: No such file or directory
>
> 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...
>
> 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.
> ---
>
> So my first question is.. I have OpenSSL installed (as RPM) but it
still
> asks for libssl.so.4. Where do I get it? It's a RedHat 8.
According to rpmfind.net, libssl.so.4 appears in openssl-0.9.7a. Is that
installed on your system? Was that listed as a pre-requisite by whoever
built the RPM for you?
>
> How come it's not allowed to mail?
> And why don't my plugins work? They all give an error and the Status
> 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).
Google is your friend --
http://www.faqs.org/docs/abs/HTML/exitcodes.html
return code of 126 means that the specified file is not executable. Is
/bin/mail executable by the nagios user on your system?
>
> The plugins directory is correct (as you can see from the first
error),
> I installed the RPM versions of Nagios and the plugins.
Correct for your installation maybe. I have mine in the standard
location of /usr/local/nagios/libexec. A return code of 127 means that
the command you are trying to execute was not found. Verify that the
$USER1$ macro in resource.cfg points to /usr/lib/nagios/plugins and/or
that your command definitions in commands.cfg are using the $USER1$
macro or have the full path to the command specified. Depending on who
built the RPM, those may be incorrect.
There are copious amounts of documentation on http://www.nagios.org that
will likely be of value.
--
Marc
-------------------------------------------------------
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