Ver código fonte

Fix SNMPGET with idx

Signed-off-by: Sven Velt <sven@velt.de>
Sven Velt 14 anos atrás
pai
commit
e0a860273c
1 arquivos alterados com 1 adições e 1 exclusões
  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)