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

It is not possible to see Statsd results on the WebUI

    Details

    • Sprint:
      Horizon - Feb 14th 2018, Horizon - Feb 21st 2018

      Description

      A customer has found a problem with Statsd on latest Meridian 2017. It is very possible that recent versions of Horizon suffer the same problem.

      Here are all the details the customer used to reproduce the problem on a isolated installation:

      * Fresh install of Meridian 2017.1.4 on a test pc and generated a very simple config:

      * Added a node with 127.0.0.1 as its IP

      * Generated statsd report for Top 10 icmp response time, running every 5 Minutes with SLIDINGHOUR

      Following packages were installed:

      meridian-2017.1.4-1.noarch.rpm
      meridian-core-2017.1.4-1.noarch.rpm
      meridian-docs-2017.1.4-1.noarch.rpm
      meridian-webapp-jetty-2017.1.4-1.noarch.rpm
      meridian-ncs-2017.1.4-1.noarch.rpm
      meridian-jmx-config-generator-2017.1.4-1.noarch.rpm
      meridian-plugin-provisioning-snmp-asset-2017.1.4-1.noarch.rpm
      meridian-plugin-provisioning-snmp-hardware-inventory-2017.1.4-1.noarch.rpm
      meridian-plugin-protocol-radius-2017.1.4-1.noarch.rpm
      

      This diff here shows all changes from the original config, nothing else was changed after install OpenNMS and running "install -dis":

      diff --git a/etc/statsd-configuration.xml b/etc/statsd-configuration.xml
      index 482aa6f..045d2c4 100644
      --- a/etc/statsd-configuration.xml
      +++ b/etc/statsd-configuration.xml
      @@ -42,0 +43,10 @@
      +    <packageReport name="Top10_Response_Hourly" description="Hourly Top 10 responses across all nodes"
      +                  schedule="0 0,5,10,15,20,25,30,35,40,45,50,55 * * * ?" retainInterval="2592000000"
      +                  status="on">
      +      <parameter key="count" value="10"/>
      +      <parameter key="consolidationFunction" value="AVERAGE"/>
      +      <parameter key="relativeTime" value="SLIDINGHOUR"/>
      +      <parameter key="resourceTypeMatch" value="responseTime"/>
      +      <parameter key="attributeMatch" value="icmp"/>
      +    </packageReport>
      +
      @@ -86,0 +97 @@
      +  <report name="Top10_Response_Hourly" class-name="org.opennms.netmgt.dao.support.TopNAttributeStatisticVisitor"/>
       

      The report gets generated every 5 Minutes:

      opennms=# select * from statisticsreport;
      id |       startdate        |        enddate         |         name          |               description                |       jobstarteddate       |      jobcompleteddate      |         purgedate
      ----+------------------------+------------------------+-----------------------+------------------------------------------+----------------------------+----------------------------+----------------------------
      42 | 2018-02-08 09:30:00+01 | 2018-02-08 10:30:00+01 | Top10_Response_Hourly | Hourly Top 10 responses across all nodes | 2018-02-08 10:30:00.02+01  | 2018-02-08 10:30:00.079+01 | 2018-03-10 10:30:00.079+01
      44 | 2018-02-08 09:35:00+01 | 2018-02-08 10:35:00+01 | Top10_Response_Hourly | Hourly Top 10 responses across all nodes | 2018-02-08 10:35:00.008+01 | 2018-02-08 10:35:00.027+01 | 2018-03-10 10:35:00.027+01
      46 | 2018-02-08 09:40:00+01 | 2018-02-08 10:40:00+01 | Top10_Response_Hourly | Hourly Top 10 responses across all nodes | 2018-02-08 10:40:00.001+01 | 2018-02-08 10:40:00.016+01 | 2018-03-10 10:40:00.016+01
      (3 rows)
      

      And it contains valid data:

      opennms=# select * from statisticsreportdata;
      id | reportid | resourceid |      value
      ----+----------+------------+------------------
      43 |       42 |         41 |           245.53
      45 |       44 |         41 |          315.504
      47 |       46 |         41 | 393.113333333333
      

       
      The problem is that the WebUI doesn't show any reports (statsd-empty-report-list.png and statsd-empty-report-list-2.png).

      Because the customer was able to reproduce the problem on a isolated environment, I've created this issue without testing it myself. The customer also provided the DB, configs, and logs from the test instance he has used in case it is necessary to fix the problem (see support ticket 5460 for more details).
       

        Attachments

          Activity

            People

            • Assignee:
              cgorantla Chandra Gorantla
              Reporter:
              agalue Alejandro Galue
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: