Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#1032 closed patch (fixed)

graph_args_after

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

Description

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 3 years ago.
graph_args_after in GraphOld?.pm
GraphOld.pm.after.2.diff (1.0 KB) - added by jiska 3 years ago.
graph_args_after in GraphOld?.pm
avgline.png (16.3 KB) - added by jiska 3 years ago.
graph_args_after example: average line
Config.pm.after.diff (507 bytes) - added by jiska 3 years ago.
Config.pm: added argument graph_args_after

Download all attachments as: .zip

Change History (7)

Changed 3 years ago by jiska

graph_args_after in GraphOld?.pm

Changed 3 years ago by jiska

graph_args_after in GraphOld?.pm

Changed 3 years ago by jiska

graph_args_after example: average line

Changed 3 years ago by jiska

Config.pm: added argument graph_args_after

comment:1 Changed 3 years ago by snide

  • Owner changed from nobody to jorne

comment:2 Changed 3 years ago by snide

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

comment:3 Changed 3 years ago by snide

Applied in r4142

Note: See TracTickets for help on using tickets.