After swapping a couple of defective harddisks, i was wondering why i never got a predictive failure from my Areca controller.
The weird thing is: the logging shows warnings:
2014-08-24 23:15:37 IDE Channel #08 Reading Error 2014-08-24 23:15:28 IDE Channel #08 Reading Error 2014-08-24 23:15:19 IDE Channel #08 Reading Error 2014-08-24 23:15:10 IDE Channel #08 Reading Error
However.. the controller doesn’t seem to do anything with the s.m.a.r.t. values.
Here’s a script you might want to use as a base to get your monitoring up and running.
#!/bin/bash CLI="/path/to/cli32" NR_OF_PORTS=`$CLI disk info | wc -l` # subtract 4 to get rid of the formatting and determine the real number of disks NR_OF_PORTS=`expr $NR_OF_PORTS - 4` echo "Controller has $NR_OF_PORTS ports" for (( i=1; i<=$NR_OF_PORTS; i++ )) do RELOC_SECT=`$CLI disk smart drv=$i | grep "Reallocated Sector Count" | awk '{print $9}'` if [ -z "$RELOC_SECT" ]; then echo "Port $i = No Disk" else echo "Port $i = $RELOC_SECT" fi done