NRPE - garbage output
Sloane, Robert Raymond
sloane at ku.edu
Mon Feb 23 23:47:50 CET 2009
It looks like you might be running the manual check as root rather than
as the same user that NRPE uses. There might very well be some
difference in the environment between the two runs that is causing your
problem.
Have you tried turning on debug in NRPE on the target system?
--
Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045
Email:sloane at ku.edu http://www.ku.edu/home/sloane Phone:(785)864-0444
-----Original Message-----
From: Eric Aiken [mailto:eric.aiken at hcl.in]
Sent: Monday, February 23, 2009 3:51 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] NRPE - garbage output
I've bumped into this a few times in the past.
When doing a check_nrpe to a remote server, I get additional "garbage"
output that interferes with the nagios check.
I was running nrpe 2.11 and found a supposed fix in 2.12. I've since
upgraded both the nagios server and client to nrpe 2.12 and restarted
everything with no change.
If I run the check on the client everything works as expected. If I run
it via check_nrpe it doesn't. The following is an example with relevant
security changes:
On client:
# /usr/lib64/nagios/plugins/contrib/check_ftp.pl -H SERVERNAME -u
USERNAME -p PASSWORD-f index.html
OK: Opening ASCII mode data connection for index.html(236 bytes).
Transfer complete.
client nrpe.cfg entry:
command[check_ftp2web]=/usr/lib64/nagios/plugins/contrib/check_ftp.pl -H
SERVERNAME -u USERNAME -p PASSWORD index.html
On server:
# check_nrpe -H SERVERNAME -c check_ftp2web
WARNING: server says: Transfer complete.
' ABOR': command not understood
Note the garbage and also the different result OK vs WARNING
Any suggestions is appreciated.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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