I would like to check if a file with a wildcard exits longer than 10 min
item: vfs.file.exists[/path/to/file/*.txt]
i have tried vfs.file.time, but you can not use a wildcard
trigger:
({Host:vfs.file.exists[/path/to/file/*.txt].min(10)}>0)and({Host:vfs.file.exists[/path/to/file/*.txt].time(0)}>060000)and({Host:vfs.file.exists[/path/to/file/*.txt].time(0)}<230000)
if i test the trigger and wether there is a test.txt or not it give 0. Why? Can i not use a wildcard?
[shell]$ zabbix_get -s 127.0.0.1 -p 10050 -k vfs.file.exists[/path/to/file/*.txt]
0
item: vfs.file.exists[/path/to/file/*.txt]
i have tried vfs.file.time, but you can not use a wildcard
trigger:
({Host:vfs.file.exists[/path/to/file/*.txt].min(10)}>0)and({Host:vfs.file.exists[/path/to/file/*.txt].time(0)}>060000)and({Host:vfs.file.exists[/path/to/file/*.txt].time(0)}<230000)
if i test the trigger and wether there is a test.txt or not it give 0. Why? Can i not use a wildcard?
[shell]$ zabbix_get -s 127.0.0.1 -p 10050 -k vfs.file.exists[/path/to/file/*.txt]
0