From: Sven Velt Date: Fri, 15 Oct 2010 08:33:40 +0000 (+0200) Subject: obsses: Debug output, typo X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5952a560ddfea5b960200d957daf6eeda7538d57;p=nagixsc.git obsses: Debug output, typo Signed-off-by: Sven Velt --- diff --git a/obsess_daemon.py b/obsess_daemon.py index 01021a4..06da3fe 100755 --- a/obsess_daemon.py +++ b/obsess_daemon.py @@ -28,6 +28,7 @@ def read_obsess_file(filename): checks = [] f = open(filename) print 'Read ' + filename + count_lines = 0 for line in f: if line.startswith('LASTSERVICECHECK'): @@ -41,7 +42,9 @@ def read_obsess_file(filename): checks.append({'host_name':m.group(2), 'service_description':None, 'returncode':m.group(3), 'output':'\n'.join(m.group(4,5)), 'timestamp':m.group(1)}) else: print 'FAIL: ' + line + count_lines += 1 + print "Read %s lines" % count_lines f.close() return checks @@ -50,7 +53,7 @@ def read_obsess_file(filename): if len(sys.argv) != 4: print 'Please call script as: "%s http://SERVER:PORT/ username password"\n' % sys.argv[0] - print '... with "http://SERVER:PORT/" your conf2http-URL' + print '... with "http://SERVER:PORT/" your http2nagios-URL' print '... and "username"/"password" authentication data for it' sys.exit(1)