Update python-node-exporter.py

This commit is contained in:
2023-03-08 08:51:40 -05:00
parent 3e70631471
commit 4fe8e61637
+3
View File
@@ -386,10 +386,13 @@ while True:
# check if any thread has crashed
if not auth_thread.is_alive():
# restart the thread
print("Starting ZvmAuthHandler Thread")
auth_thread = start_thread(ZvmAuthHandler)
if not data_thread.is_alive():
# restart the thread
print("Starting GetDataFunc Thread")
data_thread = start_thread(GetDataFunc)
if not stats_thread.is_alive():
# restart the thread
print("Starting GetStatsFunc Thread")
stats_thread = start_thread(GetStatsFunc)