• Bug#265022: munin-node: hddtemp doesn't ignore the drives specified

    From Michel Meyers@1:229/2 to All on Wed Aug 11 15:00:17 2004
    From: [email protected]

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

    I've got hddtemp installed on my system (non-SUID) and wanted munin to
    graph the HDD temperatures. Thus I let munin-node-configure create a
    symlink from /etc/munin/plugins/hddtemp2 to
    /usr/share/munin/plugins/hddtemp2. Immediately after I restarted
    munin-node, I started getting tons of errors in syslog that look as
    follows:
    ----------------------
    hdb: drive_cmd: status=0x01 { Error }
    hdb: drive_cmd: error=0x04hdb: drive_cmd: status=0x01 { Error }
    hdb: drive_cmd: error=0x04hdb: drive_cmd: status=0x01 { Error }
    hdb: drive_cmd: error=0x04hdd: drive_cmd: status=0x41 { DriveReady Error
    }
    [....]
    ----------------------

    So far so good, the errors are normal because indeed hdb doesn't support S.M.A.R.T. and thus complains when being queried via hddtemp. So I added
    the following to /etc/munin/plugin-conf.d/munin-node:
    ----------------------
    [hddtemp2]
    user root
    env.ignore "/dev/hdb /dev/hdc /dev/hdd"
    ----------------------

    Unfortunately, Munin seems to ignore that completely as even after
    several restarts hddtemp2 is still querying all my IDE drives (and
    causing lots of spam in my syslog). As I fail to see where I could've
    gone wrong (correct me if you know more), I assume this is a bug.


    -- System Information:
    Debian Release: 3.1
    APT prefers testing
    APT policy: (650, 'testing')
    Architecture: i386 (i686)
    Kernel: Linux 2.4.26-1-686
    Locale: LANG=C, LC_CTYPE=C

    Versions of packages munin-node depends on:
    ii libnet-server-perl 0.85-3 An extensible, general perl server ii perl 5.8.4-2 Larry Wall's Practical Extraction ii procps 1:3.2.1-2 The /proc file system utilities

    -- no debconf information


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Jimmy Olsen@1:229/2 to All on Wed Aug 18 20:20:08 2004
    From: [email protected]

    tags 265022 +fixed-upstream
    thanks,

    Hi,

    Once upon a time, Michel Meyers <[email protected]> sagely scribed:

    So far so good, the errors are normal because indeed hdb doesn't support S.M.A.R.T. and thus complains when being queried via hddtemp. So I added
    the following to /etc/munin/plugin-conf.d/munin-node:
    ----------------------
    [hddtemp2]
    user root
    env.ignore "/dev/hdb /dev/hdc /dev/hdd"
    ----------------------

    Please try without the quotes. _All_ that follows the env.ignore (except leading whitespace) is put into the environment variable. The hddtemp2
    plugin is likely trying to ignore the three devices

    "/dev/hdb
    /dev/hdc
    /dev/hdd"

    ...just to be on the safe side, hddtemp2 now removes them as well.


    -jo :-)

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.1 (GNU/Linux)

    iD8DBQFBI5a85TFsnb61WbQRAnxhAKCGhoi1FS8EW2pnkr/5D7dV5ZTRSACcCuOD cQKcTJqEwqsRguwIB4Ng3cw=
    =iDz2
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)