Package: munin-node
Version: 1.2.3-1
Severity: normal
Tags: patch

munin-node-configure-snmp does not check errors returned by
Net::SNMP->session().

On my local setup it fails with "Can't call method "translate" on an
undefined value at /usr/sbin/munin-node-configure-snmp line 168,
<PLUG> line 42.".

I've made a one-line patch to check the errror message returned by
Net::SNMP->session() and print it:

167a168,169
>       die $error if $error;
>

With this patch, the error message in my local setup is getting
explicit:

"Unable to resolve destination UDP/IPv4 address
'router-jexiste.tlcy.ielo.net' at /usr/sbin/munin-node-configure-snmp
line 168, <PLUG> line 42."

and helped me to fix the local setup.

Thanks.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages munin-node depends on:
ii  libnet-server-perl            0.87-3     An extensible, general perl server
ii  perl                          5.8.7-4    Larry Wall's Practical Extraction 
ii  procps                        1:3.2.5-1  /proc file system utilities

Versions of packages munin-node recommends:
ii  libnet-snmp-perl              5.0.1-1    Script SNMP connections

-- no debconf information

-- 
Cyril Bouthors

Attachment: pgpSKL9sickYR.pgp
Description: PGP signature

Reply via email to