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

Statsd Reports Incorrect Values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 17.0.0, Meridian-2016.1.13
    • Fix Version/s: None
    • Component/s: Reports / Statsd
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      I have the following statsd report to monitor disk percent used on monitored servers

      <packageReport name="Top10_Disk_Usage" description="*****" schedule="0 0/15 * * * ?" retainInterval="1800000" status="on">
      <parameter key="count" value="10"/>
      <parameter key="consolidationFunction" value="AVERAGE"/>
      <parameter key="relativeTime" value="SLIDINGHOUR"/>
      <parameter key="resourceTypeMatch" value="dskIndex"/>
      <parameter key="attributeMatch" value="ns-dskPercent"/>
      </packageReport>

      <report name="Top10_Disk_Usage" class-name="org.opennms.netmgt.dao.support.TopNAttributeStatisticVisitor"/>

      On each report, however, incorrect values are reported. For example one of the monitored servers reports 79% disk space used both on the server itself and in the ns-dskPercent datasource but the statsd report shows that it is 34.42% used.

      Pasted below the some of the debug logs from my statsd.log file with the hostnames crossed out (just from the example node explained above):

      2015-12-11 10:45:00,985 DEBUG [Statsd_Worker-3] o.o.n.d.s.DefaultResourceDao: getChildResource: returning resource node[**]
      2015-12-11 10:45:00,989 DEBUG [Statsd_Worker-3] o.o.n.d.s.DefaultResourceDao: getChildResource: returning resource node[**].dskIndex[_root_fs]
      2015-12-11 10:45:00,989 DEBUG [Statsd_Worker-3] o.o.n.d.s.RrdStatisticAttributeVisitor: Aggregating: 79.0
      2015-12-11 10:45:00,990 DEBUG [Statsd_Worker-3] o.o.n.d.s.RrdStatisticAttributeVisitor: Aggregating: 79.0
      2015-12-11 10:45:00,990 DEBUG [Statsd_Worker-3] o.o.n.d.s.RrdStatisticAttributeVisitor: Aggregating: 79.0
      2015-12-11 10:45:00,990 DEBUG [Statsd_Worker-3] o.o.n.d.s.RrdStatisticAttributeVisitor: Aggregating: 79.0
      2015-12-11 10:45:00,990 DEBUG [Statsd_Worker-3] o.o.n.d.s.RrdStatisticAttributeVisitor: The value of node[**].dskIndex[_root_fs].ns-dskPercent is 26.34854761904762

      2015-12-11 10:45:01,625 DEBUG [Statsd_Worker-3] o.o.n.s.DatabaseReportPersister: Adding org.opennms.netmgt.model.StatisticsReportData@7a8b39aa[report=Top10_Disk_Usage,resourceId=node[**].dskIndex[_root_fs],value=26.34854761904762]

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              coreyh Corey Hammerton (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Git Integration