NRPE 2.7.1 command_prefix problem

andy.shellam-lists at mailnetwork.co.uk andy.shellam-lists at mailnetwork.co.uk
Thu Mar 22 17:06:36 CET 2007


I've been head-scratching most of the afternoon over this.
I've installed NRPE 2.7.1 on a Fedora Core 6 machine, and no matter what I
try, it doesn't like the command_prefix setting.

Here is my config:

...
### Daemon Options

pid_file=/var/run/nrpe.pid
server_port=5666
#server_address=192.168.1.1
nrpe_user=nagios
nrpe_group=localservice
#allowed_hosts=127.0.0.1,82.165.38.62
dont_blame_nrpe=0
#command_prefix=/usr/bin/sudo
debug=1
command_timeout=60
connection_timeout=300
#allow_weak_random_seed=1

### Commands configuration
...

with all the commands listed afterwards (check_dns, check_procs etc.)

Notice how command_prefix is commented out.  This works:

# ./check_nrpe -H 127.0.0.1 -c check_dns
DNS OK: 0.062 seconds response time. portland-1.andyshellam.eu returns
89.200.137.203|time=0.062236s;;;0.000000

If I uncomment command_prefix and kill/restart NRPE:

# ./check_nrpe -H 127.0.0.1 -c check_dns
NRPE: Unable to read output

If I login as the Nagios user ("nagios") which is whom NRPE runs under, and
try the command I believe NRPE is trying to run:

$ /usr/bin/sudo /usr/local/nagios/libexec/check_dns -H
portland-1.andyshellam.eu -a 89.200.137.203
DNS OK: 0.005 seconds response time. portland-1.andyshellam.eu returns
89.200.137.203|time=0.004811s;;;0.000000

Any ideas, anyone?

I've tried with and without SSL - makes no difference, enabled debugging but
don't get anything helpful in syslog.  I have some plugins that need root
privelege so need this working.

Thanks,
Andy.
_________________________________________________________
DISCLAIMER

This e-mail was sent through a Mail Network server.
The Mail Network accepts no liability for it's content.




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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