Hi all,
Bit of a weird one that I've been trying to wrap my head around. Currently running some traffic through an SNMP managed Power Controller and trying to build some discovery rules for a number of the outputs.
An example of one of these parent trees, returning the Index Details are below.
The MIB details are essentially
Discovery Rule:
In the Template Editor, whenever I manually enter the details into the test box (IP, Port, Community etc) it returns the Index as expected.
Result when Testing in the Template Editor:

However after I apply the template to the host (the exact same host) it seems to skip the first OID for the index (the .0 item). Even using the test function (which is identical in look and feel to the template editor, but just from the host window).
Result after applying to the Host:

I can't seem to see any filters or anything else which would be triggering this behavior, as I'm basically testing the template, then applying it to the exact same host and getting different results.
I'm seeing this exact same behavior with a few OIDs, and it's always skipping the .0 index value which is the first entry for all these OIDs. So I'm suspecting that's the why but I'm not sure how to correct this. I'm running this on the 7.0 LTS Container Appliance version (our dev instance).
Any ideas?
Bit of a weird one that I've been trying to wrap my head around. Currently running some traffic through an SNMP managed Power Controller and trying to build some discovery rules for a number of the outputs.
An example of one of these parent trees, returning the Index Details are below.
Code:
snmpwalk -v 2c -c public 192.168.100.10 .1.3.6.1.4.1.39145.10.9.1.1 iso.3.6.1.4.1.39145.10.9.1.1.0 = INTEGER: 0 iso.3.6.1.4.1.39145.10.9.1.1.1 = INTEGER: 1 iso.3.6.1.4.1.39145.10.9.1.1.2 = INTEGER: 2 iso.3.6.1.4.1.39145.10.9.1.1.3 = INTEGER: 3 iso.3.6.1.4.1.39145.10.9.1.1.4 = INTEGER: 4
- .1.3.6.1.4.1.39145.10.9.1.1 - Parent Tree
- .1.3.6.1.4.1.39145.10.9.1.1.{$ALARM_INDEX} - Alarm Index
- .1.3.6.1.4.1.39145.10.9.1.2.{$ALARM_NAME} - Alarm Name
- .1.3.6.1.4.1.39145.10.9.1.3.{$ALARM_STATUS} - Alarm State
Discovery Rule:
Code:
discovery[{#ALARM_INDEX},1.3.6.1.4.1.39145.10.9.1.1,{#ALARM_ NAME},.1.3.6.1.4.1.39145.10.9.1.2]
In the Template Editor, whenever I manually enter the details into the test box (IP, Port, Community etc) it returns the Index as expected.
Result when Testing in the Template Editor:
Code:
[{"{#SNMPINDEX}":"0","{#ALARM_INDEX}":"0","{#ALARM_NAME}":"Alarm #1"},{"{#SNMPINDEX}":"1","{#ALARM_INDEX}":"1","{ #ALARM_NAME}":"Alarm #2"},{"{#SNMPINDEX}":"2","{#ALARM_INDEX}":"2","{ #ALARM_NAME}":"Alarm #3"},{"{#SNMPINDEX}":"3","{#ALARM_INDEX}":"3","{ #ALARM_NAME}":"Alarm #4"},{"{#SNMPINDEX}":"4","{#ALARM_INDEX}":"4","{ #ALARM_NAME}":"Alarm #5"}]
However after I apply the template to the host (the exact same host) it seems to skip the first OID for the index (the .0 item). Even using the test function (which is identical in look and feel to the template editor, but just from the host window).
Result after applying to the Host:
Code:
[{"{#SNMPINDEX}":"1","{#ALARM_INDEX}":"1","{#ALARM_NAME}":"Alarm #2"},{"{#SNMPINDEX}":"2","{#ALARM_INDEX}":"2","{ #ALARM_NAME}":"Alarm #3"},{"{#SNMPINDEX}":"3","{#ALARM_INDEX}":"3","{ #ALARM_NAME}":"Alarm #4"},{"{#SNMPINDEX}":"4","{#ALARM_INDEX}":"4","{ #ALARM_NAME}":"Alarm #5"}]
I can't seem to see any filters or anything else which would be triggering this behavior, as I'm basically testing the template, then applying it to the exact same host and getting different results.
I'm seeing this exact same behavior with a few OIDs, and it's always skipping the .0 index value which is the first entry for all these OIDs. So I'm suspecting that's the why but I'm not sure how to correct this. I'm running this on the 7.0 LTS Container Appliance version (our dev instance).
Any ideas?
Comment