Module: check_mk
Branch: master
Commit: e182c9ccb84b647f43ffc9b10a1544ff79a59dce
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e182c9ccb84b64…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Wed Jul 19 17:08:54 2017 +0200
5010 FIX f5_bigip_mem.tmm: Fixed discovery warning on command line if TMM information is
not provided by the device
The service has not been created and no impact could be noticed in WATO. But on
command line a warning showed up that there is an esception during discovering
services based on that check. This has been fixed now.
Change-Id: I1286092c10eb20841c13a6a159c855a3fdbe1a6e
---
.werks/5010 | 12 ++++++++++++
checks/f5_bigip_mem | 4 +++-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/.werks/5010 b/.werks/5010
new file mode 100644
index 0000000..37cd812
--- /dev/null
+++ b/.werks/5010
@@ -0,0 +1,12 @@
+Title: f5_bigip_mem.tmm: Fixed discovery warning on command line if TMM information is
not provided by the device
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1500476578
+Class: fix
+
+The service has not been created and no impact could be noticed in WATO. But on
+command line a warning showed up that there is an esception during discovering
+services based on that check. This has been fixed now.
diff --git a/checks/f5_bigip_mem b/checks/f5_bigip_mem
index 17fa5b8..7062b67 100644
--- a/checks/f5_bigip_mem
+++ b/checks/f5_bigip_mem
@@ -71,7 +71,9 @@ check_info['f5_bigip_mem'] = {
}
def inventory_f5_bigip_mem_tmm(parsed):
- if not float(parsed["tmm"][0]) == 0:
+ mem = parsed["tmm"][0]
+ # Some devices obviously do not deliver this information...
+ if not mem == '' and not float(mem) == 0:
return [ ( "TMM", {} ) ]