Module: check_mk
Branch: master
Commit: 1dd0a212a1be1c55abde93b98726c6a4f7e44041
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1dd0a212a1be1c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jul 24 13:25:08 2015 +0200
Improved handling of missing snmpwalk files in Check_MK checks
---
modules/snmp.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/snmp.py b/modules/snmp.py
index 44cad0f..4e1231c 100644
--- a/modules/snmp.py
+++ b/modules/snmp.py
@@ -360,7 +360,7 @@ def get_stored_snmpwalk(hostname, oid):
try:
lines = file(path).readlines()
except IOError:
- raise MKGeneralException("No snmpwalk file %s\n" % path)
+ raise MKSNMPError("No snmpwalk file %s" % path)
g_walk_cache[hostname] = lines
begin = 0