Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drive health monitor not work for iDRAC6 RAID #27

Open
littlef0x opened this issue Sep 25, 2019 · 2 comments
Open

Drive health monitor not work for iDRAC6 RAID #27

littlef0x opened this issue Sep 25, 2019 · 2 comments

Comments

@littlef0x
Copy link

littlef0x commented Sep 25, 2019

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.

@hetrixtools
Copy link
Owner

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

@foxycode
Copy link
Contributor

foxycode commented Mar 7, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants