You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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 oflsblk
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.The text was updated successfully, but these errors were encountered: