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

Add request wazuh-db configuration test #3774

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
- sections:
- section: remote
elements:
- connection:
value: CONNECTION
- port:
value: PORT
- protocol:
value: PROTOCOL
- queue_size:
value: QUEUE_SIZE
- section: global
elements:
- agents_disconnection_time:
value: AGENTS_DISCONNECTION_TIME
- agents_disconnection_alert_time:
value: AGENTS_DISCONNECTION_ALERT_TIME
- email_notification:
value: EMAIL_NOTIFICATIOIN
- jsonout_output:
value: JSONOUT_OUTPUT
- section: alerts
elements:
- email_alert_level:
value: EMAIL_ALERT_LEVEL
- log_alert_level:
value: LOG_ALERT_LEVEL
- section: command
elements:
- name:
value: COMMAND_NAME
- executable:
value: EXECUTABLE
- section: rule_test
elements:
- enabled:
value: ENABLED
- section: active-response
elements:
- command:
value: COMMAND_NAME
- location:
value: LOCATION
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
---
request/remote:
data:
affected_items:
- remote:
- connection: secure
ipv6: 'no'
protocol:
- UDP
port: '1514'
queue_size: '131071'
total_affected_items: 1
total_failed_items: 0
failed_items: []
message: Active configuration was successfully read
error: 0

request/global:
data:
affected_items:
- global:
remoted:
agents_disconnection_alert_time: 5
agents_disconnection_time: 300
total_affected_items: 1
total_failed_items: 0
failed_items: []
message: Active configuration was successfully read
error: 0

analysis/active_response:
data:
affected_items:
- active-response:
- command: restart-wazuh
timeout: 0
level: 0
location: ALL_AGENTS
total_affected_items: 1
total_failed_items: 0
failed_items: []
message: Active configuration was successfully read
error: 0

analysis/alerts:
data:
affected_items:
- alerts:
email_alert_level: 6
log_alert_level: 5
total_affected_items: 1
total_failed_items: 0
failed_items: []
message: Active configuration was successfully read
error: 0

#analysis/decoders:

#analysis/rules:

analysis/command:
data:
affected_items:
- command:
- name: restart-wazuh
executable: restart-wazuh
timeout_allowed: 0
total_affected_items: 1
total_failed_items: 0
failed_items: []
message: Active configuration was successfully read
error: 0

#analysis/labels:

analysis/rule_test:
data:
affected_items:
- rule_test:
enabled: 'no'
threads: 1
max_sessions: 64
session_timeout: 900
total_affected_items: 1
total_failed_items: 0
failed_items: []
message: Active configuration was successfully read
error: 0

analysis/global:
data:
affected_items:
- global:
email_notification: 'yes'
logall: 'no'
logall_json: 'no'
integrity_checking: 8
rootkit_detection: 8
host_information: 8
prelude_output: 'no'
zeromq_output: 'no'
jsonout_output: 'yes'
alerts_log: 'yes'
stats: 8
memory_size: 8192
white_list:
- 127.0.0.1
- 10.0.2.3
- localhost.localdomain
rotate_interval: 0
max_output_size: 0
eps:
maximum: 0
timeframe: 10
total_affected_items: 1
total_failed_items: 0
failed_items: []
message: Active configuration was successfully read
error: 0

wazuh-db/wdb:
data:
affected_items:
- wdb:
backup:
- database: global
enabled: true
interval: 86400
max_files: 3
total_affected_items: 1
total_failed_items: 0
failed_items: []
message: Active configuration was successfully read
error: 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
---
request:
data:
affected_items:
- internal:
remoted:
recv_counter_flush: 128
comp_average_printout: 19999
verify_msg_id: 0
recv_timeout: 1
pass_empty_keyfile: 1
sender_pool: 8
request_pool: 8
request_rto_sec: 1
request_rto_msec: 0
max_attempts: 4
request_timeout: 30
response_timeout: 60
shared_reload: 20
rlimit_nofile: 16384
merge_shared: 1
guess_agent_group: 0
receive_chunk: 4096
send_chunk: 4096
buffer_relax: 1
send_buffer_size: 131072
send_timeout_to_retry: 1
tcp_keepidle: 30
tcp_keepintvl: 10
tcp_keepcnt: 3
total_affected_items: 1
total_failed_items: 0
failed_items: []
message: Active configuration was successfully read
error: 0

analysis:
data:
affected_items:
- internal:
analysisd:
debug: 2
default_timeframe: 360
stats_maxdiff: 999000
stats_mindiff: 1250
stats_percent_diff: 150
fts_list_size: 32
fts_min_size_for_str: 14
log_fw: 1
decoder_order_size: 256
label_cache_maxage: 10
show_hidden_labels: 1
rlimit_nofile: 458752
min_rotate_interval: 600
total_affected_items: 1
total_failed_items: 0
failed_items: []
message: Active configuration was successfully read
error: 0

wazuh-db:
data:
affected_items:
- wazuh_db:
commit_time_max: 30
commit_time_min: 10
open_db_limit: 64
worker_pool_size: 16
fragmentation_threshold: 80
fragmentation_delta: 5
free_pages_percentage: 5
max_fragmentation: 95
check_fragmentation_interval: 43200
total_affected_items: 1
total_failed_items: 0
failed_items: []
message: Active configuration was successfully read
error: 0
Loading