[ZBX-18376] SNMP interface doesn't work Created: 2020 Sep 15  Updated: 2020 Oct 02  Resolved: 2020 Oct 02

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P)
Affects Version/s: 5.0.2
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Maksims Edelmans Assignee: Edgars Melveris
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2020-09-15-15-18-02-252.png     PNG File image-2020-09-23-10-14-21-215.png     PNG File image-2020-09-23-10-16-32-931.png    

 Description   

Steps to reproduce:

  1. Create a host with two SNMP interfaces - SNMPv2c and SNMPv3. 
  2. Link an SNMP item through a template
  3. Add a host interface with SNMPv1.
  4. Change SNMPv1 to a default interface.
  5. Reload config cache on both server and then proxy.
  6. 'Execute now' on an item with type SNMP.
  7. Still see timeouts in zabbix_proxy.log:

6177:20200915:151416.976 getting SNMP values failed: Timeout while connecting to "172.27.73.54:161".
6181:20200915:151416.991 getting SNMP values failed: Timeout while connecting to "172.27.73.54:161".
6178:20200915:151417.998 getting SNMP values failed: Timeout while connecting to "172.27.73.54:161".
6175:20200915:151422.470 getting SNMP values failed: Timeout while connecting to "172.27.73.54:161".
6176:20200915:151422.559 getting SNMP values failed: Timeout while connecting to "172.27.73.54:161".
6179:20200915:151422.568 getting SNMP values failed: Timeout while connecting to "172.27.73.54:161".
6182:20200915:151422.590 getting SNMP values failed: Timeout while connecting to "172.27.73.54:161".

SNMPwalk from CLI is working:

 

[root@zabbix-proxy-btc-1 maksimse]# snmpwalk -v1 -ccommunity 172.27.73.54 sysDescr
SNMPv2-MIB::sysDescr.0 = STRING: Linux 2.6.32.68 #1 Tue Jun 23 16:48:07 EEST 2020 mips

 

 

And, by the way, your documentation is wrong:

 

https://www.zabbix.com/documentation/current/ru/manual/config/items/itemtypes/snmp

Choose version 5.0 and see 1st screenshot. There is SNMPv3 item, but there is not such item type in 5.0 anymore.



 Comments   
Comment by Maksims Edelmans [ 2020 Sep 18 ]

Any comments?

 

Comment by Edgars Melveris [ 2020 Sep 18 ]

Hello. Can you explain in more details, do some of the defined interfaces work and some other are supposed to fail?

ie, the bug being, that Zabbix keeps using the incorrect (failing) interface?

Comment by Maksims Edelmans [ 2020 Sep 18 ]

Host mentioned above is created using API.

API adds two interfaces - SNMPv2 and SNMPv3.

I realise that this host supports only SNMPv1. I add a new interface manually and change it do default.

After config_cache_reload on both server and proxy item is still using old default SNMP interface.

Comment by Edgars Melveris [ 2020 Oct 02 ]

This is currently expected behavior. If the default interface has changed, the items keep using the interface they where set to when created. Default only applies to newly created items.
A workaround might be to use mass update to change the interface, or unlink the template and link it back.
I'd recommend creating a feature request to allow to always use the "default" interface instead of choosing it when the item is created.

I'm closing this, as it cannot be considered a bug.

Generated at Sun Jun 21 04:44:54 EEST 2026 using Jira 10.3.18#10030018-sha1:5642e4ad348b6c2a83ebdba689d04763a2393cab.