<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)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</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-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:black'>You have to include deferent
directories for the deferent hosts. Eg<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>WorkDir: /home/mrtg/<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>Options[_]: growright,gauge,bits<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>Factor[_]:125<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>RunAsDaemon: yes<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>WithPeak[_]: d,w<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>Refresh: 300<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>Interval:
5</span><span style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>Target[host1
1.3.6.1.4.1.2603.5.4.2.1.8.4.951.1007.48&1.3.6.1.4.1.2603.5.4.2.1.9.4.951.1007.48:xxxxxx@200.18.2.229:::::2<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>MaxBytes[host1]: 12500000<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>Title[host1]: Traffic xxxxxx <o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>PageTop[host1]: <H1>xxxxxxx </H1><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>Directory[host1]: host1_dir<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>#########################################<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='color:black'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>Target[host2] 1.3.6.1.4.1.2603.5.4.2.1.8.4.951.1007.48&1.3.6.1.4.1.2603.5.4.2.1.9.4.951.1007.48:xxxxxx@200.18.2.229:::::2<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>MaxBytes[host2]: 12500000<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>Title[host2]: Traffic xxxxxxxx<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>PageTop[host2]: <H1>xxxxxxx </H1><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>Directory[host2]: host2_dir<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'>You have to make sure that the following directory
exists in /home/mrtg/<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";
color:#002060'>Kind Regards,<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";
color:#002060'>Iyke Anyanwu<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";
color:#002060'><o:p> </o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#002060'>Head, Network and IP Infrastructure,<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#002060'>Emperion West Africa Limited<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#002060'>Chevron Drive<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#002060'>Lekki Expressway<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#002060'>Lagos, Nigeria<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#002060'>Mail: ian@emperion.net <o:p></o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#002060'>YID: iykeanny; MSN: iykeanny@hotmail.com<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#002060'><o:p> </o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#002060'>Cell: +234 (0)8087184184; (0)7028145226<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#002060'>Support Lines +234 (1)7949167-8 , (1)7741926 <o:p></o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";
color:#002060'>Fax +234 (1)4611370<o:p></o:p></span></b></p>
</div>
<p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><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@lists.oetiker.ch [mailto:mrtg-bounces@lists.oetiker.ch] <b>On
Behalf Of </b>McDonald, Dan<br>
<b>Sent:</b> Tuesday, February 10, 2009 1:32 PM<br>
<b>To:</b> mrtg@lists.oetiker.ch<br>
<b>Subject:</b> Re: [mrtg] Graphs in different subdirectories.<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>On Mon, 2009-02-09 at 20:21 -0800, AustralianSummer wrote: <o:p></o:p></p>
<pre><o:p> </o:p></pre><pre>Hi,<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>I am just wondering what is the best way to have a subfolder for each<o:p></o:p></pre><pre>device. (e.g mrtg/hostname1/ , mrtg/hostname2/ )<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>I do something similar, but I have two levels to keep it somewhat sane...<o:p></o:p></pre>
<p class=MsoNormal><br>
<br>
<o:p></o:p></p>
<pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>I tried using the --subdirs=format <o:p></o:p></pre>
<p class=MsoNormal>subdir should be singular, e.g.:<br>
/usr/bin/cfgmaker --if-template=iosv3.iftemplate --ifref=name --interfaces
--host-template=iosv3.template <b>--subdir=site1/HOSTNAME</b> --username='foo'
--authkey='0x21de...' --authproto='sha' --privkey='0xa897...'
--privproto=aesfcb128 --output=/var/mrtg/cfg/site1/site1-router.cfg <a
href="mailto:'public'@onioncreek-net.austin-energy.net">'foo'@site1-router.example.com</a>::2:1:1:3<br>
<br>
<br>
<o:p></o:p></p>
<pre><o:p> </o:p></pre><pre>and 'Directory[hostname1]: hostname1 '<o:p></o:p></pre>
<p class=MsoNormal>Not [hostname1], you need the individual targets
there. E.g.:<br>
Directory[site1-router.example.com<b>.cpu1</b>]: site1/site1-router.example.com<br>
<br>
<br>
<br>
<o:p></o:p></p>
<pre><o:p> </o:p></pre><pre>options but cant seem to get it to work.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>and also will the above methods require making seperate .cfg files or will<o:p></o:p></pre><pre>they all use the mrtg.conf file.<o:p></o:p></pre>
<p class=MsoNormal style='margin-bottom:12.0pt'><br>
Either way works, but if you have so many configs that you want separate
directories, it is more scalable to create a separate config file for every
device, then have a master mrtg.cfg with Include: statements for each one.<o:p></o:p></p>
</div>
</body>
</html>