dsa-check-hpssacli: check PDs only when in HBA mode
authorFilippo Giunchedi <filippo@debian.org>
Tue, 6 Feb 2018 21:27:49 +0000 (22:27 +0100)
committerJulien Cristau <jcristau@debian.org>
Tue, 6 Feb 2018 21:29:55 +0000 (22:29 +0100)
commit4226c5a9c546019111121c43ab799009cf789f52
tree2e5ea11bc4041b3cbad93ed87470e1038a9cbafc
parent7c178a2dd545f72946bd4fb15756301322e5a591
dsa-check-hpssacli: check PDs only when in HBA mode

when using dsa-check-hpssacli with controllers in HBA mode the check
misbehaves on the "HBA Drives" line itself. The patch below fixes things
to check only PDs in the HBA case.

We've discovered this at Wikimedia Foundation where the check is also
deployed, see https://phabricator.wikimedia.org/T185216 for more
context.
dsa-nagios-checks/checks/dsa-check-hpssacli