From bc284097633e5bf4637f949d70a533334291f1e2 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Wed, 14 Aug 2013 20:47:06 +0200 Subject: [PATCH] just added some prints to tcpconnect to make shure it works. should be easy now to implemented it in linspector. needs threshhold handling and alerting in job handling now. --- lib/services/tcpconnect.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/services/tcpconnect.py b/lib/services/tcpconnect.py index 9482e15..989e60e 100644 --- a/lib/services/tcpconnect.py +++ b/lib/services/tcpconnect.py @@ -29,13 +29,16 @@ class TcpconnectService(Service): except socket.error, msg: #log.w("%s\n" % msg[1]) self.errorcode = 1 + print(self.errorcode) try: sock.connect((host, self.port)) except socket.error, msg: #log.w("%s\n" % msg[1]) self.errorcode = 2 + print(self.errorcode) + print(self.errorcode) sock.close() return