Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AgentSummaryStatus is not compatible with Wazuh 4.5.x #1

Open
jdpwcld opened this issue Sep 5, 2023 · 1 comment
Open

AgentSummaryStatus is not compatible with Wazuh 4.5.x #1

jdpwcld opened this issue Sep 5, 2023 · 1 comment

Comments

@jdpwcld
Copy link

jdpwcld commented Sep 5, 2023

Hello,

Thank you very much for providing this library, it helps a lot.

Today I discovered that the GetAgentSummaryStatus and GetOverviewAgents API calls do provide only empty values for AgentsSummaryStatus in wazuh 4.5. The reason for this is, that the response format has changed. The status is now wrapped in a "connection" object:

{
  "data": {
    "connection": {
      "active": 2,
      "disconnected": 0,
      "never_connected": 0,
      "pending": 0,
      "total": 2
    },
    "configuration": {
      "synced": 2,
      "total": 2,
      "not_synced": 0
    }
  },
  "error": 0
}

What wazuh version is the api client based on? Can I help to fix this issue?

Best regards,

Johannes

@czeumer
Copy link
Member

czeumer commented Sep 5, 2023

Hi Johannes,

the original (REST) client was written against the 4.1 version and was updated for the 4.3 API version.
There is a process to generate a client for the new version (https://github.com/autonubil/go-wazuh/blob/main/generator/generation.md). This is needed, since the client generated by oapi-codegen needed some reworking.
if you have the time to upgrade the API I´d be happy to accept a pull request...

Cheers
Carsten

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants