Skip to content

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

Description

@jaylaprade

[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?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions