docs/ref/modules/agent_info/README.md
The agent_info module is a core component responsible for collecting, persisting, and synchronizing agent identity and metadata. It acts as a central source of truth for agent information, ensuring that other modules like SCA, Syscollector, and FIM have a consistent and up-to-date view of the agent's state.
The module periodically gathers agent metadata, including its ID, name, version, operating system details, and group memberships. This information is stored in a local SQLite database, allowing the module to detect changes over time and generate events accordingly.
A key feature of the agent_info module is its coordination protocol. When critical metadata like agent groups change, this module orchestrates a synchronization process across other modules to ensure that configuration changes are applied consistently and reliably.
The module is configured in the ossec.conf file within an <agent-info> block.
<agent-info>
<interval>60</interval>
<integrity_interval>86400</integrity_interval>
<synchronization>
<enabled>yes</enabled>
<sync_end_delay>1s</sync_end_delay>
<response_timeout>30s</response_timeout>
<retries>5</retries>
<max_eps>50</max_eps>
</synchronization>
</agent-info>