You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two configuration issues for ossec under Ubuntu Focal:
When the system restarts, ossec-agent is started, but it does not connect to mon on startup (which is exactly the same error as reported in upstreamossec-hids/1946:
2021/02/08 16:39:16 ossec-agentd: INFO: Trying to connect to server 10.20.3.2, port 1514.
2021/02/08 16:39:16 ossec-agentd(1216): ERROR: Unable to connect to ' 10.20.3.2'.
When the python process throws an exception, that error is written to the Apache2 error logs. Ossec should then send out an alert
Steps to Reproduce
Install SecureDrop from develop on Focal prod hardware
observe `/var/ossec/logs/ossec.log for the error in the Description, restart the ossec service and observe that error no longer appearing in the logs
Trigger the test ossec alert (Journalist Interface -> admin -> Instance Configuration -> Send test ossec alert
view /var/ossec/logs/alerts/alerts.log no error was triggered
Expected Behavior
ossec-agent should start on boot and should forward alerts to mon
2.Application/apache error should trigger an ossec alert
Actual Behavior
ossec-agent does not start correctly, the following error is observed:
2021/02/08 16:39:16 ossec-agentd: INFO: Trying to connect to server 10.20.3.2, port 1514.
2021/02/08 16:39:16 ossec-agentd(1216): ERROR: Unable to connect to ' 10.20.3.2'.
Restarting the ossec service after boot resolves.
Application/apache error does not trigger an ossec alert
Comments
Changing the ossec service file for the agent to start ossec after the network starts (cb93415) did not resolve
Perhaps upstream updated the Apache, otherwise we should update in
emkll
changed the title
[Focal] Apache/Python error does not result in OSSEC alert
[Focal] Ossec-agent does not reconnect on reboot, Apache/Python error does not result in OSSEC alert
Feb 8, 2021
I could reproduce this. I also noticed a new error:
2021/02/10 11:27:19 ossec-agentd(1210): ERROR: Queue '/queue/alerts/execq' not accessible: 'Queue not found'.
2021/02/10 11:27:19 ossec-agentd: INFO: Unable to connect to the active response queue (disabled)
Not seeing anything on the mon server on the port 1514 when the system boots up. But, only when we restart the service.
Description
Two configuration issues for ossec under Ubuntu Focal:
mon
on startup (which is exactly the same error as reported in upstreamossec-hids/1946:Steps to Reproduce
/var/ossec/logs/alerts/alerts.log
no error was triggeredExpected Behavior
2.Application/apache error should trigger an ossec alert
Actual Behavior
Restarting the ossec service after boot resolves.
Comments
securedrop/install_files/securedrop-ossec-server/var/ossec/rules/local_rules.xml
Line 203 in 2de09b4
This is what an apache2 error looks like in Ubuntu Focal:
The text was updated successfully, but these errors were encountered: