Context is a Cisco ASR
Desired outcome: ITEM NAME = "CPU NAME 1 min util", VALUE "XX" - Where XX is 1 minute average CPU utilisation.
The issue I have with creating a rule to do this is that the CPU NAME is in a different tree than the utilization statistics for that CPU and they have different indexes
The name is here
iso.3.6.1.2.1.47.1.1.1.1.7.131 = STRING: "cpu R0/0"
The stats are here, note that the first entry is a reference to the name index
cpmCPUTotalPhysicalIndex
iso.3.6.1.4.1.9.9.109.1.1.1.1.2.7 = INTEGER: 131
iso.3.6.1.4.1.9.9.109.1.1.1.1.3.7 = Gauge32: 14
cpmCPUTotal1min.7
iso.3.6.1.4.1.9.9.109.1.1.1.1.4.7 = Gauge32: 11
iso.3.6.1.4.1.9.9.109.1.1.1.1.5.7 = Gauge32: 11
I have made a discovery rule and item which returns the name
discovery[{#CPUINDEX},.1.3.6.1.4.1.9.9.109.1.1.1.1.2]
.1.3.6.1.2.1.47.1.1.1.1.7.{#CPUINDEX}
I can't determine how to get the desired outcome from here though.
There are multiple templates available which query the CPU but none generate an item where the name is "CPU NAME etc etc" with the utilisation as the value
Thanks
Desired outcome: ITEM NAME = "CPU NAME 1 min util", VALUE "XX" - Where XX is 1 minute average CPU utilisation.
The issue I have with creating a rule to do this is that the CPU NAME is in a different tree than the utilization statistics for that CPU and they have different indexes
The name is here
iso.3.6.1.2.1.47.1.1.1.1.7.131 = STRING: "cpu R0/0"
The stats are here, note that the first entry is a reference to the name index
cpmCPUTotalPhysicalIndex
iso.3.6.1.4.1.9.9.109.1.1.1.1.2.7 = INTEGER: 131
iso.3.6.1.4.1.9.9.109.1.1.1.1.3.7 = Gauge32: 14
cpmCPUTotal1min.7
iso.3.6.1.4.1.9.9.109.1.1.1.1.4.7 = Gauge32: 11
iso.3.6.1.4.1.9.9.109.1.1.1.1.5.7 = Gauge32: 11
I have made a discovery rule and item which returns the name
discovery[{#CPUINDEX},.1.3.6.1.4.1.9.9.109.1.1.1.1.2]
.1.3.6.1.2.1.47.1.1.1.1.7.{#CPUINDEX}
I can't determine how to get the desired outcome from here though.
There are multiple templates available which query the CPU but none generate an item where the name is "CPU NAME etc etc" with the utilisation as the value
Thanks
Comment