glensc / nagios-plugin-check_raid

Nagios/Icinga/Sensu plugin to check current server's RAID status ⛺
144 stars 84 forks source link

Parse 3ware VERIFY-PAUSED as okay #220

Closed ixs closed 6 months ago

ixs commented 1 year ago

The 3ware controllers can show a a logical unit as VERIFY-PAUSED in case the controller has multiple units and they are being verified serially.

Do not consider this a CRITICAL error but instead parse it as a regular VERIFY state.

# tw_cli info c0 unitstatus

Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy
------------------------------------------------------------------------------
u0    RAID-10   VERIFYING      -       4%      64K     1490.06   W      ON
u1    SPARE     VERIFY-PAUSED  -       0%      -       298.082   -      ON
u2    SPARE     VERIFY-PAUSED  -       0%      -       298.082   -      ON
glensc commented 1 year ago

Please add tests. See CONTRIBUTING.md

ixs commented 11 months ago

Please add tests. See CONTRIBUTING.md

Done. Took a bit, sorry for that. 😄

/cc: @glensc

glensc commented 6 months ago

test count was not increased

# Looks like you planned 91 tests but ran 97.
t/check_tw_cli.t .... 
Dubious, test returned 255 (wstat 65280, 0xff00)

Fixing in 178ecf4 (#226)