Bits In/Out graph is not working in NRTG graph

Description

If you click on the NRTG graph for Bits In/Out the graph is empty. The debug output shows collected ifInOctets and ifOutOctets

Acceptance / Success Criteria

None

Attachments

4

Lucidchart Diagrams

Activity

Show:

Ron Roskens September 20, 2013 at 1:23 PM

Updated my patch to include handling for {endTime:format} and {startTime:format}.

To handle those formats, I added simpledateformat.js by Tim Down (website: http://www.timdown.co.uk/code/simpledateformat.php) which was under the Apache 2.0 License.

Ron Roskens September 20, 2013 at 12:44 AM

This patch adds some handling for the special {text} handling that is missing from nrtg. It does not handle the {startTime:format} or {endTime:format} cases.

Ron Roskens September 20, 2013 at 12:41 AM

The problem is that there are some special translation mappings handled inside opennms-webapp/src/main/java/org/opennms/web/svclayer/support/DefaultRrdGraphService.java that nrtg doesn't also do.

{diffTime}
{startTime}
{startTime:format}
{endTime}
{endTime:format}
{startTimeDate}
{endTimeDate}

There are two places in rrdgraph.js that have to deal with these values: Data.prototype.push, and Graph.prototype.update.

The thing is the usage of {diffTime} in the mib2.(HC)bits graphs doesn't really make much sense at the nrtg level since all the field is only used to calculate a "total bits in" value. Since you can pause an nrtg graph, the resulting value being displayed does not make much sense. Its kind of disconcerting to see the total bits value increase and decrease overtime as the nrtg graph is displayed.

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

PagerDuty

Created August 8, 2013 at 12:55 PM
Updated January 27, 2017 at 4:19 PM
Resolved September 23, 2013 at 10:42 AM