Fix ZK check location
This commit is contained in:
parent
7f57c6dbf7
commit
a11206253d
|
@ -79,7 +79,7 @@ class MonitoringPluginScript(MonitoringPlugin):
|
||||||
try:
|
try:
|
||||||
zk_conn = KazooClient(hosts=[f"{self.this_node.name}:2181"], timeout=1, read_only=True)
|
zk_conn = KazooClient(hosts=[f"{self.this_node.name}:2181"], timeout=1, read_only=True)
|
||||||
zk_conn.start(timeout=1)
|
zk_conn.start(timeout=1)
|
||||||
data = zk_conn.get('/primary_node')
|
data = zk_conn.get('/schema/version')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
health_delta = 50
|
health_delta = 50
|
||||||
message = f"Failed to connect to Zookeeper: {e}"
|
message = f"Failed to connect to Zookeeper: {e}"
|
||||||
|
|
Loading…
Reference in New Issue