Closed druizz90 closed 5 years ago
Updated API response:
root@1a683501f77f:/# curl -u foo:bar "http://localhost:55000/summary/agents?pretty"
{
"error": 0,
"data": {
"nodes": {
"items": [
{
"count": 1,
"node_name": "worker1"
},
{
"count": 1,
"node_name": "worker2"
},
{
"count": 4,
"node_name": "master-node"
}
],
"totalItems": 6
},
"groups": {
"items": [
{
"count": 5,
"name": "default",
"mergedSum": "8cf9a9972b793548a1bb6fbb00e58af6",
"configSum": "ab73af41699f13fdd81903b5f23d8d00"
}
],
"totalItems": 1
},
"agent_os": {
"items": [
{
"os": {
"name": "Ubuntu",
"platform": "ubuntu",
"version": "18.04.2 LTS"
},
"count": 6
}
],
"totalItems": 6
},
"agent_status": {
"Total": 6,
"Active": 6,
"Disconnected": 0,
"Never connected": 0,
"Pending": 0
},
"agent_version": {
"items": [
{
"version": "Wazuh v3.10.0",
"count": 1
},
{
"version": "Wazuh v3.9.5",
"count": 5
}
],
"totalItems": 6
},
"last_registered_agent": {
"os": {
"arch": "x86_64",
"codename": "Bionic Beaver",
"major": "18",
"minor": "04",
"name": "Ubuntu",
"platform": "ubuntu",
"uname": "Linux |ee7d4f51c0ae |4.18.0-16-generic |#17~18.04.1-Ubuntu SMP Tue Feb 12 13:35:51 UTC 2019 |x86_64",
"version": "18.04.2 LTS"
},
"version": "Wazuh v3.9.5",
"dateAdd": "2019-08-20 11:42:14",
"node_name": "master-node",
"status": "Active",
"group": [
"default"
],
"mergedSum": "8cf9a9972b793548a1bb6fbb00e58af6",
"name": "ee7d4f51c0ae",
"lastKeepAlive": "2019-08-20 11:48:20",
"configSum": "ab73af41699f13fdd81903b5f23d8d00",
"registerIP": "any",
"ip": "172.20.0.8",
"id": "005",
"manager": "1a683501f77f"
}
}
}
Hi team,
This PR closes #426. PR #428 is going to be closed because this new endpoint is needed for
3.10
version. Below there is an example of the new endpoint:A
mocha
test was added too:Best regards,
Demetrio.