Explorar o código

Fix SNMPGET with idx

Signed-off-by: Sven Velt <sven@velt.de>
Sven Velt %!s(int64=14) %!d(string=hai) anos
pai
achega
e0a860273c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)