Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions manifests/agent.pp
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@
$ossec_syscheck_nodiff = $wazuh::params_agent::ossec_syscheck_nodiff,
$ossec_syscheck_skip_nfs = $wazuh::params_agent::ossec_syscheck_skip_nfs,
$ossec_syscheck_windows_audit_interval = $wazuh::params_agent::windows_audit_interval,
$ossec_syscheck_file_limit_enabled = $wazuh::params_agent::ossec_syscheck_file_limit_enabled,
$ossec_syscheck_file_limit_entries = $wazuh::params_agent::ossec_syscheck_file_limit_entries,

# Audit
$audit_manage_rules = $wazuh::params_agent::audit_manage_rules,
Expand Down
2 changes: 2 additions & 0 deletions manifests/manager.pp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
$ossec_cluster_template = $wazuh::params_manager::ossec_cluster_template,
$ossec_active_response_template = $wazuh::params_manager::ossec_active_response_template,
$ossec_syslog_output_template = $wazuh::params_manager::ossec_syslog_output_template,
$ossec_syscheck_file_limit_enabled = $wazuh::params_manager::ossec_syscheck_file_limit_enabled,
$ossec_syscheck_file_limit_entries = $wazuh::params_manager::ossec_syscheck_file_limit_entries,

# active-response
$ossec_active_response_command = $wazuh::params_manager::active_response_command,
Expand Down
3 changes: 3 additions & 0 deletions manifests/params_agent.pp
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@
$ossec_syscheck_synchronization_max_eps = '10'
$ossec_syscheck_synchronization_max_interval = '1h'

$ossec_syscheck_file_limit_enabled = undef
$ossec_syscheck_file_limit_entries = undef

$ossec_ruleset_decoder_dir = 'ruleset/decoders'
$ossec_ruleset_rule_dir = 'ruleset/rules'
$ossec_ruleset_rule_exclude = '0215-policy_rules.xml'
Expand Down
3 changes: 3 additions & 0 deletions manifests/params_manager.pp
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@
$ossec_syscheck_nodiff = '/etc/ssl/private.key'
$ossec_syscheck_skip_nfs = 'yes'

$ossec_syscheck_file_limit_enabled = undef
$ossec_syscheck_file_limit_entries = undef

$ossec_ruleset_decoder_dir = 'ruleset/decoders'
$ossec_ruleset_rule_dir = 'ruleset/rules'
$ossec_ruleset_rule_exclude = '0215-policy_rules.xml'
Expand Down
10 changes: 10 additions & 0 deletions templates/fragments/_syscheck.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
<%- if @ossec_syscheck_auto_ignore -%>
<auto_ignore frequency="10" timeframe="3600"><%=@ossec_syscheck_auto_ignore%></auto_ignore>
<%- end -%>
<%- if defined?(@ossec_syscheck_file_limit_enabled) || defined?(@ossec_syscheck_file_limit_entries) -%>
<file_limit>
<%- if defined?(@ossec_syscheck_file_limit_enabled) -%>
<enabled><%=@ossec_syscheck_file_limit_enabled%></enabled>
<%- end -%>
<%- if defined?(@ossec_syscheck_file_limit_entries) -%>
<entries><%=@ossec_syscheck_file_limit_entries%></entries>
<%- end -%>
</file_limit>
<%- end -%>

<%- if @kernel == 'windows' -%>

Expand Down