wazuh / wazuh-api

Wazuh - RESTful API
https://wazuh.com
GNU General Public License v2.0
68 stars 57 forks source link

/experimental/syscollector endpoint error having disconnected nodes #491

Open CarlosRS9 opened 4 years ago

CarlosRS9 commented 4 years ago

Description

The /experimental/syscollector/hardware endpoint returns the following error if the user have one or more agents pointing to a disconnected cluster node:

{
    "errror": 3022,
    "message": "Unknown node ID"
}

This error will be returned if there are node names stored in the agent table in global.db that are no longer connected to the master node or if that node name has the value unknown.

This error applies to wazuh api 3.12.3 and earlier versions.