Hi Alpi Parta, You can define the directory like this.
<directories check_all="yes" realtime="yes">/var/www</directories>
You can check this document for configuration:
https://documentation.wazuh.com/current/user-manual/capabilities/file-integrity/basic-settings.html
If this does not work, please share the syschcek block configuration from your agent’s ossec.conf
Also, share the output of this command from your agent’s endpoint, after restarting the agent.
cat /var/ossec/logs/ossec.log | grep "Monitoring path"
Looking forward to an update on the issue.
Based on the log you have shared. FIM is working for the directory path
/var/www
I can see you have added
<ignore type="sregex">.log$|.swp$</ignore>
Which means files with extensions .log and .swp will be ignored.
Create a file with a different extension on /var/www folder and check if that triggers any alert or not.
vi /var/www/test.txt
If this doesn't trigger any alert share the output of this command from your agent and Wazuh manager server.
cat /var/ossec/logs/ossec.log | grep -i -E "error|warn"
Looking forward to your update on the issue.