wazuh-dashboard-plugins
wazuh-dashboard-plugins copied to clipboard
Agents by node summary
Currently, there is a visualization for showing the alerts by node. I would like to see the same visualization but showing the agent by node.
This is a real example:
My master node failed, so all my agents were moved to the worker node. So, the alerts increased in this one. I would like to see the number of agents since it is a good way to check if all the agents were moved to another node.
This is a possible visualization:
Previously we tried to generate a visualization using the surveillance index data, but in environments with many agents, the visualization is not efficient.
When this Issue (#2064) is finished we can save the output of this request and generate a display using the "n_active_agents" field.
GET /cluster/healthcheck
// Response
{
"error": 0,
"data": {
"n_connected_nodes": 0,
"nodes": {
"node01": {
"info": {
"name": "node01",
"type": "master",
"version": "3.12.0",
"ip": "172.16.1.2",
"n_active_agents": 1
}
}
}
}
}