Back to Wazuh

Configuration

docs/ref/modules/agent_info/configuration.md

4.14.43.1 KB
Original Source

Configuration

The agent_info module is configured in the ossec.conf file. It defines the scan intervals, synchronization parameters, and module behavior.


Example Configuration

xml
<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>

Configuration Options

Core Settings

OptionTypeDefaultDescription
intervalinteger60Time between periodic scans to collect agent metadata in seconds.
integrity_intervalinteger86400Time between integrity checks to verify that the agent's state is synchronized with the manager in seconds.

Synchronization Settings

The <synchronization> block configures the coordination protocol used when agent metadata or group memberships change.

OptionTypeDefaultDescription
enabledbooleanyesEnables or disables the module coordination and synchronization features.
sync_end_delaytime1sDelay in seconds before sending the synchronization end message.
response_timeouttime30sTimeout in seconds to wait for a response from other modules during coordination.
retriesinteger5Number of retry attempts when a coordination command fails.
max_epsinteger50Maximum events per second to send during synchronization.

Time Interval Format

The sync_end_delay and response_timeout options support various time formats:

FormatExampleDescription
Seconds300s300 seconds
Minutes30m30 minutes
Hours2h2 hours
Days1d1 day

Configuration Validation

The module performs the following validation at startup:

  • Boolean Values: Ensures boolean values are either yes or no.
  • Time Values: Ensures time values are in valid formats and within acceptable ranges.
  • Integer Values: Ensures integer values are in valid ranges.

If the configuration is invalid, the module will log a warning and use default values or, in case of critical errors, fail to start.