nrpe error - nrpe 1.9 - RHEL 5.2

Daniel López dani at tydnet.org
Thu Jun 12 18:07:07 CEST 2008


On Thu June 12 2008 17:57:09 Tom Brown wrote:
> # ./check_nrpe -H xxxxxx0204 -c check_hpasm
> UNKNOWN - insufficient rights to call sudo /sbin/hpasmcli
>
> BUT nrpe is running as the user nagios
>
> $ ps auxwww | grep nrpe
> nagios   23963  0.0  0.0  10232   876 ?        Ss   15:10   0:00
> /opt/nagios/bin/nrpe -c /opt/nagios/etc/nrpe.cfg -d
>
> and if i run the plugin exactly how its called from nrpe using the
> nagios user it works fine
>
> [nagios at xxxxxx0204 ~]$ /opt/nagios/libexec/check_hpasm
> OK - Chassis Status OK
>
> so anyone got any thoughts on how to debug this?
>
Hi, 


I bet it's a sudo issue, maybe related to restrictions executing sudo outside 
a real tty. There was an option in sudoers config related to this. 

eventually try to use capture_plugin.pl ... it works nice.

regards, 

dani

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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