diff options
author | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-04-09 18:00:43 +0000 |
---|---|---|
committer | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-04-09 18:00:43 +0000 |
commit | d3e8f24b4da66059058627168f3f71eaf7626a93 (patch) | |
tree | cf2f524d42af38ef0b5ea556f8bc41df4bf07779 /kpov_judge/tasks/snmp_agent_uptime | |
parent | 54c45f7e5e85a088eeb301fb3677f9c743cccbb5 (diff) |
fixed disk template names
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@298 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/tasks/snmp_agent_uptime')
-rw-r--r-- | kpov_judge/tasks/snmp_agent_uptime/task.py | 8 |
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') |