node-exporter-textfile-collector-scripts
node-exporter-textfile-collector-scripts copied to clipboard
storcli.py fails on cards without ROC temp sensor or Cachevault_info
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.