NRPE bug ??

SCHAER Frederic frederic.schaer at cea.fr
Tue Nov 27 14:23:10 CET 2007


Hi,

 

I'm currently using NRPE to monitor a few things, and it looks like I'm facing a bug :

depending on the plugin output, the end of output is... "strange". Some plugins with lots of output behave correctly, others with just a few words are not OK

 

A typical output is like this one :

# /usr/lib/nagios/plugins/check_nrpe -H gate02 -c nrpe_listcmds

check_users

check_load

check_hda1

check_zombie_procs

check_total_procs

check_firewall

check_blackholes

check_varparts

check_slash

check_quattor

nrpe_listcmds

ç¿ç¿ç¿¨ç¿±ç¿ºç¿Ãç¿Ìç¿Õç¿Þç¿çç¿ðç¿ùç¿ç¿

                                      ç¿ç¿ç¿&ç¿/ç¿8ç¿Aç¿Jç¿Sç¿\ç¿eç¿nç¿wç¿ç¿ç¿ç¿ç¿¤ç¿­ç¿¶ç¿¿ç¿Èç¿Ñç¿Úç¿ãç¿ìç¿õç¿þç¿ç¿ç¿ç¿"ç¿+ç¿4ç¿=ç¿Fç¿Oç¿Xç¿aç¿jç¿sç¿|ç¿

ç¿ç¿ç¿ 翩翲翻ç¿Äç¿Íç¿Öç¿

 

Not cool... If I add to the bash plugin an << echo -e "\0" >> at the end, the output is clean again... however, I add some "echo" or echo -e '\n' , the output still contains garbage.

Would this be a bug ? Or would I be doing something wrong ?

 

I tried changing the linefeed format (dos2unix and unix2dos) : with msdos linefeeds, the output cannot be read, and unix liefeeds don't change my output.

These strange chars at the end of the output always look to be the same for a given plugin, but they differ between plugins. I'm wondering if I'm seeing the remainings of the 1024bytes output limit... ?

 

I'm using nrpe-2.8.1-1.i386 and nrpe-plugin-2.8.1-1.i386 on an SL4.4 i386 box...

Thanks,

 

Frederic

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071127/c5c39f48/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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