Module: check_mk
Branch: master
Commit: 00d4bb6283710b741cac775d6a2b007770f8d1c9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=00d4bb6283710b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Aug 11 16:16:49 2011 +0200
cmk -D: output if is usewalk host
---
modules/check_mk.py | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 41bd031..2ca0482 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -3076,15 +3076,18 @@ def dump_host(hostname):
print tty_yellow + "Contact groups: " + tty_normal + ",
".join(host_contactgroups_of([hostname]))
agenttype = "TCP (port: %d)" % agent_port_of(hostname)
if is_snmp_host(hostname):
- credentials = snmp_credentials_of(hostname)
- if is_bulkwalk_host(hostname):
- bulk = "yes"
+ if is_usewalk_host(hostname):
+ agenttype = "SNMP (use stored walk)"
else:
- bulk = "no"
- portinfo = snmp_port_of(hostname)
- if portinfo == None:
- portinfo = 'default'
- agenttype = "SNMP (community: '%s', bulk walk: %s, port: %s)" %
(credentials, bulk, portinfo)
+ credentials = snmp_credentials_of(hostname)
+ if is_bulkwalk_host(hostname):
+ bulk = "yes"
+ else:
+ bulk = "no"
+ portinfo = snmp_port_of(hostname)
+ if portinfo == None:
+ portinfo = 'default'
+ agenttype = "SNMP (community: '%s', bulk walk: %s, port:
%s)" % (credentials, bulk, portinfo)
print tty_yellow + "Type of agent: " + tty_normal + agenttype
is_aggregated = host_is_aggregated(hostname)
if is_aggregated: