Module: check_mk
Branch: master
Commit: da234ff00bfec0d136725277ee11864986c7a9ee
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=da234ff00bfec0…
Author: Götz Golla <gg(a)mathias-kettner.de>
Date: Wed Apr 9 15:26:55 2014 +0200
FIX enterasys_cpu_util enterasys_lsnat: syntax fixes
---
.werks/605 | 8 ++++++++
ChangeLog | 1 +
checks/enterasys_cpu_util | 2 +-
checks/enterasys_lsnat | 2 +-
4 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/.werks/605 b/.werks/605
new file mode 100644
index 0000000..0aac653
--- /dev/null
+++ b/.werks/605
@@ -0,0 +1,8 @@
+Title: enterasys_cpu_util enterasys_lsnat: syntax fixes
+Level: 1
+Component: checks
+Version: 1.2.5i3
+Date: 1397049995
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 68cf47b..c4a879a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -28,6 +28,7 @@
* 0789 FIX: oracle_tablespaces: fixed bug when using dynamic filesystem levels...
* 0603 FIX: cmciii checks: more general scan function plus perf-o-meters for humidity
and temperature checks
* 0604 FIX: windows_updates: now handles situations with forced reboot and no limits
correctly
+ * 0605 FIX: enterasys_cpu_util enterasys_lsnat: syntax fixes
Multisite:
* 0779 Hostgroups (Summary): Empty hostgroups are no longer shown (can be re-enabled
by filter)
diff --git a/checks/enterasys_cpu_util b/checks/enterasys_cpu_util
index d35d41d..fc0de09 100644
--- a/checks/enterasys_cpu_util
+++ b/checks/enterasys_cpu_util
@@ -32,7 +32,7 @@ def inventory_enterasys_cpu_util(info):
def check_enterasys_cpu_util( item, params, info):
for core, util in info:
if item == core[:-2]:
- usage = saveint(util[0]) / 10
+ usage = saveint(util) / 10.0
return check_cpu_util(usage, params)
return 3, "Core not found in agent Outut"
diff --git a/checks/enterasys_lsnat b/checks/enterasys_lsnat
index fb719b6..f55efdc 100644
--- a/checks/enterasys_lsnat
+++ b/checks/enterasys_lsnat
@@ -44,7 +44,7 @@ def check_enterasys_lsnat(no_item, params, info):
state = 1
state_info = state_markers[state]
- perfdata = [ ("current_bindings", util, warn, crit) ]
+ perfdata = [ ("current_bindings", lsnat_bindings, warn, crit) ]
return state, "Current bindings %d%s" % (lsnat_bindings, state_info),
perfdata