Non obvious 127 plugin error

Clint Dilks clintd at waikato.ac.nz
Wed Jun 1 22:36:12 CEST 2011


Hi

Just wondering if SE Linux is disabled on your system?  If not check your
audit log and see if access to the plugin is being denied

On Thu, Jun 2, 2011 at 8:15 AM, Justin T Pryzby <justinp at norchemlab.com>wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110602/298e63e4/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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