agent icon indicating copy to clipboard operation
agent copied to clipboard

Drive health monitor not work for iDRAC6 RAID

Open littlef0x opened this issue 6 years ago • 2 comments

Hi, I've got a dedicated server with Dell iDRAC6 & RAID 1 and hetrixtools agent running as root. But the drive health status does not show on the webpage. I checked the agent code and found some hints:

I've got smartmontools installed, so the agent runs lsblk -l | grep 'disk' | awk '{ print $1 }' and gets sda, then runs smartctl -A /dev/sda, which will certainly fail. Then it turns to smartctl --scan. But in my case, this command returns /dev/sda -d scsi # /dev/sda, SCSI device. So smartctl --scan | grep megaraid | awk '{ print $(3) }' gets nothing. Finally $DH still remains blank, so hetrixtools server will not receive driver health information.

I make it work by letting the agent use lsscsi -g | grep 'disk' | awk '{ print $8 }' instead of lsblk and get disk name like /dev/sg0. smartctl -A /dev/sg0 returns the correct S.M.A.R.T data. Maybe you could take this situation into consideration. Thanks.

littlef0x avatar Sep 25 '19 08:09 littlef0x

Thank you for the feedback, we'll look into fixing this issue.

hetrixtools avatar Sep 26 '19 00:09 hetrixtools

I believe it would be more handy to use disk list from /dev/disk/by-id/ than using tools like lsblk. Would also be more compatible with other systems than Linux.

foxycode avatar Mar 07 '20 16:03 foxycode