[ZBX-18660] SNMP index returned as number instead of string if there is backslash "\" Created: 2020 Nov 16  Updated: 2024 Apr 10  Resolved: 2020 Dec 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P), Server (S)
Affects Version/s: 5.0.5
Fix Version/s: 4.0.28rc1, 5.0.7rc1, 5.2.3rc1, 5.4.0alpha1, 5.4 (plan)

Type: Problem report Priority: Trivial
Reporter: Andrei Gushchin (Inactive) Assignee: Artjoms Rimdjonoks
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: JPEG File NEW_SNMP_MAP.jpg    
Issue Links:
Duplicate
Team: Team C
Sprint: Sprint 71 (Dec 2020)
Story Points: 1

 Description   

With snmpget i have:

ABC-MIB::PortActualStatus."E1_RA_01\14" = INTEGER: ok (1)

I have a discovery for MIB table:

discovery[{#PORTACTUALSTATUS}, ABC-MIB::PortActualStatus]

Item prototype:

Name: Port Actual Status of  {#SNMPINDEX}
OID: ABC-MIB::PortActualStatus.{#SNMPINDEX}

Here is the result when I test it in UI:

[{"{#SNMPINDEX}":"11.69.49.95.82.65.95.48.49.92.49.52","{#PORTACTUALSTATUS}":"1"},{"{#SNMPINDEX}":"11.69.49.95.82.65.95.48.49.92.49.53","{#PORTACTUALSTATUS}":"1"}]

So, I cannot use name of port in item name:

Port Actual Status of 11.69.49.95.82.65.95.48.49.92.49.53

Expected:

Port Actual Status of E1_RA_01\14

When I get the same for other OID:

ABC-MIB::operatorPositionActualStatus."CWP_001" = INTEGER: unknown(4)

It works good:

[{"{#SNMPINDEX}":"\"CWP_001\"","{#CWACTUALSTATUS}":"4"},{"{#SNMPINDEX}":"\"CWP_002\"","{#CWACTUALSTATUS}":"4"}]

So the difference is "\14" and it seems it is interpreted wrongly.



 Comments   
Comment by Artjoms Rimdjonoks [ 2020 Dec 04 ]

Available in versions:

Generated at Thu Apr 24 14:01:45 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.