Return Code 127

Subhendu Ghosh sghosh at sghosh.org
Mon Mar 24 12:50:07 CET 2003


On Mon, 24 Mar 2003, Kreig Dubose wrote:

> I cured the 127 error by using the $HOST1$ macro instead of the path name.

As far as I know - there are no $HOSTx$ macros only $USERx$ and $ARGx$
http://nagios.sourceforge.net/docs/1_0/macros.html

You are getting no output - because $HOST1$ is cannon be expanded.

-sg

> Now I get:
> 
> Status Critical
> (No output!)
> 
> I've verified that the command runs OK as user nagios and it does return
> something:
> 
> -bash-2.05b$ ./check_nrpe -H goclnx1 -p 5666 -c check_users
> USERS OK - 1 users currently logged in
> 
> the perms on the nagios.cmd file are wide open (my understanding as to where
> it dumps these types of checks??
> 
> 
> 
> -----Original Message-----
> From: Ewan Leith [mailto:ejl at man.fwltech.com]
> Sent: Thursday, March 06, 2003 5:50 AM
> To: 'Kreig Dubose'; nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] Return Code 127
> 
> 
> Return code 127 normally means it either can't find the plugin or it doesn't
> have permission to run it - check that the nagios user gets a valid response
> from the command line, and if it does, then check that your command.cfg has
> the location of the file set correctly.
> 
> Ewan
> 
> > -----Original Message-----
> > From: Kreig Dubose [mailto:KreigD at webex.com]
> > Sent: 06 March 2003 12:24
> > To: nagios-users at lists.sourceforge.net
> > Subject: [Nagios-users] Return Code 127
> > 
> > 
> > I'm seeing this error in Service Status Details while using 
> > check_nrpe. 
> >  
> > from CLI:
> > [kreigd at goclnx1 libexec]$ ./check_nrpe -H goclnx2 -c 
> > check_users -to 10
> > USERS OK - 2 users currently logged in
> > [kreigd at goclnx1 libexec]$
> > 
> > However in status detail it shows:
> > (Return code of 127 is out of bounds - plugin may be missing)
> > 
> > I have no idea what status code 127 is, or what it's 
> > referring to as to how
> > it's missing?  As you can see it works from the CLI.  Here's 
> > the log message
> > it keeps spewing
> > 
> > [1046945879] Warning: Return code of 127 for check of service 
> > 'check_users'
> > on host 'goclnx2' was out of bounds. Make sure the plugin 
> > you're trying to
> > run actually exists.
> > 
> > 
> > I've tried this across different servers (as above) and on 
> > the local nagios
> > machine with the same results.
> >  
> > TIA
> > 
> > Kreig
> > 
> > 

-- 




-------------------------------------------------------
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