Zabbix Folder Monitoring Configuration

zabbixzabbix-agent

I am currently a beginner in Zabbix, and I want to set up monitoring of files when they are stopped in a folder.

I work in a company that already has a monitoring system only to see if a certain folder has stopped files. We need this monitoring because the system works with the movement of files and if a file is stopped this needs to generate the alert.

I tried searching the web but I did not find this feature. Zabbix is ​​running on a Centos 7 server and the folders are on servers running Windows Server

Best Answer

Your case seems to involve some basic custom scripting. :)

find /path/to/your/folder -type f -mmin +15 | wc -l

If that returns more than zero, then it means you have a file older than 15 minutes somewhere in that folder or any sub-directory.

Hook that external script to Zabbix as a new item for your monitored server and you're done.