Fix SNMPGET with idx
Signed-off-by: Sven Velt <sven@velt.de>
This commit is contained in:
parent
b39a35b389
commit
e0a860273c
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue