Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-16754

Trigger is not fired for first collected value if it's timestamp is in future

    XMLWordPrintable

    Details

    • Team:
      Team A
    • Sprint:
      Sprint 57 (Oct 2019)
    • Story Points:
      1

      Description

      Create trigger by using attached host zbx_export_hosts_trigger.xml

      {Zabbix server:trap1["0"].last()}=0
      

      Start zabbix server and send in value with timestamp in the future:

      #!/bin/bash
      printf "\"Zabbix server\" trap1[\"0\"] 1659056215 0\n" > values_sender.txt
      /var/www/html/zabbix/bin/zabbix_sender -z localhost -p 10051 -I "::1" -T -i values_sender.txt
      

      Expected:

      Problem started at 03:56:55 on 2022.07.29
      Problem name: trap_trig
      Host: Zabbix server
      Severity: Not classified
      
      Original problem ID: 12
      

      Actual:

      Trigger name: trap_trig
      Expression: {Zabbix server:trap1["0"].last()}=0
      State: Unknown
      

      The reason for it is that currently last value calculation takes current time in order to read newly received value.

        Attachments

          Activity

            People

            Assignee:
            vso Vladislavs Sokurenko
            Reporter:
            vso Vladislavs Sokurenko
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: