hopefully someone can help me with a Data Query I have been trying to create to simplify adding some devices to my Cacti installs.
The type of device I am trying to create a Data Query for is an ADVA Optical Multiplexer. I have all the OID's and I am actually graphing these OID's already, but have had to make them the hard way.
Below is the SNMP OID's that I am trying to pull, with an interface listing at the top...
Code: Select all
+ Found item [ifDescr='CH-1-5-C1'] index: 269092097 [from value] 1
+ Found item [ifDescr='CH-1-5-NE'] index: 269092162 [from value] 2
+ Found item [ifDescr='CH-1-6-C1'] index: 269092353 [from value] 3
+ Found item [ifDescr='CH-1-6-C2'] index: 269092354 [from value] 4
+ Found item [ifDescr='CH-1-6-NE'] index: 269092418 [from value] 5
+ Found item [ifDescr='CH-1-6-NW'] index: 269092419 [from value] 6
VALUE intervalPhysPerfOpticalInputPwr15minMean OBJECT-TYPE (
Syntax: [UNIVERSAL 2] INTEGER (-2147483648..2147483647)
Units: 0.1 dBm
Access: read-only
Status: current
Description: Optical Input Power Received
)
::= 1.3.6.1.4.1.2544.1.11.2.6.2.33.1.3
1.3.6.1.4.1.2544.1.11.2.6.2.33.1.3.269092097.1
1.3.6.1.4.1.2544.1.11.2.6.2.33.1.3.269092162.1
1.3.6.1.4.1.2544.1.11.2.6.2.33.1.3.269092353.1
1.3.6.1.4.1.2544.1.11.2.6.2.33.1.3.269092354.1
1.3.6.1.4.1.2544.1.11.2.6.2.33.1.3.269092418.1
1.3.6.1.4.1.2544.1.11.2.6.2.33.1.3.269092419.1
VALUE intervalPhysPerfOpticalOutputPwr15minMean OBJECT-TYPE (
Syntax: [UNIVERSAL 2] INTEGER (-2147483648..2147483647)
Units: 0.1 dBm
Access: read-only
Status: current
Description: Optical Output Power Transmitted
)
::= 1.3.6.1.4.1.2544.1.11.2.6.2.36.1.3
1.3.6.1.4.1.2544.1.11.2.6.2.36.1.3.269092097.1
1.3.6.1.4.1.2544.1.11.2.6.2.36.1.3.269092162.1
1.3.6.1.4.1.2544.1.11.2.6.2.36.1.3.269092353.1
1.3.6.1.4.1.2544.1.11.2.6.2.36.1.3.269092354.1
1.3.6.1.4.1.2544.1.11.2.6.2.36.1.3.269092418.1
1.3.6.1.4.1.2544.1.11.2.6.2.36.1.3.269092419.1
Now be kind and try not to laugh to hard, but I thought something like the following would fit the bill, but I guessed that after a while of trying the REGEX's and such I wasn't going to get anywhere, and instead just tried a single FIELD statement with a hardcoded OID and still couldn't get it working...
Code: Select all
<interface>
<name>ADVA Optical Data Query Template</name>
<description>Queries an ADVA FSP3000 host for a list of monitorable interfaces</description>
<index_order_type>index</index_order_type>
<oid_index>.1.3.6.1.4.1.2544.1.11.2.6.2.33.1.3</oid_index>
<fields>
<intervalPhysPerfOpticalInputPwr15minMean>
<name>Input Power</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2544.1.11.2.6.2.33.1.3.[INTERFACE-ID-HERE:].1</oid>
</intervalPhysPerfOpticalInputPwr15minMean>
</fields>
<fields>
<intervalPhysPerfOpticalOutputPwr15minMean>
<name>Output Power</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2544.1.11.2.6.2.36.1.3.[INTERFACE-ID-HERE:].1</oid>
</intervalPhysPerfOpticalOutputPwr15minMean>
</fields>
</interface>
If any of you are able to make sense of this easily and could give me a hand with it, or give me a good nudge in the right direction I would greatly appreciate it.
Kind regards
Cameron.