From 3a576f64deac92074b529fe211a28344af24c11d Mon Sep 17 00:00:00 2001 From: Nuno Tavares Date: Sat, 29 Jun 2019 10:46:04 +0200 Subject: [PATCH] FIX ipmitool sensor discrete values are expressed in hex (#1402) Signed-off-by: Nuno Tavares --- text_collector_examples/ipmitool | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text_collector_examples/ipmitool b/text_collector_examples/ipmitool index d3b9df3f..e373b953 100755 --- a/text_collector_examples/ipmitool +++ b/text_collector_examples/ipmitool @@ -76,7 +76,7 @@ $3 ~ /RPM/ { } $3 ~ /discrete/ { - status[$1] = $2; + status[$1] = sprintf("%d", substr($2,3,2)); status["metric_count"]++; }