Fix SNMPGET with idx

Signed-off-by: Sven Velt <sven@velt.de>
This commit is contained in:
Sven Velt 2011-01-25 12:43:32 +01:00
parent b39a35b389
commit e0a860273c

View file

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