-
Notifications
You must be signed in to change notification settings - Fork 197
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
Incorrect Exit Statuses #107
Comments
Some additional debug information:
|
Now that I look at the other Wazuh project, it looks like this should be working based on this code: ...digging further. |
I think this is actually an error in the other project. I've opened a PR there that should resolve the issue: |
I encounter this issue while making the Ansible roles idempotent. The |
Hi @paulcalabro , @dj-wasabi, I'm moving this issue to Best regards, Jose |
Issue moved to wazuh/wazuh #4811 via ZenHub |
A new installation of the ansible-wazuh-manager role does not, by default, enable the following daemons:
As a result,
service wazuh-manager status
returns an exit code of1
, which is customarily reserved for failures.This behavior is caused by the following code, found in /var/ossec/bin/ossec-control :
Given that a user might not want clustering nor email email notifications, having those services not enabled is not necessarily indicative of a failure. Having a return code of
1
causes misreporting of playbook executions.A better test might be: checking the configuration to see if they are configured to be enabled, but are not able to start successfully.
Or, less ideally IMO, configuring a one node cluster with email support by default.
The text was updated successfully, but these errors were encountered: