In EDI based communications you often have a dir where EDI files get saved and wait for processing. Every now and then these processes don’t work and the file count grows. Of course this is only one example, but it’s often handy to have a trigger fire, when a certain folder has more than X files in it.
Zabbix: Simple file count for Linux
Watch the files count of a dir on Linux with Zabbix.