[ZBX-22509] Proxy stores values more time than set in "History storage period" for the Item Created: 2023 Mar 14  Updated: 2023 Sep 11

Status: Confirmed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P)
Affects Version/s: 6.4.0
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Volodymyr Mosiichuk Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 4
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Prerequisites
Zabbix Proxy
SQLite3
Mode active
ProxyOfflineBuffer=5

Monitored host
Any type of item with "History storage period" > 2h (more than value ProxyOfflineBuffer from above).

Steps to reproduce:

  1. Create an item for the monitored host with "History storage period" = 1h
  2. Assign the monitored host to the proxy.
  3. Block the network connection between Server and Proxy so that Proxy continues collecting the metric for more than 1h without interaction with the Server.
  4. After restoring the network, the Proxy is sending historical values with the expired storage period.

Result:
The Proxy stores values for all period when it didn't interact with the server, and then during the synchronization, the server accepts only values for the last 1h (as set in "History storage period").

779:20230312:104818.573 item "node-01-wro1:vfs.fs.dependent[/,data]" vaalue timestamp "2023.03.12 08:31:22" is outside history storage period
779:20230312:104818.588 item "node-01-wro1:vfs.fs.dependent[/,data]" value timestamp "2023.03.12 08:32:22" is outside history storage period
779:20230312:104818.605 item "node-01-wro1:vfs.fs.dependent[/,data]" value timestamp "2023.03.12 08:33:22" is outside history storage period
779:20230312:104818.620 item "node-01-wro1:vfs.fs.dependent[/,data]" value timestamp "2023.03.12 08:34:22" is outside history storage period
779:20230312:104818.637 item "node-01-wro1:vfs.fs.dependent[/,data]" value timestamp "2023.03.12 08:35:22" is outside history storage period

Expected:
The Proxy Housekeeper should clean all values older than "History storage period" for the item and don't even try to send them to the server which rejects those values anyway



 Comments   
Comment by G. V. Tjong A Hung [ 2023 Sep 11 ]

Is there a way to manually clear the values older than "History storage period", or even just a clear values older than "some point in time"?

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