SMART plugin fails for older drives without SMART logging
Brought to you by:
namiltd
I have an old Quantum Fireball EX10.2A, it does not support SMART logging. The portion of the code responsible for parsing the smartctl output however, assumes the line 'SMART Error Log Version' exists. In this particular drive's case, that line is replaced with 'SMART Error Log not supported'. I was able to work around this using the change in the patch in the pastebin link below. I've attached the drive output if you would like to test against it. My config line for this drive's output is:
define('PSI_PLUGIN_SMART_IDS', '5-RAW_VALUE,4-RAW_VALUE,9-RAW_VALUE,12-RAW_VALUE,1-RAW_VALUE,7-RAW_VALUE,199-RAW_VALUE,3-RAW_VALUE,11-RAW_VALUE,13-RAW_VALUE');
Suggested patch at: http://pastebin.com/pe78FL0S
SMART output for the EX10.2A
thank you for Your report. I introduced a change to the branch 3.1.0: http://phpsysinfo.svn.sourceforge.net/viewvc/phpsysinfo/branches/namiltd-ini/?view=tar