Package: munin-plugins-core
Version: 2.0.24-1
Severity: normal
Tags: patch
Dear Maintainer,
An error in the slapd_bdb_cache_ plugin fails during autoconf with "no (Can't
open database directory '$dbdir')" when the database directory is valid (exists
and is readable).
The reason is a bug in line 79 of the slabd_bdb_cache_ plugin:
[... snipp ...]
} elsif (-d $dbdir && -r $dbdir) {
print "no (Can't open database directory '$dbdir')";
} else {
[... snipp ...]
This also prevents autoconf to suceed in any configuration.
The fix is trivial, see attached patch (another variant would leave the elsif
intact and return "yes" instead of "no").
This issue is also present in the current release (2.0.24 at the time of this
bugreport).
So long,
Andreas.
P.S.: I've tried to report this issue upstream but their trac rejected the
content
as spam :(
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages munin-plugins-core depends on:
ii munin-common 2.0.24-1
ii perl 5.20.1-2
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>
ii libnet-dns-perl 0.80.2-2
pn libnet-netmask-perl <none>
pn libnet-telnet-perl <none>
ii libxml-parser-perl 2.41-3
ii python 2.7.8-2
ii ruby2.1 [ruby-interpreter] 2.1.4-1
-- no debconf information
--- plugins/node.d/slapd_bdb_cache_.in.ORIGINAL 2014-11-08 10:43:47.183425551 +0100
+++ plugins/node.d/slapd_bdb_cache_.in 2014-11-08 10:52:01.728255000 +0100
@@ -76,7 +76,7 @@
} elsif ($arg && $arg eq "autoconf") {
if (! -x $dbstat) {
print "no (Can't execute db_stat file '$dbstat')\n";
- } elsif (-d $dbdir && -r $dbdir) {
+ } elsif (! -d $dbdir || ! -r $dbdir) {
print "no (Can't open database directory '$dbdir')";
} else {
print "yes\n";