Plesk

Plesk Administrator receives emails from cron: stat of /var/ossec/logs/ossec.log failed: Permission denied

Symptoms

Cause

SELinux blocks access to logfiles located in /var/ossec/logs (part of Imunify360) during log rotation.

Resolution

Solution I:
Disable SELinux permanently on the server.

 

Solution II:
If SELinux should be enabled, apply a special policy for OSSEC.
See the "Installation" section on this page: