Output more details on startup

This commit is contained in:
Joshua Boniface 2023-11-29 16:20:04 -05:00
parent b8aecd9c83
commit d2b764a2c7
1 changed files with 9 additions and 0 deletions

View File

@ -317,8 +317,17 @@ class MonitoringInstance(object):
) )
if successful_plugins < 1: if successful_plugins < 1:
self.logger.out(
"No plugins loaded; pvchealthd going into noop loop. Incorrect plugin directory? Fix and restart pvchealthd.",
state="e",
)
return return
self.logger.out(
f'{self.logger.fmt_blue}Plugin list:{self.logger.fmt_end} {" ".join(self.all_plugin_names)}',
state="i",
)
# Clean up any old plugin data for which a plugin file no longer exists # Clean up any old plugin data for which a plugin file no longer exists
plugins_data = self.zkhandler.children( plugins_data = self.zkhandler.children(
("node.monitoring.data", self.this_node.name) ("node.monitoring.data", self.this_node.name)