random character appended to NRPE output
SCHAER Frederic
frederic.schaer at cea.fr
Tue Jan 22 12:29:52 CET 2008
Hi,
I also have this, and think this is a bug.
I reported this already to the dev list, but don’t know if someone saw mu mail.
Still, since I suspected this had to do with string ending, I added the following at the end of all my test scripts :
/usr/bin/printf "\0"
I did this because I think strings end with a zero char in C, so I thought it would be worth trying printing one manually.
This apparently solves the problem of appended chars, but this is just a workaround, I admit…
Cheers
________________________________
From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Nathan Blackham
Sent: Monday, January 21, 2008 11:54 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] random character appended to NRPE output
I was wondering if anyone has run into this before and the solution. When I run nrpe I get a bunch of extra characters on the end of the output as seen here:
/usr/lib64/nagios/plugins/check_nrpe -H host -c check_users
USERS OK - 2 users currently logged in |users=2;5;10;0
�����r������r�
I am running the latest version of nrpe (2.11). It seems like an array isn't ending properly. Is there anything else that might be helpful, like a debug log?
Thanks alot,
Nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080122/cee7b406/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
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