I'm using zabbix 2.4.6
# rpm -qa |grep zabbix
zabbix-server-mysql-2.4.6-1.el7.x86_64
zabbix-web-2.4.6-1.el7.noarch
zabbix-2.4.6-1.el7.x86_64
zabbix-server-2.4.6-1.el7.x86_64
zabbix-web-mysql-2.4.6-1.el7.noarch
zabbix-agent-2.4.6-1.el7.x86_64
I defined a discovery to find out all log files need to monitored.
It works well, all logs can be found and monitored correctly.
I use regexp to collect logs from log files, then if there is log be collected, I want zabbix to send an alert Email.
My problem is that it seems like that zabbix will only trigger once at the first time when there is log be collected.
Below is my discovery Item prototypes and Trigger prototypes:
log["/var/lib/nova/instances/{#SERVER}/console.log","task .+ blocked for more than [0-9]+ seconds"]
(({Template App Nova Compute:log["/var/lib/nova/instances/{#SERVER}/console.log","task .+ blocked for more than [0-9]+ seconds"].regexp(.*)})<>0)
When there is multiple matched logs exist in console.log, all these logs will be collected, but trigger will only trigger once.
BTW, I also defined log monitor in templates, it works correctly, when there is multiple matched logs, trigger will get triggered multiple times respectively.
# rpm -qa |grep zabbix
zabbix-server-mysql-2.4.6-1.el7.x86_64
zabbix-web-2.4.6-1.el7.noarch
zabbix-2.4.6-1.el7.x86_64
zabbix-server-2.4.6-1.el7.x86_64
zabbix-web-mysql-2.4.6-1.el7.noarch
zabbix-agent-2.4.6-1.el7.x86_64
I defined a discovery to find out all log files need to monitored.
It works well, all logs can be found and monitored correctly.
I use regexp to collect logs from log files, then if there is log be collected, I want zabbix to send an alert Email.
My problem is that it seems like that zabbix will only trigger once at the first time when there is log be collected.
Below is my discovery Item prototypes and Trigger prototypes:
log["/var/lib/nova/instances/{#SERVER}/console.log","task .+ blocked for more than [0-9]+ seconds"]
(({Template App Nova Compute:log["/var/lib/nova/instances/{#SERVER}/console.log","task .+ blocked for more than [0-9]+ seconds"].regexp(.*)})<>0)
When there is multiple matched logs exist in console.log, all these logs will be collected, but trigger will only trigger once.
BTW, I also defined log monitor in templates, it works correctly, when there is multiple matched logs, trigger will get triggered multiple times respectively.
Comment