By default, agents stop adding files to the database once 100k files have been scanned, in order to increase this number, you need to add the <file_limit> section to your configuration as described in this link. Allowed values in the entries (number of files to be monitored) option allow numbers between 1 and 2147483647.
The configuration would look something like this, and we can update this from centralized configuration or locally on the agent.
Reference:
This error Real-time inotify kernel queue is full. is a kernel-side inotify queue overflow, Its expected when you are monitoring files more than 100000 files
Given these situations, we have two paths to follow:
Either reduce the amount of files being monitored using realtime/whodata in the Wazuh configuration for the syscheck module.
Or increase the inotify-watch-limit for below in/etc/sysctl.conf:
https://medium.com/@at15/ubuntu-change-fs-inotify-max-user-watches-for-idea-f5f5d6651e7f
Regards,
If the <file_limit> has been increased to 2,500,000 and the kernel parameter fs.inotify.max_user_watches has also been increased accordingly, Wazuh will no longer reject files due to file count limits, and related errors should no longer appear.
To further investigate why FIM events are not being reported, we need additional diagnostic information from the agent. Please enable debug level 2 for the following components in the agent’s configuration file:
/var/ossec/etc/internal_options.conf
After applying these changes, please restart the Wazuh agent and allow it to run until the issue is reproduced. Then, share the updated agent ossec.log file and agent.conf file.
This debug output will help us identify where the process is failing and determine the next steps.