nrpe script

Mathieu Gagné mgagne at iweb.com
Mon Nov 3 23:24:48 CET 2008


Hi,

jeremiah wrote:
> Problem resolved!

Great!

> Even though i removed the sudo command from my commands file it was
> uncommented and active in nrpg.cfg file.
> 
> Does this make sense to you? Seems like it could output a better error
> message than "NRPE: Unable to read output"?!
> 
> #command_prefix=/usr/bin/sudo

It makes sense. You probably don't have any sudo entries so NRPE can't 
run sudo without being prompted for password.

My guess is that the prompt don't send any EOF, check_nrpe can therefore 
not parse it as a valid output.

Personally, I run NRPE using xinetd so nrpe.cfg is pretty much empty on 
my side, it only contains command definitions so I wasn't aware of 
command_prefix's existence. Good catch!

--
Mathieu


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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