I would like to use {#TRIGGERVALUE} in a Trigger Prototype in my Template.
I can't get the following to work
<trigger_prototype>
<expression>{MyTemplate:myZabbix.fetch[{#ZABBIXPATH}].last(0)}>{#TRIGGERVALUE}</expression>
<name>{#MYLABEL}</name>
<url/>
<status>0</status>
<priority>2</priority>
<description/>
<type>0</type>
</trigger_prototype>
Both {#ZABBIXPATH} and {#MYLABEL} works ok but not {#TRIGGERVALUE}!
The follwong expression with a hardcoded value of 100 works:
<expression>{MyTemplate:myZabbix.fetch[{#ZABBIXPATH}].last(0)}> 100</expression>
Is there a way of controlling the trigger value using parameters set from the Zabbix agent?
I can't get the following to work
<trigger_prototype>
<expression>{MyTemplate:myZabbix.fetch[{#ZABBIXPATH}].last(0)}>{#TRIGGERVALUE}</expression>
<name>{#MYLABEL}</name>
<url/>
<status>0</status>
<priority>2</priority>
<description/>
<type>0</type>
</trigger_prototype>
Both {#ZABBIXPATH} and {#MYLABEL} works ok but not {#TRIGGERVALUE}!
The follwong expression with a hardcoded value of 100 works:
<expression>{MyTemplate:myZabbix.fetch[{#ZABBIXPATH}].last(0)}> 100</expression>
Is there a way of controlling the trigger value using parameters set from the Zabbix agent?
Comment