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

The DataCollectionConfigDao returns all resource types, even if they are not used in any data collection package.

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • 16.0.0
    • 17.0.0
    • Data Collection - SNMP
    • Security Level: Default (Default Security Scheme)
    • None

    Description

      Calling DataCollectionConfigDao#getConfiguredResourceTypes() returns all of the available resource types, even if they are not associated with any data collection package.

      This mean that in order to remove "active" resource types, you have to remove their definitions completely from etc/datacollection/.

      The DefaultResourceDao uses these definitions when searching for resources, and every definitions requires additional IO operations when loading resources for a node. It should be possible for an administrator to disable those that not being used by removing references to them in datacollection-config.xml.

      Attachments

        Issue Links

          Activity

            People

              j-white Jesse White
              j-white Jesse White
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: