NRPE: Unable to read output

Dan Langille dan at langille.org
Tue Jan 16 00:08:44 CET 2007


Hi folks,

I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote 
script to work.  It seems that no perl script works, but I can get 
compiled plug-ins to work.

The result is, which invoked on the nagios server is:

$ ./check_nrpe -H app09 -c check_raid_dell
NRPE: Unable to read output

On the remote machine, app09, I get:

$ perl check_raid_dell
RAID_DELL CRITICAL: RAID is critical.
$

I know that a value is being returned:

$ echo $?
2
$

It's as if the remote script is inappropriate for use with nrpe.  I 
can get other scripts to work:


$ ./check_nrpe -H app09 -c check_users
USERS OK - 1 users currently logged in |users=1;5;10;0

$ ./check_nrpe -H app09 -c check_load
OK - load average: 0.00, 0.05, 0.06|load1=0.003;15.000;30.000;0; 
load5=0.046;10.000;25.000;0; load15=0.061;5.000;20.000;0;


FWIW, both of the above scripts are binaries:

$ file check_load check_users check_raid_dell
check_load:      ELF 64-bit LSB executable, AMD x86-64, version 1 
(FreeBSD), dynamically linked (uses shared libs), stripped
check_users:     ELF 64-bit LSB executable, AMD x86-64, version 1 
(FreeBSD), dynamically linked (uses shared libs), stripped
check_raid_dell: perl script text

I have confirmed that the user that nrpe is running as can execute 
the command:

# su -m -c nagios nagios -c "cd /usr/local/libexec/nagios && perl 
check_raid_dell"
RAID_DELL CRITICAL: RAID is critical.

Ideas?  Suggestions?  Plans?

-- 
Dan Langille : Software Developer looking for work
my resume: http://www.freebsddiary.org/dan_langille.php
PGCon - The PostgreSQL Conference - http://www.pgcon.org/

-------------------------------------------------------------------------
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