Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.
<?xml version="1.0"?>

<datacollection-config rrdRepository="/var/lib/opennms/rrd/snmp/">
  <snmp-collection name="default12" 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="testResourceType" label="CISCOTESTRESOURCETYPE" >
  <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
  <storageStrategy class="org.opennms.netmgt.dao.support.FrameRelayStorageStrategy"/>
</resourceType>



    <group name="ciscotestgroup" ifType="all">
 <mibObj oid=".1.3.6.1.2.1.1.5"          instance="testResourceType" alias="sysName"         type="string" />
 <mibObj oid=".1.3.6.1.2.1.2.2.1.2"      instance="testResourceType" alias="ifDescr"         type="string" />
 <mibObj oid=".1.3.6.1.2.1.31.1.1.1.18"  instance="testResourceType" alias="ifAlias"         type="counter" />
      </group>

  <systemDef name="ciscorouterstest">
    <sysoidMask>.1.3.6.1.4.1.9.1.<sysoidMask>
    <collect>
      <includeGroup>ciscotestgroup</includeGroup>
    </collect>
  </systemDef>


  </snmp-collection>
</datacollection-config>
share|improve this question

1 Answer 1

up vote 0 down vote accepted

In this block of code:

<systemDef name="ciscorouterstest">
  <sysoidMask>.1.3.6.1.4.1.9.1.<sysoidMask>
  <collect>
    <includeGroup>ciscotestgroup</includeGroup>
  </collect>
</systemDef>

You need to close the <sysoidMask> element:

  <sysoidMask>.1.3.6.1.4.1.9.1.</sysoidMask>

If you're going to be mucking about with XML configuration files, you should learn how to use an XML validator, which would have spotted this for you automatically. There are a variety of tools for this, such as tidy and xmllint. Most editors can auto-indent your XML code, and this will also help spot errors.

share|improve this answer
    
Hey... Thanks for your help. But still the opennms not starting with modified datacollection-config.xml file. –  Kumar Jul 11 '11 at 4:28
    
Hmmm, you're beyond me, then; I'm not familiar with OpenNMS. Typical suggestions at this point would be to look for errors in the logs and/or start up the software with verbose debugging enabled. –  larsks Jul 11 '11 at 13:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.