Package: munin-node
Version: 1.4.3-2
Severity: normal

If /dev/hda is a HDD with smart capabilities, and /dev/hdc a DVD/CD without
smart capabilities, then the perl script

        /usr/share/munin/plugins/hddtemp_smartctl

# Try to get a default set of drives
.... ... ...
  my @drivesIDE;
  if (-d '/proc/ide') {
    opendir(IDE, '/proc/ide');
    @drivesIDE = grep /hd[a-z]/, readdir IDE;
    closedir(IDE);
  }
.... ... ...

will involve the DVD/CD, and the corresponding graph will contain a line of

        hdc nan nan nan nan

which is obviously superfluous.

I know, that there is a possibility to configure, what drives will be involved,
however the perl script above could check for the existence of

        /proc/ide/hd[a-z]/smart_values

which does exist for hda having smart capabilities, and does not exist for hdc
having no smart capabilities.

In fact, the perls script grabs close to this information, namely tampers at
/proc/ide/hd[a-z].

Thanks,
        Peter.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash



-- 
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