#1032 closed patch (fixed)


Reported by: jiska Owned by: jorne
Priority: normal Milestone: Munin 2.0.0
Component: master Version: 1.4.5
Severity: normal Keywords:


graph_args inserts arguments in the beginning of "rrdtool graph". if you want to add some arguments that depend on previous DEF (data sources) or CDEF definitions, or if you want to use VDEF that is not defined for Munin, graph_args doesn't work.

the reason is, that you have to define data sources etc. before you can insert CDEF/VDEF/...-arguments. this patch introduces "graph_args_after". they are inserted as following:
"rrdtool graph $graph_args $munin_args $graph_args_after --end $time"

you can use them to insert whatever you want, e.g. to draw average lines:
graph_args_after VDEF:avg=ctransaction,AVERAGE LINE1:avg\#999999:avg\l:dashes

Attachments (4)

GraphOld.pm.after.diff (1.0 KB) - added by jiska at 2011-02-23T15:53:15+01:00.
graph_args_after in GraphOld?.pm
GraphOld.pm.after.2.diff (1.0 KB) - added by jiska at 2011-02-23T15:53:40+01:00.
graph_args_after in GraphOld?.pm
avgline.png (16.3 KB) - added by jiska at 2011-02-23T15:54:37+01:00.
graph_args_after example: average line
Config.pm.after.diff (507 bytes) - added by jiska at 2011-02-23T15:59:46+01:00.
Config.pm: added argument graph_args_after

Download all attachments as: .zip

Change History (7)

Changed at 2011-02-23T15:53:15+01:00 by jiska

graph_args_after in GraphOld?.pm

Changed at 2011-02-23T15:53:40+01:00 by jiska

graph_args_after in GraphOld?.pm

Changed at 2011-02-23T15:54:37+01:00 by jiska

graph_args_after example: average line

Changed at 2011-02-23T15:59:46+01:00 by jiska

Config.pm: added argument graph_args_after

comment:1 Changed at 2011-03-02T08:13:19+01:00 by snide

  • Owner changed from nobody to jorne

comment:2 Changed at 2011-03-02T08:13:29+01:00 by snide

  • Resolution set to fixed
  • Status changed from new to closed

comment:3 Changed at 2011-03-02T08:14:40+01:00 by snide

Applied in r4142

Note: See TracTickets for help on using tickets.