Package: munin-node
Version: 2.0.45-1
Severity: normal

Dear Maintainer,

on one of my systems I noticed that munin no longer records disk free data for 
the separate /home filesystem.

While debugging I could not reproduce the problem when running the df plugin 
with munin-run. I could also not reproduce it with munin-node started directly 
from the command line.

Incomplete output with munin-node run as daemon from systemd:
marc@nephthys:~$ nc localhost 4949
# munin node at nephthys
fetch df
_dev_mapper_nephthys_root_crypt.value 73.5565195777657
_dev_shm.value 1.84851226160177
_run.value 10.594829277865
_run_lock.value 0.078125
_sys_fs_cgroup.value 0
_dev_sda1.value 25.5692545665476
.

Complete output with munin-node run from CLI:
marc@nephthys:~$ nc localhost 4949
# munin node at nephthys
fetch df
_dev_mapper_nephthys_root_crypt.value 73.5626819028434
_dev_shm.value 2.66106291417369
_run.value 10.5943386970173
_run_lock.value 0.078125
_sys_fs_cgroup.value 0
_dev_sda1.value 25.5692545665476
_dev_mapper_nephthys_home_crypt.value 95.5244404001415
.

See the last line with label _dev_mapper_nephthys_home_crypt.

I found that modifying the service file /lib/systemd/system/munin-node.service 
for munin-node fixes this. The default has:

ProtectHome=true

I changed it to:

# Plugins like "df" require access to /home if that is a separate filesystem
ProtectHome=false

This fixed the problem

Kind regards
Marc

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (745, 'testing'), (500, 'stable'), (400, 'unstable'), (300, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-1-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=C.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-node depends on:
ii  libnet-server-perl  2.009-1
ii  lsb-base            10.2018112800
ii  munin-common        2.0.45-1
ii  munin-plugins-core  2.0.45-1
ii  netbase             5.5
ii  perl                5.28.1-4

Versions of packages munin-node recommends:
ii  gawk                 1:4.2.1+dfsg-1
ii  munin-plugins-extra  2.0.45-1
ii  procps               2:3.3.15-2

Versions of packages munin-node suggests:
pn  munin               <none>
pn  munin-plugins-java  <none>

-- Configuration Files:
/etc/munin/munin-node.conf changed:
log_level 4
log_file /var/log/munin/munin-node.log
pid_file /var/run/munin/munin-node.pid
background 1
setsid 1
user root
group root
ignore_file [\#~]$
ignore_file DEADJOE$
ignore_file \.bak$
ignore_file %$
ignore_file \.dpkg-(tmp|new|old|dist)$
ignore_file \.rpm(save|new)$
ignore_file \.pod$
allow ^127\.0\.0\.1$
allow ^::1$
allow ^192\.168\.102\.[0-9]*$
allow ^2001:6f8:1d3e:[:0-9a-f]*$
host 127.0.0.1
port 4949

/etc/munin/plugin-conf.d/README [Errno 13] Permission denied: 
'/etc/munin/plugin-conf.d/README'
/etc/munin/plugin-conf.d/munin-node [Errno 13] Permission denied: 
'/etc/munin/plugin-conf.d/munin-node'

-- no debconf information

Reply via email to