Because vfs.file.exists doesn't accept wildcards and I needed it for Windows, I wrote this little function.....
vfs.file.exists <==> vfs.files.exists
zabbix_agentd.conf
It should be even easier in Linux, but I actually wanted something more advanced that looked at the age of the file and all.
I already wrote something for that.
Because I needed it on Windows I made a trigger that checks all the last 30 occurences and if that wildcard was there everytime, it would give an alert
vfs.file.exists <==> vfs.files.exists
zabbix_agentd.conf
Code:
UnsafeUserParameters=1 UserParameter=vfs.files.exists[*], dir "$1" 2>null | find /c "bytes "
I already wrote something for that.
Because I needed it on Windows I made a trigger that checks all the last 30 occurences and if that wildcard was there everytime, it would give an alert
Code:
vfs.files.exists[c:\queue\*out].min(#30)>0
Comment