Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
<?xml version="1.0"?>

<datacollection-config rrdRepository="/var/lib/opennms/rrd/snmp/">
  <snmp-collection name="default12" snmpStorageFlag="select">
    <rrd step="300">

<resourceType name="testResourceType" label="CISCOTESTRESOURCETYPE" >
  <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
  <storageStrategy class=""/>

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

  <systemDef name="ciscorouterstest">

share|improve this question
up vote 0 down vote accepted

In this block of code:

<systemDef name="ciscorouterstest">

You need to close the <sysoidMask> element:


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


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.