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

check-smart-status.rb reports disk on errors in unreadable format #126

Open
jaylaprade opened this issue Jun 18, 2019 · 0 comments
Open

Comments

@jaylaprade
Copy link

[server]# /opt/sensu/embedded/bin/gem list sensu-plugins-disk-checks

*** LOCAL GEMS ***

sensu-plugins-disk-checks (5.0.0)

[server]# /opt/sensu/embedded/bin/check-smart-status.rb
SmartCheckStatus CRITICAL: #Disk:0x00000000011ca1a0 critical 5 Reallocated_Sector_Ct: 1
#Disk:0x00000000011ca1a0 critical 199 UDMA_CRC_Error_Count: 131

[server]# fdisk -l | grep Disk | grep -vE "label|identifier"
Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Disk /dev/sdb: 480.1 GB, 480103981056 bytes, 937703088 sectors
Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Disk /dev/sda: 480.1 GB, 480103981056 bytes, 937703088 sectors

Which disk is having an issue? How do I understand which disk is having the issue? Why isn't it labeled in /dev/sdX format?
If this can't be fixed, can we document how to determine which drive is failing?

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

No branches or pull requests

1 participant