Bug#758692: munin-node timeouts and leads to partial graphs

2018-03-24 Thread Lars Kruse
Package: munin-node
Followup-For: Bug #758692

Dear Maintainer,

the requested "timeout" parameter was introduced in Munin 2.0.12 - this
it is fixed in all current Debian packages.

Cheers,
Lars



Bug#758692: munin-node timeouts and leads to partial graphs

2014-08-20 Thread Marc SCHAEFER
Package: munin-node
Version: 2.0.6-4+deb7u2
Severity: important

Dear Maintainer,

When running big munin installations, with sometimes some services
timeouting, the resulting graphs are partial: munin aborts from the
point of error.

Upstream has fixed that already, at least in their bug-tracking.
I have not checked if non stable contains those fixes. This might
be useful anyway.

There are two fixes:

   1. create a new global timeout option
   2. make sure the normal timeout is really passed to the script

I have applied those fixes with diversions to my stable system.
This seems to fix the problem with no other impact.


Change to config /etc/munin/munin-node.conf:

timeout 200
global_timeout 900


--- /usr/share/perl5/Munin/Node/Server.pm.distrib   2013-11-12 
23:12:59.0 +0100
+++ /usr/share/perl5/Munin/Node/Server.pm   2014-08-19 18:30:19.916699076 
+0200
@@ -132,7 +132,9 @@
 
 # catch and report any system errors in a clean way.
 eval {
-$timed_out = !do_with_timeout($services-{timeout}, sub {
+# 
http://munin-monitoring.org/changeset/d2f9ce0cc14efd02cbab0ff1c736e0764104d771/munin
+my $global_timeout = $config-{global_timeout} || (60 * 15); # 
Defaults to 15 min. Should be enough 
+$timed_out = !do_with_timeout($global_timeout, sub {
 while (defined ($line = _net_read($session))) {
 chomp $line;
if (! _process_command_line($session, $line)) {


--- /usr/sbin/munin-node.distrib2013-11-12 23:12:59.0 +0100
+++ /usr/sbin/munin-node2014-08-19 18:30:53.404260493 +0200
-@@ -64,11 +64,13 @@
 
 $paranoia = $config-{paranoia} if defined $config-{paranoia};
 
+# http://munin-monitoring.org/ticket/1258
 my $services = Munin::Node::Service-new(
 servicedir = $servicedir,
 defuser= $config-{defuser},
 defgroup   = $config-{defgroup},
 pidebug= $PIDEBUG,
+timeout= $config-{timeout},
 );
 
 $config-reinitialize({



-- System Information:
Debian Release: 7.6
  APT prefers stable
  APT policy: (700, 'stable'), (650, 'testing'), (500, 'stable-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10-0.bpo.3-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=fr_CH.iso-8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages munin-node depends on:
ii  adduser 3.113+nmu3
ii  gawk1:4.0.1+dfsg-2.1
ii  libnet-server-perl  2.006-1+deb7u1
ii  lsb-base4.1+Debian8+deb7u1
ii  munin-common2.0.6-4+deb7u2
ii  munin-plugins-core  2.0.6-4+deb7u2
ii  perl5.14.2-21+deb7u1
ii  procps  1:3.3.3-3

Versions of packages munin-node recommends:
ii  libnet-snmp-perl 6.0.1-2
ii  munin-plugins-extra  2.0.6-4+deb7u2

Versions of packages munin-node suggests:
ii  acpi  1.6-1
pn  ethtool   none
ii  hdparm9.39-1+b1
pn  libcache-cache-perl   none
pn  libcrypt-ssleay-perl  none
pn  libdbd-mysql-perl none
pn  libdbd-pg-perlnone
pn  liblwp-useragent-determined-perl  none
pn  libnet-irc-perl   none
pn  libtext-csv-xs-perl   none
ii  libwww-perl   6.04-1
pn  libxml-simple-perlnone
ii  lm-sensors1:3.3.2-2+deb7u1
ii  logtail   1.3.15
ii  munin 2.0.6-4+deb7u2
pn  munin-plugins-javanone
pn  mysql-client  none
ii  net-tools 1.60-24.2
ii  python2.7.3-4+deb7u1
pn  ruby  none
ii  smartmontools 5.41+svn3365-1

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org