Hi,
I'd like to catch "nfs: server * not responding, still trying" in /var/log/syslog using zabbix logrt.count function, only if it appeared more than 5 times in the past 10 minutes.
I tried 2 different items:
1. logrt[/var/log/syslog,"not responding, still trying",,,skip]
2. logrt.count[/var/log/syslog,"not responding, still trying",,,skip]
and their triggers:
1. {Log File monitor Template:logrt[/var/log/syslog,@log_filter_syslog,,,skip].count(1m,"not responding, still trying",like)}>2
2. {Log File monitor Template:logrt.count[/var/log/syslog,"not responding, still trying",,,skip].last()}>2
But none of these is working, getting "NOT SUPPORTED" from zabbix
checking the logs i saw "can't evaluate function" so this is an issue with my syntax
Can anyone provide a working example for catching lines that appear more than once by counting them in log files.
Thanks
- Moshe
I'd like to catch "nfs: server * not responding, still trying" in /var/log/syslog using zabbix logrt.count function, only if it appeared more than 5 times in the past 10 minutes.
I tried 2 different items:
1. logrt[/var/log/syslog,"not responding, still trying",,,skip]
2. logrt.count[/var/log/syslog,"not responding, still trying",,,skip]
and their triggers:
1. {Log File monitor Template:logrt[/var/log/syslog,@log_filter_syslog,,,skip].count(1m,"not responding, still trying",like)}>2
2. {Log File monitor Template:logrt.count[/var/log/syslog,"not responding, still trying",,,skip].last()}>2
But none of these is working, getting "NOT SUPPORTED" from zabbix
checking the logs i saw "can't evaluate function" so this is an issue with my syntax
Can anyone provide a working example for catching lines that appear more than once by counting them in log files.
Thanks
- Moshe
Comment