[mrtg] Make Summary Graph Default

Steve Shipway s.shipway at auckland.ac.nz
Wed Jan 18 01:31:56 CET 2012

I'm assuming you mean the Summary graphs as in the Routers2 frontend.


You can use the 'defaulttarget' directive in the routers2.conf file, which
can be set to 'summary' or 'incoming' or other values (see the routers2.conf
for details in the comments).  This affects the default for ALL devices for
ALL users.


You can use per-user sections - [user-xxx] and place a defaulttaget rule in
there for individual users, but this affects ALL targets.  You can also
allow users to set their personal preferences (which overrides the defaults
I nthe routers2.conf file).


However, if you want to set a default for just one Device, you can add in
the MRTG cfg file the line


routers.cgi*Options[xxxx]: default


This will make the target 'xxxx' the default for ALL users (overriding any
defaulttarget definitions in the routers2.conf but not overriding a user's
personal preferences).  If you want to make a particular userdefined graph,
or summary page, the default, then xxxx must match the name of the
userdefined graph or summary page.  The autogenerated summary page is
'__summary' and the autogenerated incoming/outgoing are '__incoming' and


Note that this is an experimental directive that is not fully reliable;
however if it works for you then all to the good.





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: mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch
[mailto:mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] On Behalf Of
MMartin at jwpepper.com
Sent: Tuesday, 17 January 2012 4:38 a.m.
To: mrtg at lists.oetiker.ch
Subject: [mrtg] Make Summary Graph Default


Hello All, 

Is there a directive, or an option of a directive, that would make the
Summary Graph be the default graph for a specific target? 

I'm pretty sure there's a way to make it the default in routers2.conf, but I
don't want it to be the default for all targets, just one. 
And there is also a way to do it through the preferences page on the Web UI,
but I didn't want to rely on cookies for this, and I know 
that, that would have to be set on each individual user's computer. 

Any thoughts would be great... 

Thanks in Advance, 

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

More information about the mrtg mailing list