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

The Tcp Exporter cannot process a null Rrd value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.8.17, 1.10.0
    • Fix Version/s: 1.10.1
    • Component/s: Data Output - RRD
    • Security Level: Default (Default Security Scheme)
    • Labels:

      Description

      When the Tcp Exporter encounter a null Rrd value, it cannot parse it to a Double and the NumberFormatException generated stops the thread.
      Only that exception is logged, so it's impossible to investigate which node and rrd value was the problem.

      The log in eventd.log would look like:
      2012-02-16 17:38:50,457 FATAL [ConsumerThread] QueuingTcpRrdStrategy$ConsumerThread: Unexpected exception caught in QueuingTcpRrdStrategy$ConsumerThread, closing thread
      java.lang.NumberFormatException: For input string: "null"
      at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1242)
      at java.lang.Double.valueOf(Double.java:492)
      at java.lang.Double.<init>(Double.java:584)
      at org.opennms.netmgt.rrd.tcp.RrdOutputSocket.parseRrdValues(RrdOutputSocket.java:129)
      at org.opennms.netmgt.rrd.tcp.RrdOutputSocket.addData(RrdOutputSocket.java:75)

      With the attached patch, the Thread stays alive and the log would look like:
      2012-03-09 14:51:19,957 INFO [ConsumerThread] RrdOutputSocket: Error when parsing performance data in '/opt/opennms/share/rrd/snmp/1/datasource.jrb' for 'XXX.XXX.XXX.XXX': '1331272280:null'

        Attachments

          Activity

            People

            • Assignee:
              seth Seth Leger
              Reporter:
              patatepartie Cyril Ledru
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: