[ZBX-20176] Trigger is still in UNKNOWN status when item becomes supported Created: 2021 Nov 04 Updated: 2024 Apr 10 Resolved: 2021 Nov 29 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 6.0.0alpha5 |
Fix Version/s: | 5.0.18rc1, 5.4.8rc1, 6.0.0alpha7, 6.0 (plan) |
Type: | Problem report | Priority: | Critical |
Reporter: | Kaspars Mednis | Assignee: | Vladislavs Sokurenko |
Resolution: | Fixed | Votes: | 1 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
||||||||||||||||||||
Team: | |||||||||||||||||||||
Sprint: | Sprint 82 (Nov 2021) | ||||||||||||||||||||
Story Points: | 0.25 |
Description |
Steps to reproduce:
Result: Zabbix server log (truncated, only important lines left) 229756:20211104:124536.902 zbx_setproctitle() title:'history syncer #1 [processed 0 values, 0 triggers in 0.000156 sec, syncing history]' 229756:20211104:124536.902 item "Test:test.item" became supported 229756:20211104:124536.902 query [txnlev:1] [update item_rtdata set state=0,error='' where itemid=39229;] 229756:20211104:124536.903 End of DBmass_update_items() 229756:20211104:124536.910 In recalculate_triggers() 229756:20211104:124536.911 zbx_substitute_functions_results() expression[0]:'{26692}=1' => 'ERROR(Cannot evaluate function last(/Test/test.item): item is not supported.)=1' 229756:20211104:124536.911 End of zbx_substitute_functions_results() 229756:20211104:124536.911 End of substitute_functions() 229756:20211104:124536.911 evaluate_expressions():expression [{26692}=1] cannot be evaluated: Cannot evaluate function last(/Test/test.item): item is not supported. 229756:20211104:124536.911 End of evaluate_expressions() 229756:20211104:124536.911 In zbx_process_triggers() values_num:1 229756:20211104:124536.911 In zbx_process_trigger() triggerid:20506 value:0(1) new_value:2 229756:20211104:124536.911 End of zbx_process_trigger():FAIL flags:0 229756:20211104:124536.911 End of zbx_process_triggers() 229756:20211104:124536.911 End of recalculate_triggers() 229756:20211104:124536.911 zbx_setproctitle() title:'history syncer #1 [processed 1 values, 1 triggers in 0.009759 sec, idle 1 sec]' Expected: And vice versa, when item becomes not supported, trigger switches to unknown status immediately. This may affect many customers, completely ignoring valid collected value is not expected from monitoring software. It will become even worse if the item has large update interval (hours or even days) or preprocessing steps with discard values
|
Comments |
Comment by Kaspars Mednis [ 2021 Nov 04 ] |
Confirmed. |
Comment by Vladislavs Sokurenko [ 2021 Nov 08 ] |
The problem occurred because after |
Comment by Vladislavs Sokurenko [ 2021 Nov 09 ] |
Fixed in pull request feature/ZBX-20176-5.0 |
Comment by Vladislavs Sokurenko [ 2021 Nov 12 ] |
Fixed in:
|