Modify JRobinRrdStrategy to support additional rrdtool command-line parameters

Description

RRDTool has the --color command-line parameter which can be used in
snmp-graph.properties to change various colors of the produced graph.

JRobinRrdStrategy was designed to parse several specific RRDTool command-line
parameters from snmp-graph.properters and convert them to JRobin GraphDef calls.

Here is a patch to add support for the various color parameters for JRobin.

Environment

Operating System: All Platform: All URL: http://www.jrobin.org/api/quickreference.html

Acceptance / Success Criteria

None

Attachments

1

Lucidchart Diagrams

Activity

Tarus Balog May 2, 2005 at 12:39 PM

I tested this by setting up OpenNMS with JNI, and then adding the --color CANVAS#000000 switch to
the default rrdtool command in snmp-graph.properties.

It produced, using RRDTool, graphs with black backgrounds.

I then stopped OpenNMS, set JNI to false, blew away the rrd directory and restarted OpenNMS. It also
produced graphs with a black background.

Thanks for this, Gerald.

-T

Tarus Balog May 2, 2005 at 11:17 AM

I'll take this one.

Former user April 30, 2005 at 11:35 AM

DJ,
These guys found an argument to RRDTool that we were missing and have
supplied a patch. Since you have used this same code for you rrdwrapper code I
thought maybe you wouldn't mind reviewing/submitting this patch.

Probably best to include it 1.2

Thanks,
Matt

Gerald Turner April 29, 2005 at 4:03 PM

Created an attachment (id=208)
JRobinRrdStraegy color support patch

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

PagerDuty

Created April 29, 2005 at 4:03 PM
Updated January 27, 2017 at 4:31 PM
Resolved May 2, 2005 at 1:39 PM