Module: check_mk
Branch: master
Commit: 5ae13e967d41c7f49cb07572927c233139a1cd26
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5ae13e967d41c7…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Nov 30 12:00:40 2010 +0100
no SNMP answer error message during inventory only in verbose mode
---
modules/check_mk.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 4b3cad3..110e3c5 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -666,7 +666,8 @@ def snmp_scan(hostname, ipaddress):
sys.stdout.write("Scanning host %s(%s) for SNMP checks..." % (hostname,
ipaddress))
sys_descr = get_single_oid(hostname, ipaddress, ".1.3.6.1.2.1.1.1.0")
if sys_descr == None:
- sys.stderr.write("no SNMP answer\n")
+ if opt_verbose:
+ sys.stderr.write("no SNMP answer\n")
return []
found = []