Datacollection on OIDs with multiple index (and some of them look like a timestamp)

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

Datacollection on OIDs with multiple index (and some of them look like a timestamp)

Stefano
Hallo,
     I have to collect measures from rttMon CISCO MIB. For example following OID

.1.3.6.1.4.1.9.9.42.1.3.2.1.4

has 4 indexes (rttMonCtrlAdminIndex, rttMonStatsCaptureStartTimeIndex, rttMonStatsCapturePathIndex, rttMonStatsCaptureHopIndex).
The problem is the index called rttMonStatsCaptureStartTimeIndex: it seems to be a timestamp and it changes every hour so OpenNMS creates new folders every time datacollection collects these measures, other indexes, on the contrary, do not change.

So OpenNMS creates a folder structure like this:

path-to-rrd/nodeid/resourceName/10
path-to-rrd/nodeid/resourceName/10.87419092.1.1
path-to-rrd/nodeid/resourceName/10.87419092.1.1.1

where the second token (in this case 87419092) changes every time


I try to change storageStrategy fron IndexStorage to SibllingColumnStorage, but it does not work. Fragments of datacollection-config.xml and collectd-configuration.xml follow.

collectd-configuration.xml:

    <package name="rmon-tryout">
        <filter>catincRouterSonda</filter>
        <include-range begin="1.1.1.1" end="254.254.254.254"/>
        <storFlagOverride>true</storFlagOverride>
        <service name="SNMP" interval="300000" user-defined="false" status="on">
            <parameter key="collection" value="rmontryout"/>
        </service>
    </package>

datacollection-config.xml:

  <snmp-collection name="rmontryout" 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>

    <resourceType name="rttMonSAAtryout" label="rttMonSAAtryout" resourceLabel="${rttTargetAddress}">
      <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
      <storageStrategy class="org.opennms.netmgt.dao.support.IndexStorageStrategy"/>
    </resourceType>

    <groups>
      <group name="rMonSCEntryTryout" ifType="all">
        <mibObj oid=".1.3.6.1.4.1.9.9.42.1.2.1.1.3"  instance="rttMonSAAtryout" alias="rttMonCtrlAdminTag"        type="string" />
        <mibObj oid=".1.3.6.1.4.1.9.9.42.1.2.2.1.2"  instance="rttMonSAAtryout" alias="rttTargetAddress"          type="string"/>
        <mibObj oid=".1.3.6.1.4.1.9.9.42.1.3.2.1.5"  instance="rttMonSAAtryout" alias="SCdrops"                type="integer32" />
        <mibObj oid=".1.3.6.1.4.1.9.9.42.1.3.2.1.4"  instance="rttMonSAAtryout" alias="SCnoConnections"        type="integer32" />
        <mibObj oid=".1.3.6.1.4.1.9.9.42.1.3.2.1.1"  instance="rttMonSAAtryout" alias="SCnumDisconnects"       type="integer32" />
        <mibObj oid=".1.3.6.1.4.1.9.9.42.1.3.2.1.6"  instance="rttMonSAAtryout" alias="SCsequenceErrors"       type="integer32" />
        <mibObj oid=".1.3.6.1.4.1.9.9.42.1.3.2.1.2"  instance="rttMonSAAtryout" alias="SCtimeouts"             type="integer32" />
        <mibObj oid=".1.3.6.1.4.1.9.9.42.1.3.1.1.5"  instance="rttMonSAAtryout" alias="SCcompletions"          type="integer32" />
        <mibObj oid=".1.3.6.1.4.1.9.9.42.1.3.1.1.7"  instance="rttMonSAAtryout" alias="SCsumCompletTime"       type="gauge32" />
      </group>
    </groups>

    <systems>
      <systemDef name="Cisco Routers">
        <sysoidMask>.1.3.6.1.4.1.9.1.</sysoidMask>
        <collect>
         <includeGroup>rMonSCEntryTryout</includeGroup>
        </collect>
      </systemDef>
    </systems>

  </snmp-collection>



Is there any guy that can help me to find a smart way to store data without create new folder each time?

Thank you
Loading...