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

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

add "4096" as healthy BBU code #164

Closed avk999 closed 1 year ago

avk999 commented 1 year ago

Old PERC controllers (at least PERC H730/740 Mini) with FW 4.270.00-8168 return BBU status 4096. Comparing the output with MegaCLI output it seems that this bit corresponds to "Learning cycle required" indicator. However since controller runs learning cycles by itself there is no reason for alerting.

dswarbrick commented 1 year ago

I have a feeling that as more of these values are discovered, this collector will have to change from a foo in [0, 8, 4096] test to actually testing the bits of the value with a bitwise AND. The current naive approach could potentially break if / when other bits in this value are set.