-
Notifications
You must be signed in to change notification settings - Fork 1k
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
OSSEC WUI Unable to retrieve alerts. #1577
Comments
Dis you add your webserver user to the ossec group and restart the webserver processes? |
yes. my web server user is apache. i found this link do you think it could be the answer? |
No idea. The wui project has been abandoned for years, and I haven’t used it in forever. |
alright. ill check it again later and give you an update. |
@ddpbsd here is the error im getting on my PHP error logs
|
So it looks like |
ive tried to set chmod 777 -R * on bot /var/ossec/ and /var/www/html/ossec-wui
is the group correct? |
Ok, assuming apche runs as the |
As @ddpbsd mentioned, it could be an SELinux issue (check I have this SELinux module (
The error message re-appears after every logrotate and is resolved with
I'm not sure why it messes up the SELinux labels all the time.
|
ossec/ossec-docs#146
Tony
… On Nov 21, 2018, at 12:36, Simon Dellenbach ***@***.***> wrote:
As @ddpbsd mentioned, it could be an SELinux issue (check /var/log/audit/audit.log).
I have this SELinux module (ossec-wui.te) to allow the webserver running ossec-wui to access the log files:
module ossec-wui 1.1;
require {
type var_log_t;
type httpd_t;
type var_t;
class file { read getattr open };
}
#============= httpd_t ==============
allow httpd_t var_log_t:file { read open };
allow httpd_t var_t:file { read getattr open };
The error message re-appears after every logrotate and is resolved with
restorecon -Rv /var/ossec/logs
I'm not sure why it messes up the SELinux labels all the time.
This is the fcontext for the log files on my system:
# semanage fcontext -l | grep ossec
/var/ossec/logs(/.*)? all files system_u:object_r:var_log_t:s0
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hello @ddpbsd
I am having this error on OSSEC WUI
Ive tried to set my /var/ossec/tmp to 777 but still the same. is there anything im missing?
My apologies. im new to this OSSEC thing
The text was updated successfully, but these errors were encountered: