summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/snmp_agent_uptime
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge/tasks/snmp_agent_uptime')
-rw-r--r--kpov_judge/tasks/snmp_agent_uptime/task.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/kpov_judge/tasks/snmp_agent_uptime/task.py b/kpov_judge/tasks/snmp_agent_uptime/task.py
index dd8880e..9d38083 100644
--- a/kpov_judge/tasks/snmp_agent_uptime/task.py
+++ b/kpov_judge/tasks/snmp_agent_uptime/task.py
@@ -46,7 +46,7 @@ Make all the data available over SNMP readable by the "studentje" community.
computers = {
'SNMPClient': {
'disks': [
- { 'name': 'SNMPClient',
+ { 'name': 'student-SNMPClient',
},
#{ 'name': 'CDROM',
@@ -60,7 +60,7 @@ computers = {
},
'SNMPServer': {
'disks': [
- { 'name': 'SNMPServer',
+ { 'name': 'student-SNMPServer',
},
#{ 'name': 'CDROM',
# 'options':{'readonly': True},
@@ -213,5 +213,5 @@ elif action == '-n' and oid < ".{oid}":
print "string"
print "{val}"
""".format(oid = params['SNMP_CLIENT_OID'], val = params['SNMP_VALUE'])
- templates['SNMPServer'].write('/usr/local/bin/snmpext.py', prog)
- templates['SNMPServer'].chmod(0766, '/usr/local/bin/snmpext.py')
+ templates['student-SNMPServer'].write('/usr/local/bin/snmpext.py', prog)
+ templates['student-SNMPServer'].chmod(0766, '/usr/local/bin/snmpext.py')