glensc / nagios-plugin-check_raid

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

check_raid does not recognize Smart Array P440ar #186

Open bzed opened 6 years ago

bzed commented 6 years ago

Trying to check the status of a P440ar, check_raid returns

UNKNOWN: cciss:[Plugin error]

Output of check_raid -d:

check_raid 4.0.8
Visit <https://github.com/glensc/nagios-plugin-check_raid#reporting-bugs> how to report bugs
Please include output of **ALL** commands in bugreport

DEBUG EXEC: /sbin/dmsetup status --noflush at check_raid.pl line 484.
DEBUG EXEC: /usr/bin/lsscsi -g at check_raid.pl line 484.
DEBUG EXEC: >&2 /usr/bin/cciss_vol_status -v at check_raid.pl line 480.
DEBUG EXEC: /usr/bin/cciss_vol_status -V /dev/sg0 at check_raid.pl line 484.
UNKNOWN: cciss:[Plugin error]

Output of each command from check_raid -d

/sbin/dmsetup status --noflush

vg00-swap_1: 0 3997696 linear 
vg00-tmp: 0 1998848 linear 
vg00-var_log: 0 4096000 linear 
vg00-var: 0 6234112 linear 
vg00-root: 0 7995392 linear 

/usr/bin/lsscsi -g

[0:0:0:0]    storage HP       P440ar           6.30  -          /dev/sg0 
[0:0:1:0]    disk    ATA      VK0000AAAAA      HPG0  /dev/sda   /dev/sg1 
[0:0:2:0]    disk    ATA      VK0000AAAAA      HPG0  /dev/sdb   /dev/sg2 
[0:0:3:0]    enclosu HP       P440ar           6.30  -          /dev/sg3 

/usr/bin/cciss_vol_status -v

cciss_vol_status version 1.11

/usr/bin/cciss_vol_status -V /dev/sg0

Controller: Smart Array P440ar
  Board ID: 0x21c0103c
  Logical drives: 0
  Running firmware: 6.30
  ROM firmware: 6.30
  Physical drives: 2
         connector 1I box 1 bay 1                 ATA     VK0000AAAAA                          ES75N588000000Q01    HPG0     OK
         connector 1I box 1 bay 2                 ATA     VK0000AAAAA                          ES75N588000000Q02    HPG0     OK
/dev/sg0(Smart Array P440ar:0): Non-Volatile Cache status:
                   Cache configured: No

Controller information:

03:00.0 Serial Attached SCSI controller: Hewlett-Packard Company Smart Array Gen9 Controllers (rev 01)
    Subsystem: Hewlett-Packard Company P440ar
    Flags: bus master, fast devsel, latency 0, IRQ 16, NUMA node 0
    Memory at 92c00000 (64-bit, non-prefetchable) [size=1M]
    Memory at 92d00000 (64-bit, non-prefetchable) [size=1K]
    I/O ports at 2000 [size=256]
    [virtual] Expansion ROM at 92d80000 [disabled] [size=512K]
    Capabilities: [80] Power Management version 3
    Capabilities: [90] MSI: Enable- Count=1/32 Maskable- 64bit+
    Capabilities: [b0] MSI-X: Enable+ Count=64 Masked-
    Capabilities: [c0] Express Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [300] #19
    Kernel driver in use: hpsa
    Kernel modules: hpsa
schoerg commented 2 years ago

fixed in this fork: https://github.com/knorrie/nagios-plugin-check_raid/commits/cciss_vol_status_1_12a

glensc commented 2 years ago

Should send pull request

schoerg commented 2 years ago

https://github.com/glensc/nagios-plugin-check_raid/pull/205