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.
This commit is contained in:
parent
fbf860e573
commit
8c0b23abbe
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue