I want munin to monitor the smart values of my server drives. ls -la /etc/munin/plugins/smart_sda lrwxrwxrwx 1 root root 33 9. Mai 00:48 /etc/munin/plugins/smart_sda -> /usr/libexec/munin/plugins/smart_ Smart finds my sda drive smartctl -H /dev/sda smartctl 6.3 2014-07-26 r3976 [x86_64-linux-3.15.10-hardened-r1-server] (local build) Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED The script /usr/libexec/munin/plugins/smart_ fails to parse the linkname in line 236. They always access name[0]. after the line name=[plugin_name[string.index(plugin_name,'_')+1:]] name is empty. name[0] is empty too. In the function get_hard_drive_name() i replaced all name[0] with name and it succedded. I manually set name to sda. I am not so familar with python to debug the whole script ... I tried to switch to python 2.7 and 3.3. 2,.7 did work better than 3.3 but not perfect (no values). Reproducible: Always Steps to Reproduce: 1. emerge munin 2. set verbose level to True (line 91) 3. ln -s /usr/libexec/munin/plugins/smart_ /etc/munin/plugins/smart_sda 4. cd /etc/munin/plugins/ 5. ./smart_sda Actual Results: Can not find smart values. Expected Results: output of smart values.
Created attachment 402906 [details] emerge info munin
In the function def read_values(hard_drive) when i output the device to the log it is just "/dev/s" and not /dev/sda. Manually setting it to /dev/sda brings it a litte further but not to the end ....
is it this bug from upstream? https://github.com/munin-monitoring/munin/issues/602