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
-------------------------------------------------------------------------
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/
_______________________________________________
Nagios-users mailing list
[email protected]
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