I'm trying to create a SNMP discovery rule where I need to put the returned {#SNMPINDEX} as part of another OID to discover.
I'm working on getting some temperature sensors for a Cisco NX-OS device, and also get the warning/critical thresholds for the sensor in the discovery rule.
.1.3.6.1.2.1.47.1.1.1.1.2.<SNMPINDEX> will give me the sensor name
.1.3.6.1.4.1.9.9.91.1.2.1.1.4.<SNMPINDEX>.1 - will give me the warning threshold
.1.3.6.1.4.1.9.9.91.1.2.1.1.4.<SNMPINDEX>.2 - will give me the critical threshold
If I try to create a discovery OID like this it errors
discovery[{#SENSORNAME},.1.3.6.1.2.1.47.1.1.1.1.2,{#SENSORWA RNING},.1.3.6.1.4.1.9.9.91.1.2.1.1.4.{#SNMPINDEX}. 1,{#SENSORCRITICAL},.1.3.6.1.4.1.9.9.91.1.2.1.1.4. {#SNMPINDEX}.2]
Is there another way to do this?
I'm working on getting some temperature sensors for a Cisco NX-OS device, and also get the warning/critical thresholds for the sensor in the discovery rule.
.1.3.6.1.2.1.47.1.1.1.1.2.<SNMPINDEX> will give me the sensor name
.1.3.6.1.4.1.9.9.91.1.2.1.1.4.<SNMPINDEX>.1 - will give me the warning threshold
.1.3.6.1.4.1.9.9.91.1.2.1.1.4.<SNMPINDEX>.2 - will give me the critical threshold
If I try to create a discovery OID like this it errors
discovery[{#SENSORNAME},.1.3.6.1.2.1.47.1.1.1.1.2,{#SENSORWA RNING},.1.3.6.1.4.1.9.9.91.1.2.1.1.4.{#SNMPINDEX}. 1,{#SENSORCRITICAL},.1.3.6.1.4.1.9.9.91.1.2.1.1.4. {#SNMPINDEX}.2]
Is there another way to do this?

Comment