Howto Monitor SMART and sensor data with Munin
Submitted by specialj on Sat, 2008-02-23 19:00.
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-sensorssudo apt-get install smartmontoolssudo sensors-detect- I just say “yes” to all questions, including the final one which defaults to “no” about adding the modules to your
/etc/modulesfile.
- I just say “yes” to all questions, including the final one which defaults to “no” about adding the modules to your
sudo modprobe sensormodule- run once for each module detected by sensors detect, replacing “sensormodule” with the module name
cd /etc/munin/pluginssudo ln -s /usr/share/munin/plugins/sensors_ sensors_fansudo ln -s /usr/share/munin/plugins/sensors_ sensors_voltsudo ln -s /usr/share/munin/plugins/sensors_ sensors_tempsudo ln -s /usr/share/munin/plugins/hddtemp_smartctlsudo 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
- 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.
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.