Welcome to Questions - Ask OpenNMS, where you can ask questions and receive answers from other members of the community.

How to collect specific data on an interface and not everything

0 votes

Hello everybody,

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.


Kind Regards



OpenNMS version
Java version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
Operating system
Ubuntu 16.04 LTS
PostgreSQL version
psql (PostgreSQL) 9.5.7
asked Aug 11, 2017 by ronald2014 (150 points)

Please log in or register to answer this question.