I currently have a problem gathering the hardware description of a Cisco IOS XR device component and the corresponding performance data in one query. In order to get the hardware description, I need the value of an OID as index. Furthermore, I also need an index parsed from the same OID in order to get the performance data.
More precisely, I've created the following data query:
Code: Select all
<cpu>
<name>Cisco IOS XR - CPU</name>
<description>Get Cisco IOS XR CPU information</description>
<index_order>entPhysCpuIndex:entPhysicalName</index_order>
<index_order_type>numeric</index_order_type>
<oid_index>1.3.6.1.4.1.9.9.109.1.1.1.1.2</oid_index>
<oid_index_parse>OID/REGEXP:^.*\.([0-9]+)$</oid_index_parse>
<fields>
<entPhysCpuIndex>
<name>CPM CPU Index</name>
<source>index</source>
<direction>input</direction>
</entPhysCpuIndex>
<entPhysicalName>
<name>Physical Entity Name</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>1.3.6.1.2.1.47.1.1.1.1.7</oid>
</entPhysicalName>
<cpuMinAvg>
<name>Cpu Minute Average</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>1.3.6.1.4.1.9.9.109.1.1.1.1.7</oid>
</cpuMinAvg>
<cpu5MinAvg>
<name>Cpu 5 Minute Average</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>1.3.6.1.4.1.9.9.109.1.1.1.1.8</oid>
</cpu5MinAvg>
</fields>
</cpu>
For the description, I need the value as index (marked blue):Name/OID: .1.3.6.1.4.1.9.9.109.1.1.1.1.2.66; Value (Integer): 38557239
Name/OID: .1.3.6.1.4.1.9.9.109.1.1.1.1.2.82; Value (Integer): 56744940
For the performance data value, I need a parsed index from the OID:Name/OID: 1.3.6.1.2.1.47.1.1.1.1.7.38557239; Value (OctetString): module 0/RSP0/CPU0
Name/OID: 1.3.6.1.2.1.47.1.1.1.1.7.56744940; Value (OctetString): module 0/RSP1/CPU0
Is it possible to use both indices in one data query? I'm using the currently latest cacti release 0.8.8f.Name/OID: .1.3.6.1.4.1.9.9.109.1.1.1.1.7.66; Value (Gauge): 10
Name/OID: .1.3.6.1.4.1.9.9.109.1.1.1.1.7.82; Value (Gauge): 23
Thanks in advance