[ZBX-23896] Proxy complaining about unexpected field "config.timeout_zabbix_agent" Created: 2023 Dec 28  Updated: 2024 Apr 10  Resolved: 2024 Jan 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P), Server (S)
Affects Version/s: 7.0.0alpha9, 7.0 (plan)
Fix Version/s: 7.0.0beta1, 7.0 (plan)

Type: Problem report Priority: Trivial
Reporter: user185953 Assignee: Alex Kalimulin
Resolution: Fixed Votes: 0
Labels: configuration, proxy
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian 12


Attachments: PNG File zbx7queue.png    
Issue Links:
Causes
caused by ZBXNEXT-6144 Zabbix Proxy history handling without... Closed
Team: Team C
Sprint: S2401
Story Points: 0.125

 Description   

Proxy logs:

 received configuration data from server at "192.168.1.x", datalen 31234
 cannot process received configuration data from server at "192.168.1.x": unexpected field "config.timeout_zabbix_agent"

 

This started after zabbix server upgrade to "7.0.0alpha6", but proxy stayed at "7.0.0alpha1".

Upgrading both server and proxy to "7.0.0alpha9" makes no change, but now Zabbix frontend reports "Zabbix proxy last seen more than 600 seconds ago".

 

Sorry if this is normal in alpha please just say its not relevent and close.



 Comments   
Comment by Alex Kalimulin [ 2024 Jan 03 ]

It's normal to have errors about enexpected fields, because there were protocol changes related to addition of configurable timeouts per item.

But it's strange proxies last seen not updated for the same server version. Does any data come from this proxy at all?

Comment by user185953 [ 2024 Jan 03 ]

What is the most reliable way to test?

Its a lab setup, each proxy monitoring only its own host.

I expect answer is no. Definitely more items not arriving in queue

Comment by user185953 [ 2024 Jan 03 ]

Oh, my bad. Real problem "proxy not starting and not creating logs".

Next step for this is running in foreground, or something else?

 

The proxy completely fails to start after updating:

 

● zabbix-proxy.service - Zabbix Proxy
     Loaded: loaded (/lib/systemd/system/zabbix-proxy.service; enabled; preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Wed 2024-01-03 10:10:22 CET; 6s ago
    Process: 88708 ExecStart=/usr/sbin/zabbix_proxy -c $CONFFILE (code=exited, status=1/FAILURE)
        CPU: 24ms
Jan 03 10:10:22 zbx7prxLan1 systemd[1]: zabbix-proxy.service: Control process exited, code=exited, status=1/FAILURE
Jan 03 10:10:22 zbx7prxLan1 systemd[1]: zabbix-proxy.service: Failed with result 'exit-code'.
Jan 03 10:10:22 zbx7prxLan1 systemd[1]: Failed to start zabbix-proxy.service - Zabbix Proxy.
 

And last line in /var/log/zabbix/zabbix_proxy.log is

780:20231228:165450.996 Zabbix Proxy stopped. Zabbix 7.0.0alpha1 (revision aef542ad8ae).

 

Comment by user185953 [ 2024 Jan 03 ]

Well, real problem was my configuration error in ProxyMemoryBufferAge.

 

$ sudo /usr/sbin/zabbix_proxy -T -c /etc/zabbix/zabbix_proxy.conf
Validating configuration file "/etc/zabbix/zabbix_proxy.conf"
zabbix_proxy [88846]: ERROR: wrong value of "ProxyMemoryBufferAge" configuration parameter

 

 

I failed noticing gap in allowed values:

 

### Option: ProxyMemoryBufferAge
#       Maximum age of data in proxy memory buffer, in seconds.
#       When enabled (not zero) and records in proxy memory buffer are older, then it forces proxy buffer
#       to switch to database mode until all records are uploaded to server.
#       This parameter must be less or equal to ProxyOfflineBuffer parameter.
#
# Mandatory: no
# Range: 0,600-864000
# Default:
# ProxyMemoryBufferAge=0
ProxyMemoryBufferAge=300

 

 

 Thank you for support and sorry.

Comment by user185953 [ 2024 Jan 03 ]

I think reason for this user error is all my attention was consumed by

 This parameter must be less or equal to ProxyOfflineBuffer parameter

and many times checking ProxyOfflineBuffer=32 (hours) is less than ProxyMemoryBufferAge=300 (seconds).
 

EDIT: See? Wrong again, 32 is MORE than 300!

Comment by Alex Kalimulin [ 2024 Jan 03 ]

Yes, we will make this message clearer.

Comment by Alexander Vladishev [ 2024 Jan 03 ]

Fixed in:

Comment by user185953 [ 2024 Jan 05 ]

Well thanks. But I meant something else. I see this point is hard to catch.

 

I focused on the units problem so much that I missed

ProxyMemoryBufferAge=300

is out of allowed range for ProxyMemoryBufferAge

Range: 0,600-864000

 


 

Question 1: What is reason for ProxyOfflineBuffer*3600 > ProxyMemoryBufferAge check?

Anything bad happens, or ProxyMemoryBufferAge just becomes effectively zero/forever?

 

Question 2: Is it necessary to set ProxyOfflineBuffer using one-hour steps? Would "2.5h" break?

If not, I propose allowing time suffixes like in frontend (s, m, h, d, w, M) and setting all in "seconds".

At least for me, comparing "32h" and "300s" or just "300" requires way less attention for humans.

 

 

Comment by Alex Kalimulin [ 2024 Jan 08 ]

user185953, q1 - ProxyOfflineBuffer would never work if we allowed bigger ProxyMemoryBufferAge.  q2 - "2.5h" is not supported, but in general adding units to all time and period related parameters in the .conf files is something we want to add in the future.

Generated at Wed Apr 01 15:58:26 EEST 2026 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.