I'm monitoring a text file on windows. When the file contains the string "example" I receive an email. Setup of Item and Trigger is as follows:
Item:
Type= Zabbix agent (active)
Key= vfs.file.regmatch[c:\zabbix\Test.txt,"example",,,10]
Type= Numeric (unsigned)
Trigger:
{hostname:vfs.file.regmatch[c:\zabbix\test.txt,"example",,,10].last()}=1
The textfile will look something like this:
06/27/2018 06:00:04 this is example1.
06/27/2018 06:00:04 this is example4
06/27/2018 06:00:04 this is example6
or :
06/27/2018 06:00:00 nothing to report.
Is it possible to include every occurence of "example" in the email zabbix sends? And if so, how?
(Zabbix 3.4.7)
Item:
Type= Zabbix agent (active)
Key= vfs.file.regmatch[c:\zabbix\Test.txt,"example",,,10]
Type= Numeric (unsigned)
Trigger:
{hostname:vfs.file.regmatch[c:\zabbix\test.txt,"example",,,10].last()}=1
The textfile will look something like this:
06/27/2018 06:00:04 this is example1.
06/27/2018 06:00:04 this is example4
06/27/2018 06:00:04 this is example6
or :
06/27/2018 06:00:00 nothing to report.
Is it possible to include every occurence of "example" in the email zabbix sends? And if so, how?
(Zabbix 3.4.7)
Comment