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

    • Sprint 57 (Oct 2019)
    • 1

      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.

            vso Vladislavs Sokurenko
            vso Vladislavs Sokurenko
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: