Module: check_mk
Branch: master
Commit: 579d858f61a20cec0edc8e2d9fb129342b39be29
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=579d858f61a20c…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Mar 19 13:47:26 2015 +0100
metrics.py fixed exception for dict perfometers without labels
---
web/htdocs/metrics.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/metrics.py b/web/htdocs/metrics.py
index b5e2279..bc4d2ea 100644
--- a/web/htdocs/metrics.py
+++ b/web/htdocs/metrics.py
@@ -538,7 +538,8 @@ def build_perfometer(perfometer, translated_metrics):
unit = unit_info[unit_name]
label = unit["render"](summed)
else: # absolute
- value, unit, color = evaluate(metrics_expressions[0],
translated_metrics)
+ value, unit, color = evaluate(perfometer["segments"][0],
translated_metrics)
+
label = unit["render"](summed)
return label, stack