Non obvious 127 plugin error

Justin T Pryzby justinp at norchemlab.com
Wed Jun 1 22:15:08 CEST 2011


You can also strace the main nagios process:
strace -fs999 -e execve -p PID_OF_NAGIOS
or
sudo strace -fs999 -e execve -p `ps o pid h -C nagios3 --sort start_time |sed q` 2>&1 |grep -Fw execve |grep -Fw check_dig

127 is the return status of the shell when a command isn't found:
justinp at justinp:~$ asdf; echo $?
bash: asdf: command not found
127

man sh => /EXIT STATUS/

Justin

On Wed, Jun 01, 2011 at 04:23:05PM -0300, Craig Stewart wrote:
> Giorgio
> 
> As apache user:
> 
> bash-4.2$ /usr/lib/nagios/plugins/check_dig -H 72.45.111.250 -l
> www.xplornet.com -a 142.166.86.46 -w 0.5 -c 1 -t 5
> DNS OK - 0.096 seconds response time (www.xplornet.com. 864 IN A
> 142.166.86.46)|time=0.095553s;0.500000;1.000000;0.000000
> 
> 
> You understand my confusion.
> 
> Craig
> 
> Craig Stewart
> Systems Integration Analyst
> Craig.Stewart at corp.xplornet.com Tel: (506) 328-1245 Cell: (506) 425-0111
> Xplornet - Broadband, Everywhere
> 
> On 06/01/2011 04:18 PM, Giorgio Zarrelli wrote:
> > Hi,
> > 
> > I'm curious. Please, do a su - as the apache user and execute the check
> > as that user.
> > 
> > Ciao,
> > 
> > Giorgio
> 
> ------------------------------------------------------------------------------
> Simplify data backup and recovery for your virtual environment with vRanger. 
> Installation's a snap, and flexible recovery options mean your data is safe,
> secure and there when you need it. Data protection magic?
> Nope - It's vRanger. Get your free trial download today. 
> http://p.sf.net/sfu/quest-sfdev2dev
> _______________________________________________
> 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
> 

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
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