Package: munin-plugins-core
Version: 2.0.6-1
Severity: normal

Dear Maintainer,

After installing munin-node on a wheezy system:

# ln -s /usr/share/munin/plugins/slapd_ /etc/munin/plugins/slapd_connections
# vim /etc/munin/plugin-conf.d/slapd
# munin-run slapd_connections autoconf
no (Can't use string ("cn") as an ARRAY ref while "strict refs" in use at 
/usr/share/perl5/Convert/ASN1/_encode.pm line 269, <DATA> line 558.
)

This seems to be caused by an API change in Net::LDAP, and possible to fix
by explicitly using an array reference instead of a string as:

--- /usr/share/munin/plugins/slapd_     2012-09-03 14:58:08.000000000 +0200
+++ slapd_connections   2013-01-11 10:36:49.913237002 +0100
@@ -233,7 +233,7 @@
                            base   => $basedn,
                            scope  => 'one',
                            filter => '(objectClass=monitorServer)',
-                           attrs  => 'cn',
+                           attrs  => ['cn'],
                            );
         if ($mesg->code) {
           print "no (" . $mesg->error . ")\n";

Please consider upstreaming and patching this bug.
-- 
Thanks,
Feri.


-- 
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