mirror of
https://github.com/recklessop/Zerto_Exporter.git
synced 2026-10-04 06:10:11 -04:00
Update python-node-exporter.py
This commit is contained in:
1 parent
2cee6a689d
commit
c634b4640a
1 file changed
+5
@@ -388,6 +388,7 @@ def start_thread(target_func):
|
|||||||
auth_thread = start_thread(ZvmAuthHandler)
|
auth_thread = start_thread(ZvmAuthHandler)
|
||||||
data_thread = start_thread(GetDataFunc)
|
data_thread = start_thread(GetDataFunc)
|
||||||
stats_thread = start_thread(GetStatsFunc)
|
stats_thread = start_thread(GetStatsFunc)
|
||||||
|
webserver_thread = start_thread(WebServer)
|
||||||
|
|
||||||
# loop indefinitely
|
# loop indefinitely
|
||||||
while True:
|
while True:
|
||||||
@@ -404,3 +405,7 @@ while True:
|
|||||||
# restart the thread
|
# restart the thread
|
||||||
print("Starting GetStatsFunc Thread")
|
print("Starting GetStatsFunc Thread")
|
||||||
stats_thread = start_thread(GetStatsFunc)
|
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