Package: munin-plugins-core
Version: 2.0.49-1
Severity: normal
Tags: patch

Hello,

I use munin-node-c instead of munin-node.
The plugins are called with the argument 'fetch' or 'config'.

The acpi plugin does not handle the 'fetch' argument and returns
nothing.

$ /usr/share/munin/plugins/acpi
thermal_zone0.value 26.8
$ /usr/share/munin/plugins/acpi fetch
$

I propose the patch:
--- /usr/share/munin/plugins/acpi       2019-05-16 01:21:08.000000000 +0200
+++ acpi        2020-11-29 17:55:14.533609387 +0100
@@ -56,6 +56,10 @@
 fi


+do_fetch () {
+    do_
+}
+
 do_ () { # Fetch
     for ZONE in $ATZ; do
          TEMP=$(cat "$ZONE/temp")
@@ -93,7 +97,7 @@
 }

 case $1 in
-    config|autoconf|'')
+    config|autoconf|fetch|'')
        "do_$1"
 esac


I wanted to report the problem upstream but I could not find an acpi
plugin in 
https://github.com/munin-monitoring/munin/tree/master/plugins/node.d.linux

I also could not find an acpi plugin in version 2.999.15-3 available in
experimental.
It looks like the acpi plugin has been deprecated and removed.
In that cas you can just ignore this bug report.

Thanks

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

Kernel: Linux 4.19.0-12-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages munin-plugins-core depends on:
ii  munin-common  2.0.49-1
ii  perl          5.28.1-6+deb10u1

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

Versions of packages munin-plugins-core suggests:
ii  acpi                              1.7-1.1
ii  conntrack                         1:1.4.5-2
ii  default-mysql-client              1.0.5
pn  ethtool                           <none>
pn  hdparm                            <none>
ii  libcache-cache-perl               1.08-2
ii  libdbd-mysql-perl                 4.050-2
pn  libdbd-pg-perl                    <none>
ii  libhttp-date-perl                 6.02-1
pn  liblwp-useragent-determined-perl  <none>
ii  libnet-dns-perl                   1.19-1
ii  libnet-ip-perl                    1.26-2
pn  libnet-irc-perl                   <none>
pn  libnet-ldap-perl                  <none>
pn  libnet-netmask-perl               <none>
pn  libnet-telnet-perl                <none>
ii  libxml-parser-perl                2.44-4
pn  libxml-simple-perl                <none>
ii  lm-sensors                        1:3.5.0-3
ii  logtail                           1.3.20
ii  net-tools                         1.60+git20180626.aebd88e-1
ii  python3                           3.7.3-1
ii  ruby                              1:2.5.1
ii  smartmontools                     6.6-1

-- no debconf information

Reply via email to