[mrtg] How to get PageTop on UserDefined Graphs

Steve Shipway s.shipway at auckland.ac.nz
Mon Dec 19 22:09:03 CET 2011

You can use PageTop on userdefined graphs in Routers2; however you need to
use the 'routers.cgi*' prefix (so that MRTG doesn't get confused) and use
the userdefined graph name as the targetname.  Thus:


routers.cgi*Graph[targetname]: mygraph


routers.cgi*PageTop[mygraph]: <H2>My graph page top</H2>My graph is pretty.


For different graph styles, you have several options.  These can be applied
to either userdefined graphs or to normal targets.


default : this is the default - an area and a line for Targets, or multiple
lines for userdefined

stack : this is probably what you want, stacked areas

lines : only lines.  This is the default for userdefined

mirror : incoming above the x-axis, outgoing below

stackmirror : mirror, but with multiple components stacked.  Only applies to

range : a floating bar from (in) to (out).  Most useful for ping RTT graphs
to show min-max range.


Routers2 does not have a style for using areas that overlap, as it is only
in recent RRD versions that semi-transparency of areas was possible.  This
would be an interesting thing to put on the wishlist, though.


For more details, see the files in the docs subdirectory as shipped with the
Routers2 package.





Steve Shipway

ITS Unix Services Design Lead

University of Auckland, New Zealand

Floor 1, 58 Symonds Street, Auckland

Phone: +64 (0)9 3737599 ext 86487

DDI: +64 (0)9 924 6487

Mobile: +64 (0)21 753 189

Email:  <mailto:s.shipway at auckland.ac.nz> s.shipway at auckland.ac.nz

P Please consider the environment before printing this e-mail 



From: MMartin at jwpepper.com
Sent: Tuesday, 20 December 2011 4:07 a.m.
To: mrtg at lists.oetiker.ch
Subject: [mrtg] How to get PageTop on UserDefined Graphs


Hello All, 

I hope this is the correct area to ask this question... 

Currently I'm running the following: 
     MRTG: v2.17.2
Routers2: v2.22
RRDTool: v1.2.12 

I cannot seem to get the "PageTop" directive working for my UserDefined
Graphs..? It works for normal "targets", just not for UserDefined ones. 
I enabled all the necessary options in Routers.conf and the User-Graphs do
show what the default Header and Footer are which you can set in
But they are not showing the PageTop[_] Directive I define for the header? 

Does anyone know what I could do to get this working..? 

Also, something I've wanted to see if I could get working...? 
I know that RRDTool has a Graph "Style/Type" option called "area" in which
it shows the "lines" as filled-in areas on the screen which will overlap one
another if necessary, unlink "stack" which is almost the same except that it
stacks the "areas", one on-top of the other... I would like to see if this
will work with what I'm running, because it is much easier to read then say
a graph with a bunch of lines. 

Any ideas would be greatly appreciated. 

Thanks in Advance, 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20111219/2194f328/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4928 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/mrtg/attachments/20111219/2194f328/attachment-0001.bin 

More information about the mrtg mailing list