mirror of
https://github.com/recklessop/Zerto_Exporter.git
synced 2026-07-02 23:53:13 -04:00
Update python-node-exporter.py
This commit is contained in:
@@ -388,6 +388,7 @@ def start_thread(target_func):
|
||||
auth_thread = start_thread(ZvmAuthHandler)
|
||||
data_thread = start_thread(GetDataFunc)
|
||||
stats_thread = start_thread(GetStatsFunc)
|
||||
webserver_thread = start_thread(WebServer)
|
||||
|
||||
# loop indefinitely
|
||||
while True:
|
||||
@@ -404,3 +405,7 @@ while True:
|
||||
# restart the thread
|
||||
print("Starting GetStatsFunc Thread")
|
||||
stats_thread = start_thread(GetStatsFunc)
|
||||
if not webserver_thread.is_alive():
|
||||
# restart the thread
|
||||
print("Starting WebServer Thread")
|
||||
webserver_thread = start_thread(WebServer)
|
||||
Reference in New Issue
Block a user