Package: munin-plugins-core
Version: 2.0.73-1
Severity: normal
X-Debbugs-Cc: marc.don...@gmail.com

ntp_offset plugin does not work with munin-node-c

Output when run under munin-node-c:

# munin node at srv-etc-2
fetch ntp_offset
Don't know how to do that 
.

Expected output: (output when run under munin-node or with patch applied)
# munin node at srv-etc-2
fetch ntp_offset
delay.value 31.6775
offset.value 1.7002
jitter.value 0.3273
.

Patch:

--- /usr/share/munin/plugins/ntp_offset.orig    2023-03-21 20:08:22.000000000 
+0000
+++ /usr/share/munin/plugins/ntp_offset 2024-08-22 13:44:48.941908934 +0000
@@ -93,7 +93,7 @@
     print_thresholds critical
 }
 
-do_ () {
+do_fetch () {
     # Fetch operation
     syspeer="$(ntpq -n -p | grep '^[*o]')"
 
@@ -114,10 +114,14 @@
 }
 
 case $1 in
-    autoconf|config|'')
+    autoconf|config|fetch)
        "do_$1"
        exit $?
        ;;
+    '')
+       do_fetch
+       exit $?
+       ;;
     *)
        echo "Don't know how to do that" >&2
        exit 1




-- System Information:
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm
Architecture: armv7l

Kernel: Linux 6.6.31+rpt-rpi-v7 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_CRAP
Locale: LANG=en_GB.UTF-8, LC_CTYPE=C.UTF-8 (charmap=locale: Cannot set LC_ALL 
to default locale: No such file or directory
UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages munin-plugins-core depends on:
ii  munin-common  2.0.73-1
ii  perl          5.36.0-7+deb12u1

Versions of packages munin-plugins-core recommends:
pn  libnet-snmp-perl  <none>

Versions of packages munin-plugins-core suggests:
pn  acpi | lm-sensors                 <none>
pn  conntrack                         <none>
pn  default-mysql-client              <none>
ii  ethtool                           1:6.1-1
pn  hdparm                            <none>
pn  libcache-cache-perl               <none>
pn  libdbd-mysql-perl                 <none>
pn  libdbd-pg-perl                    <none>
ii  libhttp-date-perl                 6.05-2
pn  liblwp-useragent-determined-perl  <none>
pn  libnet-dns-perl                   <none>
pn  libnet-ip-perl                    <none>
pn  libnet-irc-perl                   <none>
pn  libnet-ldap-perl                  <none>
pn  libnet-netmask-perl               <none>
pn  libnet-telnet-perl                <none>
pn  libwww-perl                       <none>
pn  libxml-parser-perl                <none>
pn  libxml-simple-perl                <none>
pn  logtail                           <none>
ii  net-tools                         2.10-0.1
ii  python3                           3.11.2-1
pn  ruby                              <none>
pn  smartmontools                     <none>

-- debconf information:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_TIME = "de_DE.UTF-8",
        LC_CTYPE = "C.UTF-8",
        LC_MESSAGES = "C.UTF-8",
        LC_PAPER = "de_DE.UTF-8",
        LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory

Reply via email to