wazuh-dashboard-plugins icon indicating copy to clipboard operation
wazuh-dashboard-plugins copied to clipboard

Agents by node summary

Open jesuslinares opened this issue 5 years ago • 3 comments

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:

image

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.

jesuslinares avatar Jun 25 '19 10:06 jesuslinares

This is a possible visualization:

image

jsanchez91 avatar Sep 13 '19 13:09 jsanchez91

I created a branch with the visualization in the Dashboard overview->general Issue-1539

image

jsanchez91 avatar Sep 16 '19 09:09 jsanchez91

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
        }
      }
    }
  }
}

jsanchez91 avatar Mar 03 '20 15:03 jsanchez91