-
Problem report
-
Resolution: Fixed
-
Major
-
4.0.13, 4.2.7, 4.4.0, 5.0.0alpha1
-
None
-
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.