question

Marc Powell marc at ena.com
Mon Apr 24 16:52:35 CEST 2006



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Guillermo Bellettini
> Sent: Monday, April 24, 2006 9:26 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] question
> Importance: High
> 
> Hi, I'm trying to configure Nagios 2 to monitor a server with the
> check_ping command.
> 
> 
> 
> I've the services.cfg file right configured and the plugins also, but
> seems to be that Nagios is not recognizing the check_ping command.
> 
> 
> 
> I've got the following error on the log file:
> 
> 
> 
> Warning: Attempting to execute the command "/check_ping -H
82.144.102.244
> -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...
> 
> 
> 
> 
> 
> What else do I have to change in order to monitor the server?

http://www.catb.org/~esr/faqs/smart-questions.html#formats
http://www.catb.org/~esr/faqs/smart-questions.html#urgent

nagios is trying to look for the program check_ping under / (root). That
is not the correct location for it. This could be due to a number of
configuration gaffs.

- verify that your command definition for check_ping uses either the
full path to the check_ping plugin or uses the $USER1$ macro in place of
the path.
(http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#command)
- verify that $USER1$ in resource.cfg is pointing to the correct path to
the plugins directory
- verify that resource.cfg is included as a resource_file in nagios.cfg

The sample config files show the proper use of the $USER1$ macro to
substitute for the plugins path.

--
Marc


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&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