Hi, I am trying to check a text file/log file works too, for a specific string, and if that string exists I want a trigger to go off, and an email to send. I have tried multiple things for the triggers, and nothing seems to work. This is my most recent attempt :
Item :
Name : Test
Type : Zabbix agent (active)
Key : log[/path/to/file,myWord]
Type of information : Log
Trigger :
Name : Test
Expression : ({Template OS Linux:log[/path/to/file].regexp(myWord)})<>0)
So basically I am trying to get the trigger to go off if "myWord" in the file exists.
If anyone has any advice it is appreciated.
Thanks.
Item :
Name : Test
Type : Zabbix agent (active)
Key : log[/path/to/file,myWord]
Type of information : Log
Trigger :
Name : Test
Expression : ({Template OS Linux:log[/path/to/file].regexp(myWord)})<>0)
So basically I am trying to get the trigger to go off if "myWord" in the file exists.
If anyone has any advice it is appreciated.
Thanks.
Comment