summaryrefslogtreecommitdiffstats
path: root/abs/core/xymon/hobbitadd.py
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/xymon/hobbitadd.py')
-rw-r--r--abs/core/xymon/hobbitadd.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/abs/core/xymon/hobbitadd.py b/abs/core/xymon/hobbitadd.py
index cb2fbed..c3c47ba 100644
--- a/abs/core/xymon/hobbitadd.py
+++ b/abs/core/xymon/hobbitadd.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
#polls the hobbit server for ghost clients. If it finds ghosts it will make a new bb-hosts file
#with the new clients.
#Will not add duplicate clients
@@ -11,7 +11,7 @@ import sys
def readbb():
global bblist
try:
- infile = open('/data/srv/xymon/etc/hosts.cfg', 'r')
+ infile = open('/home/xymon/etc/hosts.cfg', 'r')
except(IOError), e:
print "couldn't open bb-hosts file"
sys.exit(1)
@@ -64,7 +64,7 @@ def makenewbb():
print "adding: " + nline
numinserts = numinserts + 1
if numinserts > 0:
- outfile = open("/data/srv/xymon/etc/hosts.cfg","w")
+ outfile = open("/home/xymon/etc/hosts.cfg","w")
#outfile = open("/tmp/new-bb","w")
for i in outlist:
outfile.write(i + '\n' )