Provides the WazuhInternalRemotedConfiguration which allows to parse the remoted section of the Wazuh internal configuration.

class WazuhInternalRemotedConfiguration(**kwargs)#

Bases: object

Object representation of the wazuh agent’s internal option remoted section.

Wazuh reference: https://documentation.wazuh.com/current/user-manual/reference/internal-options.html#remoted

buffer_relax: int | None#

Method for memory deallocation after accepting input data. This option applies in TCP mode only.

comp_average_printout: int | None#

Compression averages printout.

ctrl_msg_queue_size: int | None#

Maximum number of control messages that can be queued for processing. When the queue reaches this limit, backpressure is applied to prevent memory exhaustion.

debug: int | None#

The debug log level configuration of the wazuh agent.

0: No debug output

1: Standard debug output

2: Verbose debug output

disk_storage: int | None#

Store the temporary shared configuration file on disk.

guess_agent_group: bool#

Toggle to enable or disable the guessing of the group to which the agent belongs when registering it again.

keyupdate_interval: int | None#

Keys file reloading latency (seconds).

max_attempts: int | None#

Maximum number of sending attempts.

merge_shared: bool = True#

Merge shared configuration to be broadcast to agents.

pass_empty_keyfile: bool = True#

Toggle to enable or disable acceptance of empty client.keys.

receive_chunk: int | None#

Reception buffer size for TCP (bytes). Amount of data that Remoted can receive per operation.

recv_counter_flush: int | None#

Flush rate for the receive counter.

recv_timeout: int | None#

Maximum number of seconds to wait for client response in TCP.

request_pool: int | None#

Limit of parallel threads to dispatch requests.

request_rto_msec: int | None#

Re-transmission timeout in milliseconds for UDP.

request_rto_sec: int | None#

Re-transmission timeout in seconds for UDP.

request_timeout: int | None#

Time (in seconds) the remote request listener rejects a new request.

response_timeout: int | None#

Time (in seconds) the remote request listener rejects a request response.

rlimit_nofile: int | None#

Maximum number of file descriptors that Remoted can open.

send_buffer_size: int | None#

Send queue size for TCP (bytes). Amount of data that Remoted can queue to send (one queue per agent).

send_chunk: int | None#

Send buffer size for TCP (bytes). Amount of data that Remoted can send per operation.

send_timeout_to_retry: int | None#

Maximum number of seconds to wait before retrying to queue a packet to send in TCP.

sender_pool: int | None#

Number of parallel threads to send the shared file.

shared_reload: int | None#

Number of seconds between reloading of shared files.

state_interval: int | None#

Interval between the updates of the status file in seconds.

tcp_keepcnt: int | None#

Maximum number of keepalive probes TCP should send before dropping the connection.

tcp_keepidle: int | None#

Time (in seconds) the connection needs to remain idle before TCP starts sending keepalive probes.

tcp_keepintvl: int | None#

The time (in seconds) between individual keepalive probes.

verify_msg_id: bool#

Toggle to enable or disable verification of msg id. This setting doesn’t work with multiple threads (worker_pool > 1).

worker_pool: int | None#

Number of threads that process the payload reception.