Ad Widget

Collapse

How to create a trigger with items from different templates?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vladvvtesla
    Junior Member
    • Jan 2019
    • 9

    #1

    How to create a trigger with items from different templates?

    Hello!

    Zabbix 3.2.6: Task: «If a roof is opened, and the last IP-Cam image was obtained more than 10 minutes ago, trigger=Problem».

    I created "Template Roof", and an item "roof_status". I created "Template last_image_time", and an item "last_image_delay". I linked these templates to my hosts, and now I can get the last values.
    roof_status=0
    last_image_delay=3600

    I'd like to add new trigger into "Template last_image_time". with trigger expression:

    {Template last_image_time:get.last_image_delay[{$MACROS1},{$MACROS2}].last()}>600 and {Template Roof:get.roof_status[{$MACROS3},{$MACROS4}].last()}=0

    But it fails with the error "Trigger "name" belongs to templates with different linkages".

    I'd be grateful for the advice.
Working...