Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-1314

Bad datacollection-config.xml, no errors, collectd toasts

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.2.2
    • Fix Version/s: Unknown Release
    • Component/s: Data Output - RRD
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      Operating System: Linux
      Platform: PC
    • Bugzilla Id:
      1235

      Description

      I added some mib definitions but no system definition. Opennms appeared to be
      running fine but no data collection. Opennms should not have allowed collectd to
      complete it startup after such an error, didn't collect data after this anyway.

      OpenNMS.Collectd : running

      Even though

      2005-04-28 21:20:42,940 FATAL [main] SnmpCollector: initialize: Failed to load
      data collection configuration
      ValidationException: instance is a required field.;

      • location of error: XPATH:
        datacollection-config/snmp-collection/groups/group/mibObj
        at org.exolab.castor.xml.FieldValidator.validate(Unknown Source)
        at org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(Unknown
        Source)
        at org.exolab.castor.xml.Validator.validate(Unknown Source)
        at org.exolab.castor.xml.FieldValidator.validate(Unknown Source)
        at org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(Unknown
        Source)
        at org.exolab.castor.xml.Validator.validate(Unknown Source)
        at org.exolab.castor.xml.FieldValidator.validate(Unknown Source)
        at org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(Unknown
        Source)
        at org.exolab.castor.xml.Validator.validate(Unknown Source)
        at org.exolab.castor.xml.FieldValidator.validate(Unknown Source)
        at org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(Unknown
        Source)
        at org.exolab.castor.xml.Validator.validate(Unknown Source)
        at org.exolab.castor.xml.FieldValidator.validate(Unknown Source)
        at org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(Unknown
        Source)
        at org.exolab.castor.xml.Validator.validate(Unknown Source)
        at org.exolab.castor.xml.UnmarshalHandler.endElement(Unknown Source)
        at
        org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:552)
        at
        org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:646)
        at
        org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2978)
        at
        org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:918)
        at
        org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDocumentFragmentScannerImpl.java:1145)
        at
        org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:988)
        at
        org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1446)
        at
        org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
        at
        org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
        at
        org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
        at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
        at
        org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1148)
        at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
        at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
        at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
        at
        org.opennms.netmgt.config.DataCollectionConfigFactory.<init>(DataCollectionConfigFactory.java:121)
        at
        org.opennms.netmgt.config.DataCollectionConfigFactory.init(DataCollectionConfigFactory.java:190)
        at
        org.opennms.netmgt.config.DataCollectionConfigFactory.reload(DataCollectionConfigFactory.java:209)
        at
        org.opennms.netmgt.collectd.SnmpCollector.initialize(SnmpCollector.java:290)
        at
        org.opennms.netmgt.collectd.Collectd.instantiateCollectors(Collectd.java:317)
        at org.opennms.netmgt.collectd.Collectd.init(Collectd.java:167)
        at org.opennms.netmgt.collectd.jmx.Collectd.init(Collectd.java:37)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at mx4j.MBeanIntrospector.invoke(MBeanIntrospector.java:214)
        at mx4j.MBeanServerImpl.invoke(MBeanServerImpl.java:158)
        at org.opennms.netmgt.vmmgr.Manager.start(Manager.java:208)
        at org.opennms.netmgt.vmmgr.Manager.main(Manager.java:436)
        2005-04-28 21:20:42,943 WARN [main] Collectd: init: Failed to load collector
        org.opennms.netmgt.collectd.SnmpCollector for service
        SNMPjava.lang.reflect.UndeclaredThrowableException
        at
        org.opennms.netmgt.collectd.SnmpCollector.initialize(SnmpCollector.java:295)
        at
        org.opennms.netmgt.collectd.Collectd.instantiateCollectors(Collectd.java:317)
        at org.opennms.netmgt.collectd.Collectd.init(Collectd.java:167)
        at org.opennms.netmgt.collectd.jmx.Collectd.init(Collectd.java:37)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at mx4j.MBeanIntrospector.invoke(MBeanIntrospector.java:214)
        at mx4j.MBeanServerImpl.invoke(MBeanServerImpl.java:158)
        at org.opennms.netmgt.vmmgr.Manager.start(Manager.java:208)
        at org.opennms.netmgt.vmmgr.Manager.main(Manager.java:436)
        Caused by: ValidationException: instance is a required field.;
      • location of error: XPATH:
        datacollection-config/snmp-collection/groups/group/mibObj {file: [not available]; line: 730; column: 25}

        at
        org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
        at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
        at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
        at
        org.opennms.netmgt.config.DataCollectionConfigFactory.<init>(DataCollectionConfigFactory.java:121)
        at
        org.opennms.netmgt.config.DataCollectionConfigFactory.init(DataCollectionConfigFactory.java:190)
        at
        org.opennms.netmgt.config.DataCollectionConfigFactory.reload(DataCollectionConfigFactory.java:209)
        at
        org.opennms.netmgt.collectd.SnmpCollector.initialize(SnmpCollector.java:290)
        ... 11 more
        2005-04-28 21:20:42,943 DEBUG [main] Collectd: start: Testing database connection

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                buglist@opennms.org OpenNMS Bug Mailing List
                Reporter:
                tedkaz@optonline.net Ted Kaczmarek
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: