Package: munin-node
Version: 2.0.6-3
Severity: normal
Tags: patch upstream
When called as the cron-job configured in /etc/cron.d/munin the apt_all
plugin is called as user root with
the state file /var/lib/munin-node/plugin-state/root/plugin-apt.state, but
the plugin itself when called by munin-run uses the state file
/var/lib/munin-node/plugin-state/nobody/plugin-apt.state and thus always
reports the same information.
Possible solutions:
* Add
[apt_all]
user root
to /etc/munin/plugin-conf.d/munin-node to make the plugin run as root; not
very nice since it doesn't need elevated permissions.
* Change the default state file to
/var/lib/munin-node/plugin-state/nobody/plugin-apt.state
Not entirely sure if this breaks anything, but the default was implemented
for the
cron-job
<https://github.com/munin-monitoring/munin/commit/d53b34d1bdfafece48e50f2d690b2e1130b6f1dd#plugins/node.d.linux/apt_all.in>
so it should propably be safe. Patch is at
<https://github.com/woodfighter/munin/commit/2826f6c47a024a74a98735c2dcc5eaa077e6980b>.
-- System Information:
Debian Release: 7.0
APT prefers testing
APT policy: (700, 'testing'), (500, 'testing-updates')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/24 CPU cores)
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-node depends on:
ii adduser 3.113+nmu3
ii gawk 1:4.0.1+dfsg-2
ii libnet-server-perl 2.006-1
ii lsb-base 4.1+Debian8
ii munin-common 2.0.6-3
ii munin-plugins-core 2.0.6-3
ii perl 5.14.2-18
ii procps 1:3.3.3-2
Versions of packages munin-node recommends:
ii libnet-snmp-perl 6.0.1-2
ii munin-plugins-extra 2.0.6-3
Versions of packages munin-node suggests:
ii acpi 1.6-1
pn ethtool <none>
pn hdparm <none>
pn libcache-cache-perl <none>
pn libcrypt-ssleay-perl <none>
pn libdbd-mysql-perl <none>
pn libdbd-pg-perl <none>
pn liblwp-useragent-determined-perl <none>
pn libnet-irc-perl <none>
pn libtext-csv-xs-perl <none>
pn libwww-perl <none>
pn libxml-simple-perl <none>
pn logtail <none>
pn munin <none>
pn munin-plugins-java <none>
pn mysql-client <none>
ii net-tools 1.60-24.2
ii python 2.7.3-4
pn ruby <none>
pn smartmontools <none>
-- Configuration Files:
/etc/munin/munin-node.conf changed [not included]
-- no debconf information
--
Fachinformationszentrum Karlsruhe, Gesellschaft für wissenschaftlich-technische
Information mbH.
Sitz der Gesellschaft: Eggenstein-Leopoldshafen, Amtsgericht Mannheim, HRB
101892.
Geschäftsführerin: Sabine Brünger-Weilandt.
Vorsitzender des Aufsichtsrats: MinDirig Dr. Thomas Greiner.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]