Module: check_mk
Branch: master
Commit: 43069abcd4f7e8263910064368b1b7544c293c6c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=43069abcd4f7e8…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Dec 10 11:22:17 2018 +0100
if64.include: Minor cleanup
Change-Id: I8f4a0b679de6325189db46c97df20a33f8ed01d2
---
checks/if64.include | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/checks/if64.include b/checks/if64.include
index bf8cd93..93a90c8 100644
--- a/checks/if64.include
+++ b/checks/if64.include
@@ -77,23 +77,21 @@ def if64_scan_function(oid, use_if64adm=False):
if if64_disabled(host_name()):
return False
- ignored_sys_descrs = [
+ sys_descr = oid(".1.3.6.1.2.1.1.1.0")
+ for ignored_sys_descr in [
"LANCOM",
"ELSA",
"T-Systems",
"Brocade VDX Switch",
- ]
- sys_descr = oid(".1.3.6.1.2.1.1.1.0")
- for ignored_sys_descr in ignored_sys_descrs:
+ ]:
if ignored_sys_descr in sys_descr:
return False
- ignored_sys_obj_ids = [
+ sys_obj_id = oid(".1.3.6.1.2.1.1.2.0")
+ for ignored_sys_obj_id in [
".4.1.11863.",
".1.3.6.1.4.1.12356",
- ]
- sys_obj_id = oid(".1.3.6.1.2.1.1.2.0")
- for ignored_sys_obj_id in ignored_sys_obj_ids:
+ ]:
if ignored_sys_obj_id in sys_obj_id:
return False