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

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

Closed
waja opened this issue Dec 14, 2016 · 3 comments
Closed

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

waja opened this issue Dec 14, 2016 · 3 comments

Comments

@waja
Copy link

waja commented Dec 14, 2016

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.

@glensc
Copy link
Owner

glensc commented Dec 14, 2016

duplicate: #138

use -p tw_cli as workaround until then.

@glensc glensc closed this as completed Dec 14, 2016
@waja
Copy link
Author

waja commented Dec 14, 2016

A sorry that I missed #138.

@glensc
Copy link
Owner

glensc commented Dec 14, 2016

yes, it's not titled very attractively so you'd know it addresses the same issue.

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

2 participants