I'm trying to setup some log file monitoring to search for errors that are added to the log. I was able to get the basic functionality working, where it would find a particular string in the log and fire off a Trigger in the Zabbix server. Then it would also recover, when it met the parameters. That's all fine.
However, I need to search that same log file for one of two different error strings - I want to activate the Trigger for either error (an OR logic test). I've not been able to figure out how to get that done yet. I saw another posting where they just included a pipe between the terms, but that's not working for me - when I try it I get an error back from Zabbix configuration after clicking 'Update'.
This one works (it has been slightly modified for this posting, but the general pattern is sound):
If I try a very simple change, I get an error when trying to save the new string:
What I ultimately am looking for is two different strings:
The error I get back when trying to save it is:
Anyone have any tips on getting this to work?
However, I need to search that same log file for one of two different error strings - I want to activate the Trigger for either error (an OR logic test). I've not been able to figure out how to get that done yet. I saw another posting where they just included a pipe between the terms, but that's not working for me - when I try it I get an error back from Zabbix configuration after clicking 'Update'.
This one works (it has been slightly modified for this posting, but the general pattern is sound):
Code:
{Template_1:logrt["C:\Program Files\Logs\Event.log","process has terminated",,4,,,].nodata(60)}=0
Code:
{Template_1:logrt["C:\Program Files\Logs\Event.log","process hassss terminated",,4,,,].nodata(60)}=0
Code:
{Template_1:logrt["C:\Program Files\Logs\Event.log","process has terminated|process exited",,4,,,].nodata(60)}=0
The error I get back when trying to save it is:
Code:
Details Cannot update trigger[LIST][*]Incorrect item key "logrt["C:\Program Files\Logs\Event.log","process has terminated|process exited",,4,,,]" provided for trigger expression on "Template_1".[/LIST]

Comment