sh: /check_ping: No such file or directory

Paul O'Rorke paul at paulororke.net
Tue Oct 18 21:59:59 CEST 2005


*Hi all,

I'm sure this is covered somewhere in the docs but I can't seem to find
it.  I've read a lot of posts but I'm just not gettign it.  I've
installed Nagios in the past successfully but have run into a bit of a
problem here that I can't figure out.

After building Nagios and the plugins on **Fedora Core4 **with : (from
the docs)
   
*    [root at nagios nagios-2.0b4]# ./configure
--prefix=//usr/local/nagios/ --with-cgiurl=//nagios/cgi-bin/
--with-htmurl=/nagios// --with-nagios-user=/nagios/
--with-nagios-group=/nagios/ --with-command-group=/nagios

/**and the plugins with just :
*
*    [root at nagios nagios-plugins-1.4.2]#./configure*
**
*I can test the setup with :*
*    /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg*
*and it passes :*
*<snip>*
*    Total Warnings: 0*
*    Total Errors:   0*
**
*    Things look okay - No serious problems were detected during the
pre-flight check

**Yet when I try to run with **:*
*    /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg*
**
I get this :
     
    Nagios 2.0b4
    Copyright (c) 1999-2005 Ethan Galstad (http://www.nagios.org)
    Last Modified: 08-02-2005
    License: GPL

    Nagios 2.0b4 starting... (PID=21936)
    sh: /check_ping: No such file or directory
    Warning: Return code of 127 for check of service 'PING' on host
'BEFVP41' was out of bounds. Make sure the plugin you're trying to run
actually exists.
    sh: /check_ping: No such file or directory
    Warning: Attempting to execute the command "/check_ping -H
192.168.123.1 -w 3000.0,80% -c 5000.0,100% -p 1" resulted in a return
code of 127.   Make sure the script or binary you are trying to execute
actually exists...

I believe the plugin is there because I can run the folowing:
# /usr/local/nagios/libexec/check_ping -H 192.168.123.1 -w 3000.0,80% -c
5000.0,100% -p 1
PING OK - Packet loss = 0%, RTA = 6.09 ms

I wonder in which config file the path to the plugins specified?  Is it
dependant on the CGIs?  I as this because I think that my permissions
for access to the CGIs is wrong too?  I believe I correctly followed the
documentation at http://nagios.sourceforge.net/docs/2_0/cgiauth.html but
still get an error when I point my web browser at any of the CGI
generated pages.  The Nagios page and docs are fine
(usr/local/nagios/share) - just the CGIs.  The CGIs are in
/usr/local/nagios/sbin and all have 776 permissions, owner nagios, group
nagios.

from /var/log/httpd/error.log:
    [Tue Oct 18 07:43:07 2005] [error] [client 192.168.123.120]
(13)Permission denied: exec of '/usr/local/nagios/sbin/tac.cgi' failed,
referer: http://nagios.paulororke.net/nagios/side.html
    [Tue Oct 18 07:43:07 2005] [error] [client 192.168.123.120]
Premature end of script headers: tac.cgi, referer:
http://nagios.paulororke.net/nagios/side.html


Any suggestions anyone?
*


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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