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

Split jmx-datacollection-config.xml

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.10.0
    • Fix Version/s: 1.10.1
    • Component/s: Data Collection - JMX
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      It will be very useful to be able to split the content of jmx-datacllection-config.xml into several files on a similar way as we currently do with the XML Collector.

      The idea is to keep the current configuration files unmodified, but be able to modify it in the future by just adding an import statement, for example:

      <jmx-datacollection-config rrdRepository="/opt/opennms/rrd/snmp/">
      <jmx-collection name="jboss">
      <rrd step="300">
      <rra>RRA:AVERAGE:0.5:1:8928</rra>
      <rra>RRA:AVERAGE:0.5:12:8784</rra>
      <rra>RRA:MIN:0.5:12:8784</rra>
      <rra>RRA:MAX:0.5:12:8784</rra>
      </rrd>
      <import-mbeans>mbeans/mbeans-system.xml</import-mbeans>
      </jmx-collection>

      <jmx-collection name="jsr160">
      <rrd step="300">
      <rra>RRA:AVERAGE:0.5:1:8928</rra>
      <rra>RRA:AVERAGE:0.5:12:8784</rra>
      <rra>RRA:MIN:0.5:12:8784</rra>
      <rra>RRA:MAX:0.5:12:8784</rra>
      </rrd>
      <import-mbeans>mbeans/mbeans-basic.xml</import-mbeans>
      </jmx-collection>
      </jmx-datacollection-config>

      The above config assumes that the following files exist on the filesystem:
      /opt/opennms/etc/mbeans/mbeans-system.xml
      /opt/opennms/etc/mbeans/mbeans-basic.xml

      The content of mbeans-system.xml and mbeans-basic.xml will be the same content as we actually put inside the collections from the tag <mbeans>

        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: