[ZBX-20839] Zabbix trigger "Expression constructor" | Time() and dayofweek() metrics Created: 2022 Apr 04  Updated: 2023 Jan 03  Resolved: 2023 Jan 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: 5.4.10, 5.4.11, 6.0.1, 6.0.2
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Radek Pavlík Assignee: Igor Gorbach (Inactive)
Resolution: Won't fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2022-04-04-10-52-48-521.png    

 Description   

Hi guys.

  1. Im usig triggers with time() and dayofweek() metrics.
  2. I want to test the trigger with "expression constructor"
  3. Can't change time or days at test windows

 

Trigger:

last(xyz/system.hw.serialnumber[xyz])=0 and time()>007000 and time()<090000 and dayofweek()=1-5

 

Problem: Zabbix expression constructor will take this metrics (time and dayofweek) from actual time and date, so if you wanna test midnight trigger you need to realy try it at midnight...with days is same.

 



 Comments   
Comment by Igor Gorbach (Inactive) [ 2023 Jan 03 ]

ZBX - is a bug tracker for identifying and fixing some issues in Zabbix functionality
The situation, that you described is not a sign of incorrect work of Zabbix, it is by design behavior
If this is a critical problem for you - you can make a feature request for improving the functionality in ZBXNEXT and if a large number of users vote for it, then the development team will definitely take it into consideration for adding or changing the functionality in new versions of Zabbix

Generated at Sun Apr 27 11:05:55 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.