summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge/tasks')
-rw-r--r--kpov_judge/tasks/snmp_agent_uptime/task.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kpov_judge/tasks/snmp_agent_uptime/task.py b/kpov_judge/tasks/snmp_agent_uptime/task.py
index a299b6b..38072f8 100644
--- a/kpov_judge/tasks/snmp_agent_uptime/task.py
+++ b/kpov_judge/tasks/snmp_agent_uptime/task.py
@@ -107,8 +107,8 @@ def task(SNMP_VALUE, SNMP_OID_ON_SERVER, SNMP_OID_ON_CLIENT):
# read data from SNMP server
import netsnmp
session = netsnmp.Session(DestHost=SNMP_VALUE['type'],Version=2,Community='public')
- vars=netsnmp.VarList(netsnmp.Varbind('.1.3.6.1.2.1.255.1.1')
-
+ vars=netsnmp.VarList(netsnmp.Varbind(SNMP_OID_SERVER['type'])
+
return session.get(vars)