Fix several bugs and optimize output

This commit is contained in:
2023-02-13 16:36:15 -05:00
parent 1ea4800212
commit e6f9e6e0e8
2 changed files with 42 additions and 14 deletions

View File

@ -50,7 +50,10 @@ def getNodeInformation(zkhandler, node_name):
zkhandler.read(("node.count.provisioned_domains", node_name))
)
node_running_domains = zkhandler.read(("node.running_domains", node_name)).split()
node_health = int(zkhandler.read(("node.monitoring.health", node_name)))
try:
node_health = int(zkhandler.read(("node.monitoring.health", node_name)))
except ValueError:
node_health = "N/A"
node_health_plugins = zkhandler.read(("node.monitoring.plugins", node_name)).split()
node_health_details = list()
for plugin in node_health_plugins: