Subject: munin-plugins-extra: ejabberd_ statuses plugin always reports 0, wrong arguments to ejabberdctl Package: munin-plugins-extra Version: 2.0.6-1~bpo60+1 Severity: normal
*** Please type your report below this line *** The ejabberd_ plugin executes ejabberdctl command to get various statistics. The 'statuses' flavor of the plugin executes: ejabberdctl status-num-host busy example.com The last two arguments are reversed, should be: ejabberdctl status-num-host example.com busy Attached is a patch which fixes this. This is with ejabberd 2.1.5-3+squeeze1. -- System Information: Debian Release: 6.0.5 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages munin-plugins-extra depends on: ii munin-common 2.0.6-1~bpo60+1 network-wide graphing framework (c ii perl 5.10.1-17squeeze3 Larry Wall's Practical Extraction munin-plugins-extra recommends no packages. Versions of packages munin-plugins-extra suggests: pn libnet-netmask-perl <none> (no description available) pn libnet-telnet-perl <none> (no description available) ii python 2.6.6-3+squeeze7 interactive high-level object-orie -- no debconf information -- Gerald Turner Email: gtur...@unzane.com JID: gtur...@unzane.com GPG: 0xFA8CD6D5 21D9 B2E8 7FE7 F19E 5F7D 4D0C 3FA0 810F FA8C D6D5
--- /usr/share/munin/plugins/ejabberd_ 2012-09-06 07:05:48.000000000 -0700 +++ ejabberd_statuses 2012-09-07 15:49:46.000000000 -0700 @@ -259,7 +259,7 @@ for host in $vhosts; do formathost=$(echo $host | tr '.' '_' | tr '-' '_') for status in $statuses; do - num=$($EJCTL status-num-host $status $host) + num=$($EJCTL status-num-host $host $status) if [ "$?" != 0 ]; then num="U" fi
pgpgxHBlRjafA.pgp
Description: PGP signature