[ZBXNEXT-9376] Support for asynchronius polling of dynamic values within SNMP Created: 2024 Jul 30  Updated: 2025 Jun 11

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Request Priority: Trivial
Reporter: Bartosz Kruszewski (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 3
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate

 Description   

Since 7.0 asynchronous SNMP polling functionality is available. However, these are usable only with the use of walk and get for OID. Walk and get don't seem to work with the index function for dynamic indexes.{}

Will it be possible to implement this?



 Comments   
Comment by Alexandre Favre [ 2024 Jul 31 ]

It's already possible, you just need to not use the snmp index for the key but to use the name for example.
I think it's not clear in the documentation.

Comment by Marek Konecny [ 2024 Jul 31 ]

Alexandre, could you be more specific? How is it possible to use get without an index and address a specific oid instance via another OID in the MIB table?

Comment by Alexandre Favre [ 2024 Aug 01 ]

Hi Marek,

On our side for interfaces (and other OID with a dynamic index), we have replaced {#SNMPINDEX} by {#IFNAME}:

 
key: net.if.out[ifHCOutOctets.{#IFNAME}]

 

We applied this solution after discuting with the zabbix' support.

Comment by Marek Konecny [ 2024 Aug 01 ]

Hi Alexandre,

Yes, of course, it works in the case of LLD, because discovering items is linked to the item key (it must be unique) and subsequently data from the same source will always be linked to the same key. And if a unique identifier interface name is in the item key, so it handles the problem of dynamic indexes for LLD.

However, the index function handles the situation where it is necessary to collect specific metrics without LLD.

I think that since Zabbix already has an index function, it should be possible to use it together with get and take advantage of the new asynchronous SNMP pollers in version 7.0.

Comment by Alexandre Favre [ 2024 Aug 02 ]

Hi Marek,

 

I'm sorry but I don't understand.
Do you have a real use case for example?

Comment by Giorgio Clavello [ 2025 Jun 11 ]

Hi all,
we encountered a similar problem but using user macro; maybe it's a totally different situation that need an issue on its own.

SYNC (SNMP OID):

 

ENTITY-MIB::entPhysicalModelName["index","ENTITY-MIB::entPhysicalClass","{$PHY.CLASS}"] 

 

ASYNC (SNMP OID):

 

get[ENTITY-MIB::entPhysicalModelName["index","ENTITY-MIB::entPhysicalClass","{$PHY.CLASS}"]] 

 

The async item become "not supported" with error "Invalid SNMP OID at position 80"

Generated at Thu Jun 26 07:33:15 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.