I have an item prototype and a trigger prototype in a template and both are created during a low-level-discovery script.
Item Prototype:
Trigger Prototype:
Recovery expression:
Item effective example:
Trigger effective example:
Trigger effective recovery expression:
Everything works fine except the fact, that on recovery I get the same message as for the error/failure/trigger/event.
I did not set an individual message for the media type and I have a message template configured for Problem recovery in Media types.
I am using Zabbix 5.2.4 BTW.
I have no idea where and if I could change that.
Item Prototype:
Code:
log["{#BATCHLOGDIR}/{#BATCHLOGNAME}.{#BATCHLOGEXT}","{$BATCHLOGOKKEYWORDS}|{$BATCHLOGFAILKEYWORDS}",,,skip]
Code:
{MyTemplate:log["{#BATCHLOGDIR}/{#BATCHLOGNAME}.{#BATCHLOGEXT}","{$BATCHLOGOKKEYWORDS}|{$BATCHLOGFAILKEYWORDS}",,,skip].regexp("(?i)^.*({$BATCHLOGFAILKEYWORDS}).*$")}=1
Code:
{MyTemplate:log["{#BATCHLOGDIR}/{#BATCHLOGNAME}.{#BATCHLOGEXT}","{$BATCHLOGOKKEYWORDS}|{$BATCHLOGFAILKEYWORDS}",,,skip].regexp("(?i)^.*({$BATCHLOGOKKEYWORDS}).*$")}=1
Code:
log["/var/.../PersonImport.log","{$BATCHLOGOKKEYWORDS}|{$BATCHLOGFAILKEYWORDS}",,,skip]
Code:
{somehost:log["/var/.../PersonImport.log","{$BATCHLOGOKKEYWORDS}|{$BATCHLOGFAILKEYWORDS}",,,skip].regexp("(?i)^.*({$BATCHLOGFAILKEYWORDS}).*$")}=1
Code:
{somehost:log["/var/.../PersonImport.log","{$BATCHLOGOKKEYWORDS}|{$BATCHLOGFAILKEYWORDS}",,,skip].regexp("(?i)^.*({$BATCHLOGOKKEYWORDS}).*$")}=1
I did not set an individual message for the media type and I have a message template configured for Problem recovery in Media types.
I am using Zabbix 5.2.4 BTW.
I have no idea where and if I could change that.
Comment