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

The poller-test command doesn't work due to Spring initialization conflicts

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • 18.0.3
    • 19.1.0
    • Command-Line Tools
    • Security Level: Default (Default Security Scheme)
    • Horizon - March 29th

    Description

      The /opt/opennms/bin/poller-test command was used to validate a given monitor based on the current content of poller-configuration.xml and the IP/Node combination from the database.

      Unfortunately, the current implementation uses BeanUtils to initialize the DAO to perform the database validation which forces to initialize the whole Spring Content, and that causes error if OpenNMS is running, as it tries to initialize things that are already running.

      To fix this problem, the poller-test command has to be reworked to avoid the usage of BeanUtils, which is possible with direct database calls.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: