From 0dc14762ef33ee8574b060ae2aeaa8ecf6221c4d Mon Sep 17 00:00:00 2001 From: Nuno Tavares Date: Thu, 21 Feb 2019 14:12:45 +0100 Subject: [PATCH] ADD Cachevault_Info.Temp, being a distinct phy component, I think it's worth monitoring (#1268) Signed-off-by: Nuno Tavares --- text_collector_examples/storcli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/text_collector_examples/storcli.py b/text_collector_examples/storcli.py index 7f229e5a..6d1d0339 100755 --- a/text_collector_examples/storcli.py +++ b/text_collector_examples/storcli.py @@ -95,6 +95,8 @@ def handle_megaraid_controller(response): add_metric('scheduled_patrol_read', baselabel, int('hrs' in response['Scheduled Tasks']['Patrol Read Reoccurrence'])) add_metric('temperature', baselabel, int(response['HwCfg']['ROC temperature(Degree Celsius)'])) + for cvidx, cvinfo in enumerate(response['Cachevault_Info']): + add_metric('cv_temperature', baselabel + ',cvidx="' + str(cvidx) + '"', int(cvinfo['Temp'].replace('C',''))) time_difference_seconds = -1 system_time = datetime.strptime(response['Basics'].get('Current System Date/time'),