[Pkg-nagios-devel] Bug#685457: Proposed fix for munin
bengen at hilluzination.de
Wed Jan 2 16:52:20 UTC 2013
severity 685457 grave
As described above, this bug has the effect of breaking working
installations, which in my opinion "makes the package [...] unusable or
In contrast to #670373, there is not direct need to fix it in nsca
itself, it can be done in Munin:
The problem here is not the wire protocol between send_nsca and the nsca
server but the protocol between send_nsca and its caller (in this case:
In nsca 2.7.2, newline characters (0x0a) end each message.
In nsca 2.9.1, end-of-transmission-block characters (0x17) end each
message. Newline characters no longer have a special meaning.
(The send_nsca 2.9.1 help text is ambiguous at best, the man page
shipped by the package is out of date and misleading.)
To solve the problem, Munin needs to figure out send_nsca's version
(send_nsca understands a -V parameter, I figure that this information
can be cached) and use the appropriate character to separate status
Just for the record: The workaround posted by Xiwen does not work for
munin 1.4, instead use:
> contact.nagios.command sh -c "/usr/bin/tr '\n' '\27' | /usr/sbin/send_nsca nagios.host.example -c /etc/send_nsca.cfg"
More information about the Pkg-nagios-devel