Module: check_mk
Branch: master
Commit: e903baa64a4e0e99ee27eb04cbaa78c953934273
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e903baa64a4e0e…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Feb 25 16:16:17 2011 +0100
Perfometer shows no bandwidth given when there is no bandwidth
---
web/plugins/perfometer/check_mk.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/plugins/perfometer/check_mk.py b/web/plugins/perfometer/check_mk.py
index c14877c..75dc7f2 100644
--- a/web/plugins/perfometer/check_mk.py
+++ b/web/plugins/perfometer/check_mk.py
@@ -198,7 +198,7 @@ def performeter_check_mk_if(row, check_command, perf_data):
if bw > 0.0:
rrate = bytes / bw
else:
- rrate = 0
+ return 'No bandwidth given', '<table></table>'
drate = max(0.02, rrate ** 0.5 ** 0.5)
rperc = 100 * rrate
dperc = 100 * drate