<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Webdings;
        panose-1:5 3 1 2 1 5 9 6 7 3;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 6 6 2 2 2 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:808282088;
        mso-list-type:hybrid;
        mso-list-template-ids:758648468 336134159 336134169 336134171 336134159 336134169 336134171 336134159 336134169 336134171;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Userdefined graphs have one initial underscore; automatic userdefineds (such as summary, incoming, outgoing) have two.  If you specify directives for userdefineds, then you can optionally add a leading underscore (but if you don’t, the software will do it for you).  So, either one or two should work.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>The problem with trying to make the automatic summary the default is that it is not defined until after the config file is parsed, so adding options like this will not work (I told you this was an experimental option…).  Ordinary Targets, and userdefined targets, are defined during the parsing of the cfg file so you can add this sort of directive after the relevant Target or routers.cgi*Graph or routers.cgi*Summary line.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>The only thing you can do is this (and it is a bit messy).<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><span style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Add ‘routers.cgi*InSummary[_]: no’ so that nothing is in the summay page, effectively removing it.<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><span style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Create your own summary page, by adding ‘routers.cgi*Summary[xxx]: mysummary’ on each target xxx (you can’t use the default target ‘_’ here as this is a multiple-instance directive)<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><span style='mso-list:Ignore'>3.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Make your new summary the default ‘routers.cgi*Options[mysummary]: default’<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><span style='mso-list:Ignore'>4.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Maybe set appropriate menu labels etc ‘routers.cgi*ShortDesc[mysummary]: Summary’<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I have not yet tried this but it should work.  Probably :-l<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Steve<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><hr size=2 width="100%" align=center></span></div><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Steve Shipway<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>ITS Unix Services Design Lead<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>University of Auckland, New Zealand<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Floor 1, 58 Symonds Street, Auckland<o:p></o:p></span></p><p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959'>Phone: +64 (0)9 3737599 ext 86487<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959'>DDI: +64 (0)9 924 6487<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959'>Mobile: +64 (0)21 753 189<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959'>Email: <a href="mailto:s.shipway@auckland.ac.nz"><span style='color:#595959'>s.shipway@auckland.ac.nz</span></a><o:p></o:p></span></i></p><p class=MsoNormal><span lang=EN-GB style='font-size:18.0pt;font-family:Webdings;color:green'>P</span><span lang=EN-GB style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:blue'> </span><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:green'>Please consider the environment before printing this e-mail</span><span lang=EN-GB style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:blue'> </span><span lang=EN-GB style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:navy'><o:p></o:p></span></p><p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></i></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> MMartin@jwpepper.com [mailto:MMartin@jwpepper.com] <br><b>Sent:</b> Thursday, 19 January 2012 4:48 a.m.<br><b>To:</b> Steve Shipway<br><b>Cc:</b> mrtg@lists.oetiker.ch<br><b>Subject:</b> RE: [mrtg] Make Summary Graph Default<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#002F80'>Hey Steve,</span> <br><br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#002F80'>I tried the &quot;__summary&quot; but it doesn't seem to be working... Is it 2 underscores &quot;__summary&quot; or only one &quot;_summary&quot;?</span> <br><br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#002F80'>I put this line at the very end of the cfg file:</span> <br><br><span style='font-family:"Arial","sans-serif"'>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; routers.cgi*Options[__summary]: default</span> <br><br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#002F80'>Does that look correct? And is the end of the cfg file the correct place for that directive?</span> <br><br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#002F80'>Thanks Again,</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#002F80'>Matt</span> <br><br><br><br><br><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F'>From: &nbsp; &nbsp; &nbsp; &nbsp;</span><span style='font-size:7.5pt;font-family:"Arial","sans-serif"'>Steve Shipway &lt;s.shipway@auckland.ac.nz&gt;</span> <br><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F'>To: &nbsp; &nbsp; &nbsp; &nbsp;</span><span style='font-size:7.5pt;font-family:"Arial","sans-serif"'>&quot;MMartin@jwpepper.com&quot; &lt;MMartin@jwpepper.com&gt;, &quot;mrtg@lists.oetiker.ch&quot; &lt;mrtg@lists.oetiker.ch&gt;</span> <br><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F'>Date: &nbsp; &nbsp; &nbsp; &nbsp;</span><span style='font-size:7.5pt;font-family:"Arial","sans-serif"'>01/18/2012 07:45 AM</span> <br><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F'>Subject: &nbsp; &nbsp; &nbsp; &nbsp;</span><span style='font-size:7.5pt;font-family:"Arial","sans-serif"'>RE: [mrtg] Make Summary Graph Default</span> <o:p></o:p></p><div class=MsoNormal align=center style='text-align:center'><hr size=2 width="100%" noshade style='color:gray' align=center></div><p class=MsoNormal><br><br><br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>I’m assuming you mean the Summary graphs as in the Routers2 frontend.</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>&nbsp;</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>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). &nbsp;This affects the default for ALL devices for ALL users.</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>&nbsp;</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>You can use per-user sections – [user-xxx] and place a defaulttaget rule in there for individual users, but this affects ALL targets. &nbsp;You can also allow users to set their personal preferences (which overrides the defaults I nthe routers2.conf file).</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>&nbsp;</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>However, if you want to set a default for just one Device, you can add in the MRTG cfg file the line</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>&nbsp;</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>routers.cgi*Options[xxxx]: default</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>&nbsp;</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>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). &nbsp;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. &nbsp;The autogenerated summary page is ‘__summary’ and the autogenerated incoming/outgoing are ‘__incoming’ and ‘__outgoing’.</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>&nbsp;</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>Note that this is an experimental directive that is not fully reliable; however if it works for you then all to the good.</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>&nbsp;</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>Steve</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>&nbsp;</span> <o:p></o:p></p><p class=MsoNormal align=center style='text-align:center'><o:p>&nbsp;</o:p></p><div class=MsoNormal align=center style='text-align:center'><hr size=2 width="100%" align=center></div><p class=MsoNormal><br><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>Steve Shipway</span></b> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>ITS Unix Services Design Lead</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>University of Auckland, New Zealand</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>Floor 1, 58 Symonds Street, Auckland</span> <br><i><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#5F5F5F'>Phone: +64 (0)9 3737599 ext 86487</span></i> <br><i><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#5F5F5F'>DDI: +64 (0)9 924 6487</span></i> <br><i><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#5F5F5F'>Mobile: +64 (0)21 753 189</span></i> <br><i><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#5F5F5F'>Email: </span></i><a href="mailto:s.shipway@auckland.ac.nz"><i><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#5F5F5F'>s.shipway@auckland.ac.nz</span></i></a> <br><span style='font-size:18.0pt;color:green'>P</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue'> </span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:green'>Please consider the environment before printing this e-mail</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue'> </span><br><i><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>&nbsp;</span></i> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#004080'>&nbsp;</span> <br><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch [</span><a href="mailto:mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch"><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>mailto:mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch</span></a><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>] <b>On Behalf Of </b>MMartin@jwpepper.com<b><br>Sent:</b> Tuesday, 17 January 2012 4:38 a.m.<b><br>To:</b> mrtg@lists.oetiker.ch<b><br>Subject:</b> [mrtg] Make Summary Graph Default</span> <br>&nbsp; <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#002F80'>Hello All,</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#002F80'><br>Is there a directive, or an option of a directive, that would make the Summary Graph be the default graph for a specific target?</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#002F80'><br>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.</span> <span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#002F80'><br>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</span> <span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#002F80'><br>that, that would have to be set on each individual user's computer.</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#002F80'><br>Any thoughts would be great...</span> <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#002F80'><br>Thanks in Advance,</span> <span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#002F80'><br>Matt</span> <o:p></o:p></p></div></div></body></html>