[ZBX-24631] "Clear history and trends" does not clear "discard with heartbeat" cache Created: 2024 Jun 08  Updated: 2024 Jun 10

Status: Open
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: 7.0.0
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Markku Leiniƶ Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Steps to reproduce:

  1. Create host Testhost with item Testitem, with Discard unchanged with heartbeat = 2m
  2. Create trigger for Testitem:
    1. count(/Testhost/Testitem,3m) = 1
    2. OK event generation = None
    3. PROBLEM event generation mode = Multiple
  3. (Purpose is to trigger when the first value appears)
  4. Use zabbix_sender to send a value to the item, see that trigger is activated
  5. Within the two-minute discard window: go to the item and click Clear history and trends, and then use zabbix_sender again to send a value to the item

Result:

Trigger is not activated when the second value is sent.

Expected:

Since history and trends was deleted for the item, it is expected that the trigger is activated when the second zabbix_sender was run, as it is now the only value associated with the item as all previous values were deleted.



 Comments   
Comment by Markku Leiniƶ [ 2024 Jun 08 ]

Restarting Zabbix server service resets the cache, any new value sent after that is considered the first value again and trigger is activated.

Generated at Sat Jun 14 17:30:18 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.