Howto Monitor SMART and sensor data with Munin

After installing a new heatsink in a machine I realized that although I had munin monitoring the machine I did not have the sensor data necessary to compare the performance on the new heatsink to the old one. So I decided to add that monitoring data as well as monitoring data for the hard drive temperature and SMART statistics. Here’s what I did on a 64-bit Ubuntu 7.10 (Gusty Gibbon) system.

  • sudo apt-get install lm-sensors
  • sudo apt-get install smartmontools
  • sudo sensors-detect
    • I just say “yes” to all questions, including the final one which defaults to “no” about adding the modules to your /etc/modules file.
  • sudo modprobe sensormodule
    • run once for each module detected by sensors detect, replacing “sensormodule” with the module name
  • cd /etc/munin/plugins
  • sudo ln -s /usr/share/munin/plugins/sensors_ sensors_fan
  • sudo ln -s /usr/share/munin/plugins/sensors_ sensors_volt
  • sudo ln -s /usr/share/munin/plugins/sensors_ sensors_temp
  • sudo ln -s /usr/share/munin/plugins/hddtemp_smartctl
  • sudo ln -s /usr/share/munin/plugins/smart_ smart_sdX
    • Run once for each drive replacing “sdX” with the device name
  • sudo nano /etc/munin/plugin-conf.d/munin-node
    • I had to edit the [hddtemp_smartctl] entry to list the drives I wanted monitored as it only seems to be able to detect /dev/hdX drives. Multiple drives can be listed separated by a space.

      [hddtemp_smartctl]
      user root
      env.drives sdX

  • sudo /etc/init.d/munin-node restart

Trackback URL for this post:

http://hightechsorcery.com/trackback/72

All right ! Thanks

All right ! Thanks

You are welcome,

Of course.

Creative Commons License Except where otherwise noted, content on this site is licensed under a Creative Commons by-nc-sa 3.0 License