Module: check_mk
Branch: master
Commit: 232eadd9dc5fe0bf3d0361d493e93c4e7e76b41a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=232eadd9dc5fe0…
Author: Marcel Schulte <ms(a)mathias-kettner.de>
Date: Mon Mar 6 09:28:30 2017 +0100
8665 FIX fixed aborted snmp scan because of werk #8664
werk #8664 caused an aborted snmp scan for devices other than pfSense. This has been fixed
now.
Change-Id: I9aecc454a18a3526f37509b175392dbc43e61646
---
.werks/8665 | 12 ++++++++++++
checks/ucd_mem | 4 ++--
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/.werks/8665 b/.werks/8665
new file mode 100644
index 0000000..d394f0b
--- /dev/null
+++ b/.werks/8665
@@ -0,0 +1,12 @@
+Title: fixed aborted snmp scan because of werk #8664
+Level: 2
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1488788498
+
+werk #8664 caused an aborted snmp scan for devices other than pfSense. This has been
fixed now.
+
diff --git a/checks/ucd_mem b/checks/ucd_mem
index 75bd758..df445b5 100644
--- a/checks/ucd_mem
+++ b/checks/ucd_mem
@@ -58,8 +58,8 @@ check_info['ucd_mem'] = {
"5", # memTotal -> kB
"6", # memAvailable -> kB
]),
- 'snmp_scan_function' : lambda oid: \
- "pfsense" in
oid(".1.3.6.1.2.1.1.1.0").lower() or
+ 'snmp_scan_function' : (lambda oid: \
+ "pfsense" in
oid(".1.3.6.1.2.1.1.1.0").lower()) or
prefer_hr_scan_function(oid),
'default_levels_variable' : 'ucd_mem_default_levels',
'group' : 'memory_simple',