SNMP Data Collection Issues

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

SNMP Data Collection Issues

chrisharder
Hello, I've been having issues for a while trying to figure out how to properly collect Node-Level Performance Data. It would be greatly appreciated if any insight could possibly be given because it is to the point where I am just running around in circles. I am running OpenNMS Horizon on version 18.0.3-1 with Centos 7, attempting to ultimately graph both the remote and local RSSI levels for MetroLinq radios. The issue appears to be that only the "Enterprise" system definition is being seen from the MIB2.xml which is confusing to me because I feel as though I've used the exact same syntax so my IGNITENET-MIB.xml file should also work.

I know that it is possible to reach the OIDs using snmpwalk -v 1 -c public 10.13.65.25 .1.3.6.1.4.1.47307.1.4.2.10.2 and .1.3.6.1.4.1.47307.1.4.2.11.2 output:
SNMPv2-SMI::enterprises.47307.1.4.2.1.10.2 = INTEGER: -38
SNMPv2-SMI::enterprises.47307.1.4.2.1.11.2 = INTEGER: -45

This leads me to believe that SNMP is set up properly.

My snmp-config.xml file is also set up with:
 <snmp-config xmlns="http://xmlns.opennms.org/xsd/config/snmp" version="v1" read-community="public" timeout="1800" retry="1">$
     <definition read-community="public" timeout="3000">$
        <range begin="0.0.0.0" end="10.13.65.24"/>$
        <range begin="10.13.65.26" end="10.13.65.249"/>$
        <range begin="10.13.65.251" end="255.255.255.255"/>$
     </definition>$
     <definition read-community="public">$
        <specific>10.13.65.25</specific>$
     </definition>$
     <definition write-community="private" read-community="public" timeout="3000" port="161">$
        <specific>10.13.65.250</specific>$
     </definition>$
  </snmp-config>$

datacollection-config.xml:
<?xml version="1.0"?>
<datacollection-config rrdRepository="/opt/opennms/share/rrd/snmp/">
   <snmp-collection name="default" snmpStorageFlag="select">
      <rrd step="300">
         <rra>RRA:AVERAGE:0.5:1:2016</rra>
         <rra>RRA:AVERAGE:0.5:12:1488</rra>
         <rra>RRA:AVERAGE:0.5:288:366</rra>
         <rra>RRA:MAX:0.5:288:366</rra>
         <rra>RRA:MIN:0.5:288:366</rra>
      </rrd>

      <include-collection dataCollectionGroup="IGNITENET"/>

And finally my IGNITENET.xml file:
<?xml version="1.0"?>
<datacollection-group name="IGNITENET">
   <resourceType name="mlRadioInfoEntry" label="mlRadioInfoEntry" resourceLabel="(${index})">
      <persistenceSelectorStrategy class="org.opennms.netmgt.collection.support.PersistAllSelectorStrategy"/>
      <storageStrategy class="org.opennms.netmgt.collection.support.IndexStorageStrategy"/>
   </resourceType>

   <group name="mlRadioInfoTable" ifType="ignore">
      <mibObj oid=".1.3.6.1.4.1.47307.1.4.2.1.4" instance="mlRadioInfoEntry" alias="mlRadioInfoFrequenc" type="integer32"/>
      <mibObj oid=".1.3.6.1.4.1.47307.1.4.2.1.7" instance="mlRadioInfoEntry" alias="mlRadioInfoTxPower" type="integer32"/>
      <mibObj oid=".1.3.6.1.4.1.47307.1.4.2.1.10" instance="mlRadioInfoEntry" alias="mlRadiInfoRSSILocal" type="integer32"/>
      <mibObj oid=".1.3.6.1.4.1.47307.1.4.2.1.11" instance="mlRadioInfoEntry" alias="mlRadiInfoRSSIRemot" type="integer32"/>
   </group>
   <group name="rssi" ifType="all">
      <mibObj oid=".1.3.6.1.4.1.47307.1.4.2.1.10.2" instance="mlRadioInfoEntry" alias="RSSILocal" type="integer32"/>
      <mibObj oid=".1.3.6.1.4.1.47307.1.4.2.1.11.2" instance="mlRadioInfoEntry" alias="RSSIRemote" type="integer32"/>
   </group>

   <systemDef name="ML Radio">
         <sysoidMask>.1.3.6.1.4.1.47307.1.4.2.1.</sysoidMask>
         <collect>
           <includeGroup>rssi</includeGroup>
         </collect>
       </systemDef>
</datacollection-group>

Despite the info seeming correct to myself, not RRD files are being generated in the ./share/rrd/snmp/[node]/ files. In the collectd.log file, after setting DEBUG to on, I find:

2017-06-21 09:50:41,937 DEBUG [Collectd-Thread-4194-of-5000] o.o.n.c.DefaultDataCollectionConfigDao: getMibObjectList: collection: default sysoid: .1       .3.6.1.4.1.47307 address: 10.13.65.25 ifType: -1$
 54115 2017-06-21 09:50:41,937 DEBUG [Collectd-Thread-4194-of-5000] o.o.n.c.DefaultDataCollectionConfigDao: getMibObjectList: includes sysoid .1.3.6.1.4.1.4       7307 for system <name>: Enterprise$
 54116 2017-06-21 09:50:41,937 DEBUG [Collectd-Thread-4194-of-5000] o.o.n.c.DefaultDataCollectionConfigDao: getMibObjectList: MATCH!! adding system 'Enterpr       ise'$
 54117 2017-06-21 09:50:41,937 DEBUG [Collectd-Thread-4194-of-5000] o.o.n.c.DefaultDataCollectionConfigDao: processGroupName:  processing group: mib2-interf       aces groupIfType: all ifType: -1$
 54118 2017-06-21 09:50:41,937 DEBUG [Collectd-Thread-4194-of-5000] o.o.n.c.DefaultDataCollectionConfigDao: processGroupName: OIDs from group 'mib2-interfac       es:all' are excluded for ifType: -1$
 54119 2017-06-21 09:50:41,937 DEBUG [Collectd-Thread-4194-of-5000] o.o.n.c.DefaultDataCollectionConfigDao: processGroupName:  processing group: mib2-tcp gr       oupIfType: ignore ifType: -1$
 54120 2017-06-21 09:50:41,937 DEBUG [Collectd-Thread-4194-of-5000] o.o.n.c.DefaultDataCollectionConfigDao: processGroupName: OIDs from group 'mib2-tcp:igno       re' are included for ifType: -1$
 54121 2017-06-21 09:50:41,937 DEBUG [Collectd-Thread-4194-of-5000] o.o.n.c.DefaultDataCollectionConfigDao: processGroupName:  processing group: mib2-powere       thernet groupIfType: all ifType: -1$
 54122 2017-06-21 09:50:41,937 DEBUG [Collectd-Thread-4194-of-5000] o.o.n.c.DefaultDataCollectionConfigDao: processGroupName: OIDs from group 'mib2-powereth       ernet:all' are excluded for ifType: -1$

Showing that the datacollection group created isn't even finding a match, yet I have absolutely no idea why. Any and all help would be greatly appreciated, I have been running around in circles for what I believe should be a relatively simple task. Very frustrating. Anyways, thank you for your time.