[ZBX-25024] Sender data file does not work with Proxy Created: 2024 Aug 12  Updated: 2024 Nov 21  Resolved: 2024 Nov 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P)
Affects Version/s: 7.0.2, 7.2.0alpha1
Fix Version/s: 7.0.6rc1, 7.2.0beta1

Type: Problem report Priority: Blocker
Reporter: Janis Nulle Assignee: Andris Zeila
Resolution: Fixed Votes: 2
Labels: proxy, sender
Remaining Estimate: Not Specified
Time Spent: 4h
Original Estimate: Not Specified

Attachments: File data-1.csv     File data.csv     PNG File image-2024-08-12-10-50-26-845.png     PNG File image-2024-08-13-09-01-10-198.png     PNG File screenshot-1.png     PNG File screenshot-2.png     File trapper_host.yaml    
Issue Links:
Causes
caused by ZBXNEXT-6144 Zabbix Proxy history handling without... Closed
Duplicate
Team: Team A
Sprint: S24-W42/43, S24-W44/45
Story Points: 1

 Description   

Zabbix Sender file input does not work with Proxy on 7.0+ when using timestamps.

It works as expected on 6.0, or when sending the file input directly to the server, or when there are no timestamps in the file.

Scenario:

  1. [In Frontend] Set up an active Proxy:
    1. Name: Zabbix Proxy
    2. Mode: Active
    3. Proxy address: 127.0.0.1
  2. [In Frontend] Set up a host with one "Zabbix trapper" type item:
    1. Host name: test
    2. Interface - none
    3. Monitored by: Zabbix proxy
    4. Item name: trap
    5. Item type: Zabbix trapper
    6. Item key: trap
    7. Item type of information: Text (but also reproduced with Numeric)
  3. Configure zabbix_proxy.conf (my full config):
    ProxyMode=0
    Server=127.0.0.1
    Hostname=Zabbix proxy
    ListenPort=10052
    LogFile=/tmp/zabbix_proxy.log
    DBName=7.0_proxy
    DBUser=zabbix
    DBPassword=zabbix
    ProxyBufferMode=hybrid
    ProxyMemoryBufferSize=16M
    Timeout=4
    LogSlowQueries=3000
    
  4. Start Server and Proxy;
  5. Using Zabbix Sender send in a data file containing timestamps;
    ./zabbix_sender -z localhost -p 10052 -i data.csv -T
    
  6. See the latest data for the item.

Result:
Only the latest record is shown.

Expected:
All records are shown.

Example of data in the file (full file attached) - the timestamps are only a few hours old:

test trap 1723413600 "000000"
test trap 1723413601 "000001"
test trap 1723413602 "000002"
test trap 1723413603 "000003"
...


 Comments   
Comment by Alexander Vladishev [ 2024 Oct 22 ]

I was able to reproduce this issue with the hybrid mode and in-memory data storage mode (parameter ProxyBufferMode=hybrid/memory).

Comment by Vladislavs Sokurenko [ 2024 Oct 22 ]

As a workaround can you please try without specifying nanoseconds ?

Comment by Andris Zeila [ 2024 Nov 04 ]

Released ZBX-25024 in:

  • pre-7.0.6rc1 f110d249e85
  • pre-7.2.0alpha2 bd578b5e72f
Generated at Fri May 09 05:45:17 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.