[ZBX-17607] Unreachable poller is too busy due to SNMP checks retry attempt Created: 2020 Apr 20  Updated: 2024 Apr 10  Resolved: 2020 May 15

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P), Server (S)
Affects Version/s: 4.0.19, 4.4.7, 5.0.0beta1, 5.0.0beta2
Fix Version/s: 4.0.21rc1, 4.4.9rc1, 5.0.1rc1, 5.2.0alpha1, 5.2 (plan)

Type: Problem report Priority: Trivial
Reporter: Vladislavs Sokurenko Assignee: Vladislavs Sokurenko
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Causes
caused by ZBX-16230 Unreachable host behavior uses item u... Closed
Team: Team A
Sprint: Sprint 63 (Apr 2020), Sprint 64 (May 2020)
Story Points: 0.25

 Description   

Retry was added under ZBX-8538, however after retry was made and check is moved to unreachable poller there is no reason to retry such checks as it results in 2 * Timeout per check which makes unreachable poller busier.

Timeout=7

 60522:20200415:155808.673 In zbx_snmp_get_values() num:1 level:0
 60522:20200415:155822.686 zbx_snmp_get_values() snmp_synch_response() status:2 s_snmp_errno:-24 errstat:-1 mapping_num:1

example fix but better to pass retry count as parameter:

diff --git a/src/zabbix_server/poller/checks_snmp.c b/src/zabbix_server/poller/checks_snmp.c
index 58c2d760e5..183e83782c 100644
--- a/src/zabbix_server/poller/checks_snmp.c
+++ b/src/zabbix_server/poller/checks_snmp.c
@@ -28,6 +28,7 @@
 #include "comms.h"
 #include "zbxalgo.h"
 #include "zbxjson.h"
+extern unsigned char   process_type;
 
 /*
  * SNMP Dynamic Index Cache
@@ -1283,7 +1284,7 @@ static int        zbx_snmp_get_values(struct snmp_session *ss, const DC_ITEM *items, ch
                goto out;
        }
 
-       ss->retries = (1 == mapping_num && 0 == level ? 1 : 0);
+       ss->retries = (1 == mapping_num && 0 == level && ZBX_POLLER_TYPE_UNREACHABLE != process_type ? 1 : 0);
 retry:
        status = snmp_synch_response(ss, pdu, &response); 


 Comments   
Comment by Vladislavs Sokurenko [ 2020 May 15 ]

Fixed in:

  • pre-4.0.21rc1 ae438423251
  • pre-4.4.9rc1 d491db6a2f5
  • pre-5.0.1rc1 6c5dc470b11
  • pre-5.2.0alpha1 (master) dd25a931a20
Generated at Wed Jun 04 20:16:41 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.