How to debug nrpe not connecting?

Jason Salaz jsalaz at meteostar.com
Wed May 16 19:14:43 CEST 2007


Hi David,

david palm wrote:
 >
>     Nagios 2.9 starting... (PID=5406)
> !!  sh: line 1: /opt/nagios/libexecHOSTADDRESS$: No such file or directory
>     Warning: Return code of 127 for check of service 'CPU Load' on host 
> 'gerald' was out of bounds. Make sure the plugin you're trying to run 
> actually exists.
> !!  sh: line 1: /opt/nagios/libexecHOSTADDRESS$: No such file or directory
>     Warning: Return code of 127 for check of service 'CPU Load' on host 
> 'gerald' was out of bounds. Make sure the plugin you're trying to run 
> actually exists.

Ok, so we know that something is being parsed and presumably a matching 
$ is missing.

>  
> commands.cfg:
>     define command{
>               command_name  check_nrpe
>               command_line  $USER1/check_nrpe -H $HOSTADDRESS$ -c $ARGS1$
>     }

We found the issue.  Check out the 'command_line' line.

> resource.cfg:
>     $USER1$=/opt/nagios/libexec

Do you see the difference, i.e. the unmatching $?

command_line  $USER1/check_nrpe -H $HOSTADDRESS$ -c $ARGS1$
should be
command_line  $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARGS1$

Also, IIRC you want $ARG1$ as well.

-- 
Jason Salaz

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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