glensc / nagios-plugin-check_raid

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

enable usage of new HP ssacli (replacing hpssacli) #182

Closed odenbach closed 6 years ago

odenbach commented 6 years ago

Hi,

since version 10.60, released on December 19, the HP tools contain 'ssacli' instead of 'hpssascli'. Usage is the same, output only slightly different ('Array' instead of 'array'):

quincy# ssacli controller slot=0 logicaldrive all show 

Smart Array P420i in Slot 0 (Embedded)

   Array A

      logicaldrive 1 (223.5 GB, RAID 1, OK)

The patch adds a new plugin ssacli.pm which is basically the same as hpssacli.pm, so just a different name for hpacucli.pm. It also adds the switch for case-insensitive matching.

Thanks,

Christopher

ssacli.txt

odenbach commented 6 years ago

The code does actually work, I just fail to get the sudo check right. Could you have a look, please?

glensc commented 6 years ago

regarding sudo, i told you to add t/data/bin/ssacli