-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
Hi team,
I've just noticed about the following behavior of the GET /cluster/healthcheck
endpoint. It seems that the result of the n_active_agents
includes the master of the cluster (000
), but not the worker node.
How to reproduce
I currently have a two nodes Manager cluster with six registered and reporting agents.
The result of the endpoint that I'm receiving is the following (I'm reducing the output):
"wazuh-worker": {
"info": {
"name": "wazuh-worker",
"type": "worker",
"version": "3.9.4",
"ip": "10.0.0.254",
"n_active_agents": 3
},
"wazuh-master": {
"info": {
"name": "wazuh-master",
"type": "master",
"version": "3.9.4",
"ip": "10.0.0.249",
"n_active_agents": 4
}
}
So we can say that the manager node is counted as an agent, but only for the master
node.
In my opinion, we should not include any manager to the n_active_agents
field, but of course, this behavior can be discussed. Feel free to comment here your thoughts on this.
Cheers
Metadata
Metadata
Assignees
Labels
No labels