Skip to content

[BUG] OSSEC ID keep growing up #1587

@nhatking16591

Description

@nhatking16591

Currently, I use ossec-authd to register a new agent and manage_agents to remove a agent . I face to an issue that the agent ID keep growing up( even some agent have been removed from ossec server) and some days it will reach to the limit (ID=MAX_AGENTS + AUTHD_FIRST_ID) I can't register new agent anymore.
https://github.com/ossec/ossec-hids/blob/master/src/addagent/validate.c#L49

I have increased MAX_AGENTS and recompiled it. But it is just a workaround and in the future i will see that issue again.

Can we have any better solution to reuse ID or any workaround for it?

Thanks.
King

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions