From e0a860273c88fb10542b6f7b0abf17ea6da1f76f Mon Sep 17 00:00:00 2001 From: Sven Velt Date: Tue, 25 Jan 2011 12:43:32 +0100 Subject: [PATCH] Fix SNMPGET with idx Signed-off-by: Sven Velt --- monitoringplugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitoringplugin.py b/monitoringplugin.py index 2f60459..ef29eb6 100644 --- a/monitoringplugin.py +++ b/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)