[ZBXNEXT-1096] Configurable Timeout per item (host interface|item) Created: 2012 Jan 29 Updated: 2024 Jun 27 Resolved: 2023 Oct 22 |
|
Status: | Closed |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Server (S) |
Affects Version/s: | 1.8.10 |
Fix Version/s: | 7.0.0alpha5, 7.0 (plan) |
Type: | Change Request | Priority: | Major |
Reporter: | hamid sfandiari | Assignee: | Dmitrijs Goloscapovs |
Resolution: | Fixed | Votes: | 30 |
Labels: | interfaces, retry, snmp, timeout | ||
Σ Remaining Estimate: | Not Specified | Remaining Estimate: | Not Specified |
Σ Time Spent: | Not Specified | Time Spent: | Not Specified |
Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
Attachments: |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sub-Tasks: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Epic Link: | Zabbix 7.0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Team: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sprint: | Sprint 103 (Aug 2023), Sprint 104 (Sep 2023), Sprint 105 (Oct 2023) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Story Points: | 10 |
Description |
CACTI SNMP Retry time per poll caused to continuous graph in case of a host with some packet loss Whereas the graphs is not continues in ZABBIX ADDED by dev team: see comments below for Timeout details. |
Comments |
Comment by hamid sfandiari [ 2012 Feb 04 ] |
I used this patch and already works for me This patch fixes a bug introduced via commit 6cac050 (May 5, 2011, --- snmplib/snmp_api.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) Index: net-snmp-5.7.1/snmplib/snmp_api.c =================================================================== --- net-snmp-5.7.1.orig/snmplib/snmp_api.c +++ net-snmp-5.7.1/snmplib/snmp_api.c @@ -704,6 +704,8 @@ _init_snmp(void) netsnmp_ds_set_int(NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_HEX_OUTPUT_LENGTH, 16); + netsnmp_ds_set_int(NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_RETRIES, + DEFAULT_RETRIES); #ifdef NETSNMP_USE_REVERSE_ASNENCODING netsnmp_ds_set_boolean(NETSNMP_DS_LIBRARY_ID, @@ -1180,12 +1182,8 @@ _sess_copy(netsnmp_session * in_session) } if (session->retries == SNMP_DEFAULT_RETRIES) { - int retry = netsnmp_ds_get_int(NETSNMP_DS_LIBRARY_ID, - NETSNMP_DS_LIB_RETRIES); - if (retry < 0) - session->retries = DEFAULT_RETRIES; - else - session->retries = retry; + session->retries = netsnmp_ds_get_int(NETSNMP_DS_LIBRARY_ID, + NETSNMP_DS_LIB_RETRIES); } if (session->timeout == SNMP_DEFAULT_TIMEOUT) { int timeout = netsnmp_ds_get_int(NETSNMP_DS_LIBRARY_ID, |
Comment by Oleksii Zagorskyi [ 2013 Mar 15 ] |
Take a look https://support.zabbix.com/browse/ZBX-4393#comment-77173 |
Comment by richlv [ 2013 Nov 06 ] |
also see |
Comment by Oleksii Zagorskyi [ 2014 Jul 28 ] |
As we have interfaces in zabbix already, it would be probably the most reasonable to introduce such feature on interface level, similarly to Per item is not required at all and would be complicated to manage. |
Comment by Oleksii Zagorskyi [ 2014 Jul 28 ] |
When introducing it take into account |
Comment by Oleksii Zagorskyi [ 2015 Mar 24 ] |
Let's extend current feature request to include individual timeout handling. Issue summary has been updated. It would resolve other issues like: |
Comment by Artur [ 2015 Mar 24 ] |
Oleksiy, can not add a timeout for the interface? And add a timeout for items? |
Comment by Oleksii Zagorskyi [ 2015 Mar 24 ] |
Artur, hmm, I'm sorry, but cannot understand what is the question? |
Comment by Artur [ 2015 Mar 24 ] |
Sorry for my bad English. Yes, I meant it. Timeout for per item will be better. |
Comment by Oleksii Zagorskyi [ 2015 Mar 24 ] |
It will be of course (re)considered before development what would be better - item or interface. I still believe that interface will be better. We could for example extend the drop-down interfaces list including bulk, timeout, retries parameters to every list line. But main question is: will it be developed at all and when ? <- that's the most important thing |
Comment by Artur [ 2015 Mar 24 ] |
Which interface will work with LLD? |
Comment by Oleksii Zagorskyi [ 2015 Mar 24 ] |
"External check" items also have interface field. What is not very good that "Database monitor" items do not have interfaces ... But using interfaces can have similar troubles as discussed in |
Comment by James Cook [ 2015 Mar 25 ] |
If you do the time out settings on the interface AND the items this would be ideal. This way the possibility is that at the host level the default snmp timeout may be X and if required at the item level the snmp time out may be XX. This could be used in the example when the snmp daemon is actually executing a external script on the remote host (using exec or extend) to get the data and may take longer than the normal sysuptime etc... If it is implemented at the host and item level then this will cater for most requirements for all items types. |
Comment by Oleksii Zagorskyi [ 2015 Nov 13 ] |
As this is oldest ZBXNEXT, I'm posting here. |
Comment by Glebs Ivanovskis (Inactive) [ 2017 Oct 05 ] |
This looks like umbrella ticket for for all per item (type) timeout requests, so I'll leave my thoughts here. ODBC checks should not be forgotten. Currently there is only timeout for connection phase, query itself and all underlying network communication can last indefinitely long. |
Comment by Dimitri Bellini [ 2022 Mar 29 ] |
I re-open this ZBXNEXT because could be usefull to have a different Timeout for some specific Item Check (big rest-api or complex pre-proc steps). |
Comment by James Cook [ 2022 May 25 ] |
One type of 'timeout' I think could to be looked at here:
This would mean that when you have some items that may take longer than the existing maximum (30 seconds) say for example a discovery/external script/odbc query that is slow (API, Complex Database Query etc...) you could configure the 'poller timeout' just for this item say for example '60s'. Not going into the implementation of this in detail, but you would look at putting in item validation perhaps to enforce poller timeout should be less than item interval etc...
|
Comment by Alexei Vladishev [ 2023 Jul 31 ] |
We are implementing centralised management of item timeouts in 7.0 under this ticket. It will enable a global timeout (as it is now) and ability to override it on proxy (also managed from UI or API) and then on item level. All timeouts used for data collection will be managed from UI! |
Comment by Andrejs Griščenko [ 2023 Sep 22 ] |
Implemented in:
|
Comment by Arturs Dancis [ 2023 Oct 05 ] |
Documentation (7.0) updated:
|