浏览代码

Fix SNMPGET with idx

Signed-off-by: Sven Velt <sven@velt.de>
Sven Velt 14 年之前
父节点
当前提交
e0a860273c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      monitoringplugin.py

+ 1 - 1
monitoringplugin.py

@@ -488,7 +488,7 @@ class SNMPMonitoringPlugin(MonitoringPlugin):
 				return long(self.SNMPGET_wrapper(baseoid[0] + idx, exitonerror=exitonerror))
 
 		elif type(baseoid) in (str, ) and idx != None:
-			return self.SNMPGET_wrapper(baseoid + str(idx), exitonerror=exitonerror)
+			return self.SNMPGET_wrapper(baseoid + '.' + str(idx), exitonerror=exitonerror)
 		else:
 			return self.SNMPGET_wrapper(baseoid, exitonerror=exitonerror)