Package: munin-plugins-core
Version: 2.0.33-1
Severity: minor

Hi,
it seems that if you can't resolve hostnames when munin-node starts, the
SNMP-based plugins will be assigned to the local host name instead of the node
name one expects.

More details:
- zaphod.casa.mia: munin-node and dns server (I discovered the issue at boot
  time, but you can reproduce it stopping the DNS server or removing entries
  from /etc/hosts)
- c877-cs-1.casa.mia: the device we want to monitor via snmp
- /etc/munin/munin.conf stanzas:
  [zaphod.casa.mia]
      address 127.0.0.1
      use_node_name yes

  [c877-cs-1.casa.mia]
      address 127.0.0.1
      use_node_name no

Steps to reproduce:
1. telnet localhost 4949
1a. list zaphod.casa.mia -> check that no snmp_* entries are shown
1b. list c877-cs-1.casa.mia -> check that the usual snmp_* entries are shown
2. stop the dns and/or remove the entry from /etc/hosts
3. start munin-node
4. telnet localhost 4949
4a. list zaphod.casa.mia -> snmp_c877-cs-1.casa.mia_* appear
4b. list c877-cs-1.casa.mia -> only snmp_c877-cs-1.casa.mia_uptime is shown 
(sometimes something else)

In /var/log/munin/munin-node.log is then seen (just one for clarity):
2017/10/14-12:25:33 [707] Error output from snmp_c877-cs-1.casa.mia_if_2:
2017/10/14-12:25:33 [707]       Could not set up SNMP 2 session to 
c877-cs-1.casa.mia: Unable to resolve the UDP/IPv4 address "c877-cs-1.casa.mia"
2017/10/14-12:25:33 [707] Service 'snmp_c877-cs-1.casa.mia_if_2' exited with 
status 11/0.

/etc/munin/plugins/snmp_c877-cs-1.casa.mia_if_2 is a symlink to 
/usr/share/munin/plugins/snmp__if_

Seeing the above log I'm not sure if this report should be assigned to 
munin-node or
if it's something in Munin::Plugin::SNMP.

Thanks for maintaining munin,
Riccardo


-- System Information:
Debian Release: 9.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), 
LANGUAGE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages munin-plugins-core depends on:
ii  munin-common  2.0.33-1
ii  perl          5.24.1-3+deb9u2

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

Versions of packages munin-plugins-core suggests:
pn  conntrack            <none>
pn  libcache-cache-perl  <none>
pn  libdbd-mysql-perl    <none>
pn  libnet-dns-perl      <none>
pn  libnet-netmask-perl  <none>
pn  libnet-telnet-perl   <none>
pn  libxml-parser-perl   <none>
ii  python               2.7.13-2
ii  ruby                 1:2.3.3

-- no debconf information

Reply via email to