Module: check_mk
Branch: master
Commit: 001c6f1b6df5bbe5cebc9b6998253c566330167a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=001c6f1b6df5bb…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Sep 17 13:26:43 2015 +0200
Fixed exception since yesterdays changes (NameError: global name ip is not defined
)
---
modules/snmp.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/snmp.py b/modules/snmp.py
index c454fce..008c265 100644
--- a/modules/snmp.py
+++ b/modules/snmp.py
@@ -218,7 +218,7 @@ def get_snmpwalk(hostname, check_type, oid, fetchoid, column,
use_snmpwalk_cache
if opt_use_snmp_walk or is_usewalk_host(hostname):
rowinfo = get_stored_snmpwalk(hostname, fetchoid)
else:
- rowinfo = perform_snmpwalk(hostname, check_type, oid, fetchoid)
+ rowinfo = perform_snmpwalk(hostname, ip, check_type, oid, fetchoid)
if is_cachable:
save_snmpwalk_cache(hostname, fetchoid, rowinfo)
@@ -226,7 +226,7 @@ def get_snmpwalk(hostname, check_type, oid, fetchoid, column,
use_snmpwalk_cache
return rowinfo
-def perform_snmpwalk(hostname, check_type, base_oid, fetchoid):
+def perform_snmpwalk(hostname, ip, check_type, base_oid, fetchoid):
added_oids = set([])
rowinfo = []
if is_snmpv3_host(hostname):