Source
<expression>now()>1 and baselinedev(/ComprehensiveTemplate/agent.ping,1M:now/M,"h",2)=22</expression>
<zabbix_export>
<version>6.4</version>
<template_groups>
<template_group>
<uuid>bb17447fffe04b7784ddbd77b209c05a</uuid>
<name>TmplTests</name>
</template_group>
</template_groups>
<templates>
<template>
<uuid>beae65b7da0a4106bb34b9fc5d39120e</uuid>
<template>bbbtmpl</template>
<name>bbbtmpl</name>
<templates>
<template>
<name>SampleTemplate</name>
</template>
</templates>
<groups>
<group>
<name>TmplTests</name>
</group>
</groups>
<macros>
<macro>
<macro>{$CHLDTMPLMACRO}</macro>
<value>1</value>
</macro>
</macros>
</template>
<template>
<uuid>02988c606ac84654beb66617b9d7a80c</uuid>
<template>SampleTemplate</template>
<name>aaatmpl</name>
<groups>
<group>
<name>TmplTests</name>
</group>
</groups>
<items>
<item>
<uuid>9a443737fdc84f9a8305294ccb8c1ce9</uuid>
<name>TemplateItem</name>
<type>TRAP</type>
<key>tmpltrap</key>
<!--WARNING, delay gets changed but this is ignored (by front-end) for trapper item when importing the template.
UUID also gets changed, but it is ignored by the configuration syncer. -->
<delay>10s</delay>
<triggers>
<trigger>
<uuid>677b5052252d423491ec680c7b1b32e5</uuid>
<expression>last(/SampleTemplate/tmpltrap)=3</expression>
<name>TemplateTrigger</name>
<priority>HIGH</priority>
<tags>
<tag>
<tag>eee</tag>
<value>faff</value>
</tag>
</tags>
</trigger>
</triggers>
</item>
</items>
<discovery_rules>
<discovery_rule>
<uuid>0c03a20de6f144d68bd48855e59fb32e</uuid>
<name>DiscoveryRule</name>
<type>SCRIPT</type>
<key>discrule</key>
<params>return "";</params>
<filter>
<conditions>
<condition>
<macro>{#LLDMACRO}</macro>
<value>WA</value>
<formulaid>A</formulaid>
</condition>
</conditions>
</filter>
<item_prototypes>
<item_prototype>
<uuid>4d34d26d2480480c862261b1b9e9d99d</uuid>
<name>DepItemProtoDependsOnNormalItem1</name>
<type>DEPENDENT</type>
<key>depitemproto_deponnormal[{#LLDMACRO}]</key>
<delay>0</delay>
<master_item>
<key>tmpltrap</key>
</master_item>