hpssacli: don't barf on HP SSD Smart Path configs
authorFaidon Liambotis <paravoid@debian.org>
Thu, 2 Jun 2016 12:24:05 +0000 (15:24 +0300)
committerJulien Cristau <jcristau@debian.org>
Thu, 2 Jun 2016 17:05:59 +0000 (19:05 +0200)
commit2f4db17df6b239dbe91da46779fd0c723bfdc14d
tree4c7cb0dbd2ede448c3fc8c89da4dc1b93d2ab56b
parent93c841674698e3947832ae962679e1149619cdb1
hpssacli: don't barf on HP SSD Smart Path configs

On systems with SSD arrays, one of the recommended HP configurations
-and as far as I know, the default- is to disable the BBU cache and use
a technology that's instead called "HP SSD Smart Path".

In these cases, dsa-check-hpssacli warns, as "controller slot=N show
status" returns "Cache: Not Configured", despite this being a valid
configuration.

It turns out that there is another field, per LD, called "LD
Acceleration Method" that can get the values of "Controller Cache", "HP
SSD Smart Path" or "All disabled"; the first two being OK, the latter
one indicative of a problem. Switch the check to use those instead.

I've yet to see a controller with a failed or misconfigured cache, so
I'm not entirely sure that a config with "LD Acceleration Method:
Controller Cache" and "Cache: Not Configured" would not occur. That
wouldn't make any sense though, so let's risk it :)

Signed-off-by: Julien Cristau <jcristau@debian.org>
dsa-nagios-checks/checks/dsa-check-hpssacli