NRT Graphing does not show SNMP counter values correctly

Description

On a customer setup, we looked at the mib2.HCbits graph (please see attached graph_datacollection.png) and at the corresponding NRT graph (please see attached graph_nrt.png). The values on the NRT graph are 10 times higher than on the other graph (20 MBit/s vs 2MBit/s). The value on the usual graph seems to be correct for this environment. I also checked the NRT graphing for other reports (e.g. cisco.memory) and could not find the error here.

If I change the NRT interval to 1sec, the values are equal to the ususal graph. If set the interval to 30secs, the values of the NRT graph were 30 times higher.

I set on the TRACE option for karaf.log and saw the values, that were collected by the SnmpProtocolCollector for ifHCInOctets.The collected values were correct and a diff of two values shows the value that was shown in the NRT graph. The diff of two values does not seem to be devided by the NRT collection interval.

Acceptance / Success Criteria

None

Attachments

3
  • 18 Jan 2017, 02:25 PM
  • 17 Jan 2017, 10:48 AM
  • 17 Jan 2017, 10:48 AM

Lucidchart Diagrams

Activity

Show:

Jesse White January 19, 2017 at 12:26 PM

Fixed in foundation-2016 with 2e48f408f03d1610957486162a3eea86e8b85b3f.

Michael Batz January 19, 2017 at 3:38 AM

, thanks for the fast fix. The patch works in my environment.

Jesse White January 18, 2017 at 2:26 PM

can you confirm the patched .js file resolves the problem?

Jesse White January 18, 2017 at 2:25 PM

This will be fixed in Backshift 1.2.2. I've attached an update .js file, to patch a system, replace jetty-webapps/opennms/js/backshift.onms.min.js with the updated file.

Jesse White January 18, 2017 at 11:44 AM

I've confirmed this a problem. The NRTG datasource in Backshift does not properly calculate the rates:
https://github.com/OpenNMS/backshift/blob/770ff3b1689819f8c6806cd4a48b66914fd665b7/src/Backshift.DataSource.NRTG.js#L197

Fixed

Details

Assignee

Reporter

Sprint

Affects versions

Priority

PagerDuty

Created January 17, 2017 at 10:48 AM
Updated January 19, 2017 at 4:57 PM
Resolved January 19, 2017 at 12:26 PM