Module: check_mk
Branch: master
Commit: 5dc8a175cfd8366ac093bdab8261e4c4e5ea30ed
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5dc8a175cfd836…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Jun 29 12:54:39 2011 +0200
WATO: fix inventory of SNMP services
---
modules/check_mk.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index f782e16..ac0bc3e 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -1637,11 +1637,11 @@ def create_nagios_config_commands(outfile):
# +----------------------------------------------------------------------+
-def inventorable_checktypes(what): # tcp, all
+def inventorable_checktypes(what): # snmp, tcp, all
checknames = [ k for k in check_info.keys()
if check_info[k][3] != no_inventory_possible
# and (k not in ignored_checktypes)
- and (what == "all" or k.split('.')[0] not in
snmp_info)
+ and (what == "all" or ((k.split('.')[0] in
snmp_info) == (what == "snmp")))
]
checknames.sort()
return checknames