[ZBXNEXT-4605] Allow active agent to keep the data that could not be sent Created: 2018 Jun 25 Updated: 2018 Jul 12 |
|
Status: | Confirmed |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Agent (G) |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Change Request | Priority: | Major |
Reporter: | Kirill Varnakov | Assignee: | Zabbix Development Team |
Resolution: | Unresolved | Votes: | 0 |
Labels: | agent, metrics | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: | zabbix_buffer.png |
Description |
Hi. Zabbix agent has two perfect options: BufferSize and BufferSend, but it doesn't have another one. It must have options for buffer metrics, when it loss connection to server or proxy, for example BufferLostConnectionSize=65535. Can you add this function to agent? |
Comments |
Comment by Vjaceslavs Bogdanovs [ 2018 Jun 25 ] | ||||||||||
Could you please explain the main difference between BufferSize and proposed BufferLostConnectionSize? | ||||||||||
Comment by Kirill Varnakov [ 2018 Jun 27 ] | ||||||||||
May be it is a bug... My settings for active agents: BufferSend=5 BufferSize=65535 My host has 147 items and sends it every minute. I set BufferSize=65535 and thought, that if agent losts connection to server, it saves metrics for 65535/147=445 minutes in memory and after connection restored, it send metrics to server. But it doesn't work like I think. I set my firewall for block packets to server at 11:23 and deleted this rule at 12:05. Please see screeshot, what happens. | ||||||||||
Comment by Glebs Ivanovskis [ 2018 Jun 28 ] | ||||||||||
Quoting documentation:
With BufferSend=5 I wouldn't expect to get graphs without gaps... | ||||||||||
Comment by Kirill Varnakov [ 2018 Jun 28 ] | ||||||||||
May be add to this description: Even if lost connection to server... And more interesting will be if we would have BufferLostConnectionSize. How do you think? | ||||||||||
Comment by Glebs Ivanovskis [ 2018 Jun 28 ] | ||||||||||
I think it would be more interesting if people could read what's already there in documentation.
...and what if not lost? Zabbix agent does not keep connection alive, there is actually no way to tell if connection was lost or not. | ||||||||||
Comment by Kirill Varnakov [ 2018 Jun 28 ] | ||||||||||
I think it would be more interesting if people could read from beginning of request. Ahaha ) | ||||||||||
Comment by Kirill Varnakov [ 2018 Jul 06 ] | ||||||||||
Simply I want, that active agent can buffers metrics for a long time, if it loses connection to server and sends metrics constantly, if all good. But now, it is impossible. Why? | ||||||||||
Comment by dimir [ 2018 Jul 06 ] | ||||||||||
After discussion with vjaceslavs I propose to add option BufferKeep=<seconds> that would allow keeping unsent buffer for configured time. | ||||||||||
Comment by Vjaceslavs Bogdanovs [ 2018 Jul 06 ] | ||||||||||
We will have to incease max value of BufferSize as 64K is not sufficient to keep data when connection is lost. | ||||||||||
Comment by Kirill Varnakov [ 2018 Jul 07 ] | ||||||||||
Many thanks. Wait. |