Module: check_mk
Branch: master
Commit: 55f77428509ebbf791b92ac56a3cbd57c1fc48de
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=55f77428509ebb…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Jan 7 14:38:57 2015 +0100
#1833 FIX jolokia_metrics.gc: fix recently introduced exception for missing variable
---
.werks/1833 | 10 ++++++++++
ChangeLog | 1 +
checks/jolokia_metrics | 8 ++++----
3 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/.werks/1833 b/.werks/1833
new file mode 100644
index 0000000..2e7d1c4
--- /dev/null
+++ b/.werks/1833
@@ -0,0 +1,10 @@
+Title: jolokia_metrics.gc: fix recently introduced exception for missing variable
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1420637894
+
+
diff --git a/ChangeLog b/ChangeLog
index e984ca9..9ec4077 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -48,6 +48,7 @@
* 1818 FIX: dell_poweredge_cpu: Fix exception where BrandName is missing
* 1819 FIX: dell_poweredge_temp: Make output and service description consistent with
other temperature checks...
NOTE: Please refer to the migration notes!
+ * 1833 FIX: jolokia_metrics.gc: fix recently introduced exception for missing
variable
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/checks/jolokia_metrics b/checks/jolokia_metrics
index f5ef8c9..3485144 100644
--- a/checks/jolokia_metrics
+++ b/checks/jolokia_metrics
@@ -531,10 +531,10 @@ def check_jolokia_metrics_gc(item, params, info):
status = 0
perf = []
- ttrate = get_rate("jvm.gc.time.%s" % (item), \
- time.time(), saveint(gc['CollectionTime']))
- ccrate = get_rate("jvm.gc.count.%s" % (item), \
- time.time(), saveint(gc['CollectionCount']))
+ trate = get_rate("jvm.gc.time.%s" % (item), \
+ time.time(), saveint(gc['CollectionTime']))
+ crate = get_rate("jvm.gc.count.%s" % (item), \
+ time.time(), saveint(gc['CollectionCount']))
trate = trate * 60.0
crate = crate * 60.0