Hi,
I try to work with SNMP discovery https://www.zabbix.com/documentation...snmp_oids_walk
Everything works fine until creating dependent item prototypes. I don't know what I'm missing:
1) I created the item:

It works fine and I get a result like this:
STORMSHIELD-HA-MIB::snsNbNode.0 = INTEGER: 2
STORMSHIELD-HA-MIB::snsNbDeadNode.0 = INTEGER: 1
STORMSHIELD-HA-MIB::snsNbActiveNode.0 = INTEGER: 1
STORMSHIELD-HA-MIB::snsNbHALinks.0 = INTEGER: 1
STORMSHIELD-HA-MIB::snsNbFaultyHALinks.0 = INTEGER: 1
STORMSHIELD-HA-MIB::snsNodeIndex.0 = INTEGER: 0
STORMSHIELD-HA-MIB::snsNodeIndex.1 = INTEGER: 1
STORMSHIELD-HA-MIB::snsFwSerial.0 = STRING: "XXX"
STORMSHIELD-HA-MIB::snsFwSerial.1 = STRING: "YYY"
STORMSHIELD-HA-MIB::snsOnline.0 = INTEGER: true(1)
STORMSHIELD-HA-MIB::snsOnline.1 = INTEGER: false(2)
....
2) Then I created my discovery rule:


Test works fine and I get:
[{"{#SNMPINDEX}":"0","{#SN.SERIAL}":"XXX","{#SN. ONL INE}":"1","{#SN.VERSION}":"ABC","{#SN.LICENCE}":"M aster","{#SN.HEALTH}":"Major"},{"{#SNMPINDEX}":"1" ,"{#SN.SERIAL}":"YYY","{#SN.ONLINE}":"2","{#SN. VER SION}":"","{#SN.LICENCE}":"Unknown"}]
3) Then I finaly create a dependent item prototype:

preprocessing: Tried different thing readed on the web. This last works in test mode with JSON in values.

My problem is that it doesn't work in real life, It seems my item prototype is using with what the early item returns (could be logical 'cause it's the master item...).
So, can anyone helps me finding what I'm missing. I don't know how to refer to discovery macros in this dependent item prototype
Thanks a lot
I try to work with SNMP discovery https://www.zabbix.com/documentation...snmp_oids_walk
Everything works fine until creating dependent item prototypes. I don't know what I'm missing:
1) I created the item:
It works fine and I get a result like this:
STORMSHIELD-HA-MIB::snsNbNode.0 = INTEGER: 2
STORMSHIELD-HA-MIB::snsNbDeadNode.0 = INTEGER: 1
STORMSHIELD-HA-MIB::snsNbActiveNode.0 = INTEGER: 1
STORMSHIELD-HA-MIB::snsNbHALinks.0 = INTEGER: 1
STORMSHIELD-HA-MIB::snsNbFaultyHALinks.0 = INTEGER: 1
STORMSHIELD-HA-MIB::snsNodeIndex.0 = INTEGER: 0
STORMSHIELD-HA-MIB::snsNodeIndex.1 = INTEGER: 1
STORMSHIELD-HA-MIB::snsFwSerial.0 = STRING: "XXX"
STORMSHIELD-HA-MIB::snsFwSerial.1 = STRING: "YYY"
STORMSHIELD-HA-MIB::snsOnline.0 = INTEGER: true(1)
STORMSHIELD-HA-MIB::snsOnline.1 = INTEGER: false(2)
....
2) Then I created my discovery rule:
Test works fine and I get:
[{"{#SNMPINDEX}":"0","{#SN.SERIAL}":"XXX","{#SN. ONL INE}":"1","{#SN.VERSION}":"ABC","{#SN.LICENCE}":"M aster","{#SN.HEALTH}":"Major"},{"{#SNMPINDEX}":"1" ,"{#SN.SERIAL}":"YYY","{#SN.ONLINE}":"2","{#SN. VER SION}":"","{#SN.LICENCE}":"Unknown"}]
3) Then I finaly create a dependent item prototype:
preprocessing: Tried different thing readed on the web. This last works in test mode with JSON in values.
My problem is that it doesn't work in real life, It seems my item prototype is using with what the early item returns (could be logical 'cause it's the master item...).
So, can anyone helps me finding what I'm missing. I don't know how to refer to discovery macros in this dependent item prototype
Thanks a lot
Comment