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

JMX jrb filenames can contain spaces

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.11, 1.10.8
    • Fix Version/s: 1.12.2, 1.13.0
    • Component/s: Data Collection - JMX
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      For a jmx datacollection of:

      <mbean name="JVM Perm Memory" objectname="java.lang:type=MemoryPool,name=PS Perm Gen">
      <comp-attrib name="Usage" type="Composite" alias="Usage">
      <comp-member name="used" alias="PermUsed" type="gauge"/>
      <comp-member name="max" alias="PermMax" type="gauge"/>
      </comp-attrib>
      </mbean>

      The datacollection will succeed, but attempting to graph it will fail since the filename contains spaces:
      java_lang_type_MemoryPool_name_PS Perm Gen.jrb

      A potential fix would be to modify fixGroupName() in opennms-services/src/main/java/org/opennms/netmgt/collectd/JMXCollector.java and include a space as a character it replaces with an underscore.

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              ronald.roskens@biworldwide.com Ron Roskens
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: