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

JMX collector mismatch ds.properties and rrd disk files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.10.8, 1.10.9, 1.10.10
    • Fix Version/s: 1.12.2
    • Component/s: Data Collection - JMX
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Environment:
      centos 6.2

      Description

      hello,

      I've noted that openNMS JMX collector has a problem managing the metrics picked by specific mbeans if they contain \" in their names, i.e.

      from the same app server, the following is being published:
      java -jar cmdline-jmxclient-0.10.3.jar host:9041
      ...
      java.lang:type=OperatingSystem
      ...
      org.hornetq:module=JMS,name="DDD",type=Queue
      ...

      in openNMS datacollection file i have:
      <mbean objectname="org.hornetq:module=JMS,name="DDD",type=Queue" name="DDD" >
      <attrib name="MessageCount" alias="DDDMsgCnt" type="gauge"/>
      <attrib name="MessagesAdded" alias="DDDMsgAdd" type="gauge"/>
      </mbean>

      and the following is created at App server level:
      ds.properties:
      DDDMsgAdd=org_hornetq_module_JMS_name_"DDD"_type_Queue
      DDDMsgCnt=org_hornetq_module_JMS_name_"DDD"_type_Queue

      and at filesystem level:
      rw-rw-r- 1 root root 75680 Apr 12 09:55 org_hornetq_module_JMS_name_DDD_type_Queue.rrd

      so they are different, I've tried several combinations renaming file and modifying ds.properties but none of them work, I tried to make a graph from it, a basic one:

          1. begin graph: TEST
            report.test.manuel.name=TEST
            report.test.manuel.columns=DDDMsgCnt
            report.test.manuel.type=interfaceSnmp
            report.test.manuel.command=--title="TEST" \
            --vertical-label="#" \
            DEF:DDDMsgCnt= {rrd1}

            :DDDMsgCnt:AVERAGE \
            LINE1:DDDMsgCnt#ff0000:"DDDMsgCnt" \
            GPRINT:DDDMsgCnt:AVERAGE:" Avg
            : %8.2lf %s" \
            GPRINT:DDDMsgCnt:MIN:"Min
            : %8.2lf %s" \
            GPRINT:DDDMsgCnt:MAX:"Max
            : %8.2lf %s
            n"

          2. end graph: TEST

      and whilst I was trying to make it work, I found this in the log:
      2013-04-12 09:50:41,557 WARN [qtp157176364-34242] org.eclipse.jetty.servlet.ServletHandler: /opennms/graph/graph.png
      java.lang.IllegalArgumentException: RRD attribute 'DDDMsgCnt' is not available on resource 'node[2464].interfaceSnmp[MuleJMX-9041]'. Available RRD attributes: LoadedClasses, HeapMemInit, FreeSwapSpace, TotalPhysicalMemory, PeakThreadCount, DaemonThreadCount, OpenFD, TotalSwapSpace, HeapMemMax, HeapMemCommit, MaxFD, UnloadedClass, TotLoadedClasses, HeapMemUsed, CurThreadCpuTime, FreePhysicalMemory, ThreadCount

      so it seems there is a problem here.

      I have an old 1.8.17 and with the same config it's working ok.

      Thanks,

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              mvillarejo manuel villarejo
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: