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

Can't execute standalone vmwarereqtool when RRDtool is enabled

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.12.3
    • 1.12.4
    • Command-Line Tools
    • Security Level: Default (Default Security Scheme)

    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

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

            Dates

              Created:
              Updated:
              Resolved: