prometheus-community / node-exporter-textfile-collector-scripts

Scripts for node-exporter's textfile collector
Apache License 2.0
513 stars 191 forks source link

storcli.py: Skip battery backup unit status if it does not exist #191

Open bugspencor opened 11 months ago

bugspencor commented 11 months ago

Some HPE RAID controllers have an external battery (Energy pack aka HPE Smart Storage Battery) instead of a controller onboard battery backup unit. With our controller (HPE MR416i-a Gen10+) the "BBU Status" field is not present in the storcli output and storcli.py aborts data collection.

This commit skips the BBU Status field if it does not exist.

Closes #190.