Opened 22 months ago

#1127 new patch

ircu was broken on my gentoo box. (not a nicely formatted .patch-file, but a simple fix)

Reported by: someone Owned by: nobody
Priority: normal Milestone: Munin 1.4.7
Component: plugins Version: 1.4.5
Severity: normal Keywords:
Cc:

Description

running /usr/sbin/munin-run ircu
would return some valid data:

clients.value 18
channels.value 12
servers.value 4

But fetching via telnet will give: # Bad exit

The fix was to change the sub quit in the file /usr/libexec/munin/plugins/ircu to:

sub quit {
    my($self, $event) = @_;
+#   open(STDERR, ">/dev/null");
-   open(STDERR, ">/dev/null");
    $self->quit();
    print "clients.value " . $result{'clients'} . "\n";
    print "channels.value " . $result{'channels'} . "\n";
    print "servers.value " . $result{'servers'} . "\n";
+   exit 0;
}

As for Ticket-Version... im not sure...
munin-node --version gives me

munin-node (munin-node) version 1.4.6.
Written by Audun Ytterdal, Jimmy Olsen, Tore Anderson / Linpro AS

Copyright (C) 2002-2009

This is free software released under the GNU General Public License. There
is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. For details, please refer to the file COPYING that is included
with this software or refer to
  http://www.fsf.org/licensing/licenses/gpl.txt

PS: sorry for this ugly "contribution", but I am allready writing more text than the fix had ;)

Change History (0)

Note: See TracTickets for help on using tickets.