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

Can't execute standalone vmwarereqtool when RRDtool is enabled

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.12.3
    • Fix Version/s: 1.12.4
    • Component/s: Command-Line Tools
    • Security Level: Default (Default Security Scheme)
    • Labels:

      Description

      Some exceptions are sent when RRDtool is enabled while running vmwarereqtool.

      Based on the exceptions, it appears that Spring is initializing and can't find some environment variables. BTW, the code of that tool doesn't expect to initialize.

      In order to fix the issue, two environment variables must be added to the initialization of the script:

      exec $OPENNMS_HOME/bin/runjava -r -- $JAVA_OPTIONS \
          -Dopennms.home=$OPENNMS_HOME \
          -Dopennms.manager.class=$APP_CLASS \
          -Drrd.base.dir=$OPENNMS_HOME/share/rrd \
          -Drrd.binary=/opt/bin/rrdtool \
          -jar $OPENNMS_HOME/lib/opennms_bootstrap.jar $@
      

      The new lines are:

          -Drrd.base.dir=$OPENNMS_HOME/share/rrd \
          -Drrd.binary=/opt/bin/rrdtool \
      

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              agalue Alejandro Galue
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: