Package: munin-node
Version: 1.2.6-8
Severity: normal
Tags: patch

munin-node's postinst calls munin-node-configure to create the initial
list of enabled plugins by probing each of them for configuration.

Unfortunately, it fails to enable everything if /proc/partitions doesn't
exist, which happens, for example, in OpenVZ containers.

That happens because of the plugin "iostat" which has the following in
its code:

  if (system("grep -q '' /proc/diskstats > /dev/null 2>&1") == 0
          || system("grep -q 'rio rmerge rsect ruse wio wmerge wsect wuse 
running use aveq' /proc/partitions") == 0)

Note that the first grep has its output redirected to /dev/null while the
second isn't.

Adding a > /dev/null 2>&1 to the second grep is trivial and works, hence I
tagged this report with "patch".

The following happens:
  www:~# munin-node-configure --shell
  ln -s /usr/share/munin/plugins/cpu /etc/munin/plugins/cpu
  ...
  ln -s /usr/share/munin/plugins/vmstat /etc/munin/plugins/vmstat
  # There were some errors:
  # Got junk from iostat: grep: /proc/partitions: No such file or directory

Regards,
Faidon



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to