Fix ZK check location

This commit is contained in:
Joshua Boniface 2023-02-23 11:04:02 -05:00
parent 7f57c6dbf7
commit a11206253d
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class MonitoringPluginScript(MonitoringPlugin):
try:
zk_conn = KazooClient(hosts=[f"{self.this_node.name}:2181"], timeout=1, read_only=True)
zk_conn.start(timeout=1)
data = zk_conn.get('/primary_node')
data = zk_conn.get('/schema/version')
except Exception as e:
health_delta = 50
message = f"Failed to connect to Zookeeper: {e}"