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

XmlCollector does not recognize all resource types

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 19.0.1
    • Fix Version/s: 20.0.0
    • Component/s: Data Collection - XML
    • Security Level: Default (Default Security Scheme)
    • Labels:
      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

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

              Dates

              Created:
              Updated:
              Resolved: