I am trying to monitor a device with Zabbix through SNMP. I am using the built-in SNMP agent and a generic SNMP template to discover the items. The discovery rules that are provided by the template are working properly.
The tricky part is that the device's OID has two dynamic indexes, one is the socalled SNMP table-index and the other is the snmp index.
So for example the OID looks like as follows: 1.5.2.3.4.7.8.6.27568.10
In this case the "1.5.2.3.4.7.8.6" part will be discovered through the discovery rules, because they are static. The rest "27568.10" part is dynamic, means it changes for every item.
So I would like to set in the item prototypes two {#SNMPINDEX} macros, or someting similiar to able to process both dynamic indexes. I have already tried to use another macro which is a regex, but it did not work.
Do anyone have any idea how this issue can be solved? Is there maybe a custom script to determine manually how the SNMPINDEX is processed?
The tricky part is that the device's OID has two dynamic indexes, one is the socalled SNMP table-index and the other is the snmp index.
So for example the OID looks like as follows: 1.5.2.3.4.7.8.6.27568.10
In this case the "1.5.2.3.4.7.8.6" part will be discovered through the discovery rules, because they are static. The rest "27568.10" part is dynamic, means it changes for every item.
So I would like to set in the item prototypes two {#SNMPINDEX} macros, or someting similiar to able to process both dynamic indexes. I have already tried to use another macro which is a regex, but it did not work.
Do anyone have any idea how this issue can be solved? Is there maybe a custom script to determine manually how the SNMPINDEX is processed?