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.
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 getssda, then runssmartctl -A /dev/sda, which will certainly fail. Then it turns tosmartctl --scan. But in my case, this command returns/dev/sda -d scsi # /dev/sda, SCSI device. Sosmartctl --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 oflsblkand get disk name like/dev/sg0.smartctl -A /dev/sg0returns the correct S.M.A.R.T data. Maybe you could take this situation into consideration. Thanks.