|
From: Gabriele P. <gab...@di...> - 2005-08-16 23:20:05
|
Hi all, I am a newbie with munin. I've made my first install yesterday, to see the integration of smartmontools (because I write an article about smartmontools..) It looks very nice :-) But I see, that the output of smartctl_exit_status is not plausible. I've two hard disks, one is ok, the other is not ok. (I need the damaged disk to show smartmontools function..) ------------------------ /dev/hda ------------------------- [root@jupiter munin]# smartctl -H /dev/hda === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED [root@jupiter munin]# smartctl -l error /dev/hda === START OF READ SMART DATA SECTION === SMART Error Log Version: 1 No Errors Logged ------------------------ /dev/hdb ------------------------- [root@jupiter munin]# smartctl -H /dev/hdb === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: FAILED! Drive failure expected in less than 24 hours. SAVE ALL DATA. Failed Attributes: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 5 Reallocated_Sector_Ct 0x0033 001 001 063 Pre-fail Always FAILING_NOW 637 --------------------------- 8< --------------------------- Munin shows the same status for both disks: -------------------- 8< -------------------- Field: smartctl_exit_status Internal name: smartctl_exit_status Type: gauge Warn: 1 Crit: None -------------------- 8< -------------------- My plugin configuration: /etc/munin/plugin-conf.d/munin-node [smart_hda] user root group disk env.smartargs -H -i -c -l error -l selftest -l selective -d ata env.smartpath /usr/sbin/smartctl [smart_hdb] user root group disk env.smartargs -H -i -c -l error -l selftest -d ata env.smartpath /usr/sbin/smartctl If I call smartctl with the same options in the shell, I get: 0 for smartctl -H -i -c -l error -l selftest -l selective \ -d ata /dev/hda; echo $? 216 for smartctl -H -i -c -l error -l selftest \ -d ata /dev/hdb; echo $? Is this a bug or could I have made an error during installation? I use: munin-1.2.3-4.noarch.rpm munin-node-1.2.3-4.noarch.rpm rrdtool-1.0.49-5.fc4.i386.rpm perl-HTML-Template-2.7-3.noarch.rpm perl-Net-Server-0.87-4.noarch.rpm perl-5.8.6-15 on Fedora Core 4 I will have to finish the article today and hope it is possible to clear the situation within the next 16 hours.. Can you help? Cheers, Gabriele |