[ZBX-17660] SNMP community as a user macro does not work in item test Created: 2020 Apr 30  Updated: 2020 May 14  Resolved: 2020 May 14

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: 5.0.0beta2
Fix Version/s: None

Type: Problem report Priority: Critical
Reporter: Kaspars Mednis Assignee: Zabbix Development Team
Resolution: Duplicate Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2020-04-30-13-19-47-249.png     PNG File image-2020-04-30-13-22-58-760.png    
Issue Links:
Duplicate
duplicates ZBX-17394 Test item from UI doesn't work with m... Closed

 Description   

Create SNMP interface on host and simple SNMP item
Test item

If SNMP community is defined as a string, test succeeds

If SNMP community is defined as a user macro, test fails

tcpdump command shows that community is sent without resolving the user macro

13:24:19.884661 IP student-XX.36932 > training.lan.snmp:  C="{$SNMP_COMMUNITY}" GetRequest(28)  system.sysDescr.0
 

When fixing this, also consider that this is sensitive information, so users may be using protected macros to hide this.

SNMPv3 context name and security name was not tested, but they may have same problems.

Also, feature request ZBXNEXT-5928 is somehow related to this problem.

 

 


Generated at Fri Jun 06 20:21:21 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.