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

XmlCollector does not recognize all resource types

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 19.0.1
    • 20.0.0
    • Data Collection - XML
    • Security Level: Default (Default Security Scheme)
    • None

    Description

      I added a new resource type inside a file under $OPENNMS_HOME/etc/resource-types.d/ and setup an entry in the xml-datacollection-config.xml to use it. This resource type was setup to use an storagestrategy to get an alternate value for the index.

      On inspection, the resources were always being stored using their original resource index value, and not their alternate value.

      I suspect this is due to the AbstractXmlCollectionHandler specifically calling DataCollectionFactory.getInstance().getConfiguredResourceTypes().get(resourceType) instead of using ResourceTypesDao.getResourceTypeByName(resourceType)

      Attachments

        Activity

          People

            Unassigned Unassigned
            ronald.roskens@biworldwide.com Ron Roskens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: