fixing debian munin-node 1.4.5-3 timeout problem

Notes on fixing the munin-node timeout issue.

The system
# cat /etc/issue /etc/debian_version 
Debian GNU/Linux 6.0 \n \l

6.0.7



munin-node version
# dpkg -l |grep munin-node
ii  munin-node                          1.4.5-3                      network-wide graphing framework (node)



The problem signature
# cat /var/log/munin/munin-node.log
2013/09/08-22:29:00 [21117] Undefined subroutine &Munin::Node::Server::reset_timeout called at /usr/share/perl5/Munin/Node/Server.pm line 160,  line 1.
or something like the following
# telnet 10.21.241.100 4949
Trying 10.21.241.100...
Connected to 10.21.241.100.
Escape character is '^]'.
# munin node at anydns.ipduh.awmn.
list
Connection closed by foreign host.
#


It turns out that &reset_timeout along with $current_timeout are missing from /usr/share/perl5/Munin/Common/Timeout.pm You may comment out the reset_timeout() call in Server.pm or replace Timeout.pm with the correct module. I found one Timeout.pm that has the &reset_timeout subroutine and the $current_timeout stuff and works in an Ubuntu Repository.

Also http://munin-monitoring.org/ticket/1375.

Edit /usr/share/perl5/Munin/Node/Config.pm
# vi /usr/share/perl5/Munin/Node/Config.pm
and add global_timeout to the starting around line 80 --make it look like the following
my %config_variables = map { $_ => 1 } qw(
        ignore_file
        paranoia
        timeout
        global_timeout
        tls
        tls_ca_certificate
        tls_certificate
        tls_private_key
        tls_verify_certificate
        tls_verify_depth
        tls_match
    );




Fixing Munin Node Timeout Problem