Package: munin-plugins-core
Version: 2.0.6-4+deb7u1
Severity: normal

Investigating why uptime plugin wasn't running, logs were showing the
ntp_state was timing out.  Running manually, I find one of the dynamic
peers isn't returning reverse DNS, and this simple patch fixes it
(only 1 second because it's not that critical if you don't resolve
successfully, and it tries twice, and you don't want to wait more than
2 seconds when you only have 10 or so seconds to get through all the
plugins):

--- /usr/share/munin/plugins/ntp_states.old     2013-06-26 17:56:59.971427119 
+1000
+++ /usr/share/munin/plugins/ntp_states 2013-06-26 17:55:00.031642347 +1000
@@ -68,6 +68,8 @@
                );
 my %peers_condition;
 my $resolver = Net::DNS::Resolver->new;
+$resolver->tcp_timeout(1);
+$resolver->udp_timeout(1);
 
 # Returns a hash whose keys are peer IP addresses and values are
 # condition numbers.


-- System Information:
Debian Release: 7.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (5, 'testing'), (2, 
'unstable')
Architecture: amd64 (x86_64)

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

Versions of packages munin-plugins-core depends on:
ii  munin-common  2.0.6-4+deb7u1
ii  perl          5.14.2-21

Versions of packages munin-plugins-core recommends:
ii  libnet-snmp-perl  6.0.1-2

Versions of packages munin-plugins-core suggests:
pn  libnet-netmask-perl           <none>
pn  libnet-telnet-perl            <none>
ii  python                        2.7.3-4
ii  ruby                          1:1.9.3
ii  ruby1.8 [ruby-interpreter]    1.8.7.358-7
ii  ruby1.9.1 [ruby-interpreter]  1.9.3.194-8.1

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/share/munin/plugins/ntp_states (from 
munin-plugins-core package)


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

Reply via email to