This may take some explaining...
I'm trying to collect the RX and TX power levels from the optical transceivers (support dom) we have plugged in our switches. After configuring everything up I'm able to collect the data required... The problem I'm having is that I only want to collect the RX and TX power levels, but end up with everything for that interface... such as ifInDiscards, ifInErrors etc. (these look to be collected from mib2.xml). Its almost like once the interface has been selected to collect data from (for the RX and TX power levels) it allows everything under the "default" package to start collecting.
Is there a way I can only collect RX and TX power levels for an interface and not everything. I've tired a few ways already, but feel like I've hit a brick wall...
- Created a new package in collectd-configuration to only look for the transceiver power data within a certain category...e.g. Switches.
- Created a snmp-collection in datacollection-config so it knows which oid to get the data from.
- Created a new resourcetype, which puts the mib objects into a directory of its own (/usr/share/opennms/share/rrd/snmp/1/TransceiverIndex/26/hpicfXcvrRxPower), but a folder for the ifIndex is still created for that interface (/usr/share/opennms/share/rrd/snmp/1/26-aabbccddeeff/) with all the other data in from mib2.xml
I do have a requirement to use mib2.xml for other devices, so am unable to just remove the collection from the datacollection-config. Any help would be much appreciated.