Hello, good morning!
I have a problem. I'm testing the logrt function of zabbix. I'm monitoring a folder with several logs files and I would like that an alert(trigger) was activated when 3 new strings (in 10 minutes) "ErrorZabbix" be added to the log.
So, I created a item
After, I created a trigger:
However, I think that Zabbix is not working correctly.
The 11:17 AM I added ONE new string "ErrorZabbix" in log manually. However, in lastest data (in Zabbix Monitoring) shows as if I had added 11 strings "ErrorZabbix". It seems that every new string "ErrorZabbix" the zabbix records the old items again. Therefore, always the trigger is activated.
The Zabbix log attachment (zabbix_agentd_5.zip)
The log monitored by zabbix (attachment)
Print of lastest data monitoring (attachment)
Thanks
Everton
I have a problem. I'm testing the logrt function of zabbix. I'm monitoring a folder with several logs files and I would like that an alert(trigger) was activated when 3 new strings (in 10 minutes) "ErrorZabbix" be added to the log.
So, I created a item
Code:
logrt["C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS\^TST-SPS-04-.*$","ErrorZabbix"]
Code:
{tst-sps-04:logrt["C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS\^TST-SPS-04-.*$","ErrorZabbix"].count(10m)}>=3
The 11:17 AM I added ONE new string "ErrorZabbix" in log manually. However, in lastest data (in Zabbix Monitoring) shows as if I had added 11 strings "ErrorZabbix". It seems that every new string "ErrorZabbix" the zabbix records the old items again. Therefore, always the trigger is activated.
The Zabbix log attachment (zabbix_agentd_5.zip)
The log monitored by zabbix (attachment)
Print of lastest data monitoring (attachment)
Thanks
Everton
Comment