Skip to content

dm: UNKNOWN when no device is present but dmsetup available #158

@waja

Description

@waja

Output of check_raid -d:

# /usr/lib/nagios/plugins/check_raid -d
Visit <https://github.com/glensc/nagios-plugin-check_raid#reporting-bugs> how to report bugs

DEBUG EXEC: /sbin/dmsetup status --noflush at /usr/lib/nagios/plugins/check_raid line 482.
DEBUG EXEC: /usr/sbin/tw-cli show at /usr/lib/nagios/plugins/check_raid line 482.
DEBUG EXEC: /usr/sbin/tw-cli info c0 unitstatus at /usr/lib/nagios/plugins/check_raid line 482.
DEBUG EXEC: /usr/sbin/tw-cli info c0 drivestatus at /usr/lib/nagios/plugins/check_raid line 482.
DEBUG EXEC: /usr/sbin/tw-cli info c0 bbustatus at /usr/lib/nagios/plugins/check_raid line 482.
UNKNOWN: dm:[No devices to check]; tw_cli:[c0(9650SE-4LPML): u0(RAID-1): OK, Cache:Ri, Drives(2): p0,p1=OK]

Output of each command from check_raid -d

/sbin/dmsetup status --noflush

No devices found

/usr/sbin/tw-cli show

Ctl   Model        (V)Ports  Drives   Units   NotOpt  RRate   VRate  BBU
------------------------------------------------------------------------
c0    9650SE-4LPML 4         2        1       0       1       1      -        

/usr/sbin/tw-cli info c0 unitstatus

Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy
------------------------------------------------------------------------------
u0    RAID-1    OK             -       -       -       1862.63   Ri     ON     

/usr/sbin/tw-cli info c0 drivestatus


VPort Status         Unit Size      Type  Phy Encl-Slot    Model
------------------------------------------------------------------------------
p0    OK             u0   1.82 TB   SATA  0   -            ST32000644NS        
p1    OK             u0   1.82 TB   SATA  1   -            ST2000NM0033-9ZM175 

/usr/sbin/tw-cli info c0 bbustatus


If you need more information, please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions