node-exporter-textfile-collector-scripts icon indicating copy to clipboard operation
node-exporter-textfile-collector-scripts copied to clipboard

storcli.py fails on cards without ROC temp sensor or Cachevault_info

Open candlerb opened this issue 5 years ago • 0 comments

I have some servers with older Megaraid cards for which the current storcli.py only returns one metric: megaraid_controller_info

The reason is that JSON output from storcli64 does not include these keys:

  • ROC temperature(Degree Celsius) (instead has "Temperature Sensor for ROC" : "Absent")
  • Cachevault_info

The first exception propagates upwards to the top-level except KeyError: in main() function, which silences the error but causes early termination.

candlerb avatar Dec 06 '19 10:12 candlerb