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

Fix sca template issue for day, wday and time parameters to Master #695

Merged
merged 1 commit into from
Jan 13, 2022

Conversation

c-bordon
Copy link
Member

Issue: #692

I was able to replicate the error reported by the community user and apply the proposed fix with satisfactory results.

Before the fix:

root@Debian-Buster:~# /var/ossec/bin/wazuh-control start
2021/12/30 18:51:27 wazuh-modulesd: ERROR: (1241): Invalid day format: 'yes'.
2021/12/30 18:51:27 wazuh-modulesd: ERROR: (1235): Invalid value for element 'wday': yes.
2021/12/30 18:51:27 wazuh-modulesd: ERROR: (1202): Configuration error at 'etc/ossec.conf'.
wazuh-modulesd: Configuration error. Exiting

After the fix:

root@Debian-Buster:~# /var/ossec/bin/wazuh-control status
wazuh-clusterd not running...
wazuh-modulesd is running...
wazuh-monitord is running...
wazuh-logcollector is running...
wazuh-remoted is running...
wazuh-syscheckd is running...
wazuh-analysisd is running...
wazuh-maild not running...
wazuh-execd is running...
wazuh-db is running...
wazuh-authd is running...
wazuh-agentlessd not running...
wazuh-integratord not running...
wazuh-dbd not running...
wazuh-csyslogd not running...
wazuh-apid is running...

  <sca>
    <enabled>yes</enabled>
    <scan_on_start>yes</scan_on_start>
    <interval>12h</interval>
    <skip_nfs>yes</skip_nfs>
    <wday>saturday</wday>
    <time>00:00</time>
  </sca>

Copy link
Contributor

@myu1d157h0u54nd myu1d157h0u54nd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@alberpilot alberpilot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alberpilot alberpilot merged commit 91d28cf into master Jan 13, 2022
@alberpilot alberpilot deleted the 692-FixSCATemplateIssuetoMaster branch January 13, 2022 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants