ping timeout added

This commit is contained in:
Sven Holz
2022-06-20 17:03:07 +02:00
parent 5c07ade336
commit 7ed91947ab

View File

@@ -137,8 +137,8 @@ def main():
host_location = os.getenv('TARGET_LOCATION', 'unknown') host_location = os.getenv('TARGET_LOCATION', 'unknown')
# Create Thread # Create Thread
print("Creating thread for: %s, with interval: %s and location: %s" %(host, host_timer, host_location)) print("Creating thread for: %s, with interval: %s and location: %s" % (host, host_timeout, host_timer, host_location))
thread = ThreadPing(MyDB, host, host_timer, host_location) thread = ThreadPing(MyDB, host, host_timeout, host_timer, host_location)
my_threads.append(thread) my_threads.append(thread)
thread.start() thread.start()
@@ -163,7 +163,7 @@ def main():
host_location = config.get('hosts_location', key, fallback="unknown") host_location = config.get('hosts_location', key, fallback="unknown")
# Create Thread # Create Thread
print("Creating thread for: %s, with interval: %s and location: %s" %(host, host_timer, host_location)) print("Creating thread for: %s, with timeout: %s, with interval: %s and location: %s" % (host, host_timeout, host_timer, host_location))
thread = ThreadPing(MyDB, host, host_timeout, host_timer, host_location) thread = ThreadPing(MyDB, host, host_timeout, host_timer, host_location)
my_threads.append(thread) my_threads.append(thread)
thread.start() thread.start()