summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/snmp_agent_uptime
diff options
context:
space:
mode:
authordb1456@student.uni-lj.si <db1456@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2014-12-16 15:42:01 +0000
committerdb1456@student.uni-lj.si <db1456@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2014-12-16 15:42:01 +0000
commit50351503776fca3872b7395afbf333af51f5aa65 (patch)
treea19593a838240a91e7de5a19d2bb057f901d385a /kpov_judge/tasks/snmp_agent_uptime
parentb0c6b739da17aceffb9f9e49da4a27dae0a58a3e (diff)
test
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@92 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/tasks/snmp_agent_uptime')
-rw-r--r--kpov_judge/tasks/snmp_agent_uptime/task.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/kpov_judge/tasks/snmp_agent_uptime/task.py b/kpov_judge/tasks/snmp_agent_uptime/task.py
index 6105c4b..0d876ac 100644
--- a/kpov_judge/tasks/snmp_agent_uptime/task.py
+++ b/kpov_judge/tasks/snmp_agent_uptime/task.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+ #!/usr/bin/env python
# -*- coding: utf-8 -*-
# kpov_random_helpers should be imported by add_assignment.py
@@ -125,7 +125,7 @@ def gen_params(user_id, params_meta):
def task_check(results, params):
#cakam na predhodnike in pomagam tistim ki kaj ne vejo
import re
- score = -9
+ score = 0
if results['NM_nslookup'].find('Server:\t\t{0}\r'.format(params['DNS_NM'])) > -1:
score += 3
if results['static_nslookup'].find('Server:\t\t{0}\r'.format(params['DNS_static'])) > -1:
@@ -134,10 +134,13 @@ def task_check(results, params):
score += 2
if not re.search(r'eth0 +802-.*connected', results['static_nmcli']):
score += 2
- score = 0
return score
def prepare_disks(templates, params):
# d = templates['simpleArbiterDhcp']
pass
+
+
+
+