[Pkg-nagios-devel] Bug#685457: nsca: Incompatibility between munin and nsca-2.9.1

Xiwen Cheng xiwen.cheng at mendix.com
Mon Aug 20 22:22:21 UTC 2012


Package: nsca
Version: 2.9.1-2
Severity: important

Dear Maintainer,

The input format generated by munin (2.0.1-1) is not accepted by
`send_nsca` when multiple results are chained in a single stream. The 
input stream is parsed incorrectly because of the recent addition:

> When submitting multiple simultaneous results, separate each set with
> the ETB character (^W or 0x17)

However munin isn't aware of this change. 

I don't see why this format change was introduced. It is not needed
and it breaks compatibility. 
I strongly believe the format should be reverted such that munin 2 and 
earlier (probably other tools/systems also) remain compatible. 

An extremely dirty workaround is use `tr` to substitute all occurences
of \n with ETB prior to sending to `send_nsca`:

> /etc/munin/munin.conf
contact.nagios.command tr '\n' '\27' | /usr/sbin/send_nsca
nagios.host.example -c /etc/send_nsca.cfg

Kind regards,
Xiwen


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nsca depends on:
ii  confget                1.03-1
ii  debconf [debconf-2.0]  1.5.44
ii  libc6                  2.13-33
ii  libmcrypt4             2.5.8-3.1
ii  nsca-client            2.9.1-2

nsca recommends no packages.

Versions of packages nsca suggests:
ii  nagios-plugins-basic  1.4.16-1
pn  nagios3               <none>

-- debconf information excluded



More information about the Pkg-nagios-devel mailing list