<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=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-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.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></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="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Ahh, thanks William, that was enough to help me figure it out.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I forgot to mention that I want to have my cfgmaker and indexmaker running on a cron, so the generation of the cfg and html files can be updated regularly to catch newly in service switch ports, etc.&nbsp; &#8211;without
 having admin-down entries clutter things.&nbsp; I finally got my syntax working, and for anyone else trying to do this, here&#8217;s what my cfgmaker and indexmaker syntax look like:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">cfgmaker --global &quot;workdir: /var/www/mrtg&quot; --subdirs=&quot;10.1.1.1_gracerouter2.gracecottage.int&quot; --ifref=name --output /etc/mrtg/c2801.cfg --global 'options[_]: growright,bits'
<a href="mailto:****@10.1.1.1">****@10.1.1.1</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">indexmaker /etc/mrtg/c2801.cfg &gt; /var/www/mrtg/c2801.html<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:#1F497D">-Jason<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</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:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> William Owen [mailto:William.Owen@profilesmail.com]
<br>
<b>Sent:</b> Wednesday, May 18, 2011 4:04 PM<br>
<b>To:</b> Jason R. Butterfield; mrtg@lists.oetiker.ch<br>
<b>Subject:</b> RE: [mrtg] all generated files going to last workdir of included cfg files in mrtg.cfg<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">I have one master config with workdir specified and then a separate &#8220;Directory[_]: Device&#8221; included in all of my include files. This seems to work well. If you can overlook the fact that I&#8217;m running on Windows,
 this is an example of my master.cfg and a server.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Master.cfg<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">##### change dirs as needed versions etc etc ####<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">PathAdd: D:\mrtg\bin<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">PathAdd: D:\rrdtool<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">###### the rest of your cfg file here #####<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">LogFormat: rrdtool<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">WorkDir: D:\mrtg\data\<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">EnableIPv6: no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Refresh: 300<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Interval: 5<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Include: D:\mrtg\configs\server1.cfg<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Include: D:\mrtg\configs\server2.cfg<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Include: D:\mrtg\configs\device1.cfg<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Include: D:\mrtg\configs\device2.cfg<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">server1.cfg<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Directory[_]: PICBI002<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">routers.cgi*Desc: PICBI002<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">routers.cgi*Icon: power_edge-sm.gif<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">### Interface 65539 &gt;&gt; Descr: 'Broadcom-BCM5708C-NetXtreme-II-GigE-(NDIS-VBD-Client)' | Name: '' | Ip: 'xxx.xxx.xxx.xxx' | Eth: 'xx-xx-xx-xx-xx-xx' ###<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Target[server1_65539]: !xx-xx-xx-xx-xx-xx:community@server1:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">SetEnv[server1_65539]: MRTG_INT_IP=&quot;xxx.xxx.xxx.xxx&quot; MRTG_INT_DESCR=&quot;Broadcom-BCM5708C-NetXtreme-II-GigE-(NDIS-VBD-Client)&quot;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">MaxBytes[server1_65539]: 125000000<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Title[server1_65539]: Traffic Analysis for 65539 &#8211; Server1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">PageTop[server1_65539]: null<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</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>From:</b> mrtg-bounces&#43;william.owen=profilesmail.com@lists.oetiker.ch [mailto:mrtg-bounces&#43;william.owen=profilesmail.com@lists.oetiker.ch]
<b>On Behalf Of </b>Jason R. Butterfield<br>
<b>Sent:</b> Wednesday, May 18, 2011 2:32 PM<br>
<b>To:</b> mrtg@lists.oetiker.ch<br>
<b>Subject:</b> [mrtg] all generated files going to last workdir of included cfg files in mrtg.cfg<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">My mrtg.cfg utilizes the &#8216;Include:&#8217; feature to pull in config files for a handful of devices.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">In each of the device.cfg files, I specify a different &#8216;workdir&#8217; to keep things separated per device.
<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">When I run mrtg (I have the cron disabled while I figure this out) everything seems to work fine, except that all of the files generated go in the &#8216;workdir&#8217; specified by the last cfg file &#8216;included&#8217; in the mrtg.cfg.&nbsp; So things look fine
 from a web browser for the last device in the config, but not for the rest since the html indices point to the respective directories where nothing is being updated&#8230;<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Specifically &#8211;my mrtg.cfg file: <o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">**snip**<o:p></o:p></p>
<p class="MsoNormal">HtmlDir: /var/www/mrtg<o:p></o:p></p>
<p class="MsoNormal">ImageDir: /var/www/mrtg<o:p></o:p></p>
<p class="MsoNormal">LogDir: /var/lib/mrtg<o:p></o:p></p>
<p class="MsoNormal">ThreshDir: /var/lib/mrtg<o:p></o:p></p>
<p class="MsoNormal">Include: sw375024sv01.cfg&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;#[workdir line in cfg file == workdir: /var/www/mrtg/10.4.88.232_sw375024sv01.gracecottage.int]<o:p></o:p></p>
<p class="MsoNormal">Include: sw356024sv02.cfg &nbsp;&nbsp;&nbsp;&nbsp;#[workdir: /var/www/mrtg/10.4.88.235_sw356024sv02.gracecottage.int]<o:p></o:p></p>
<p class="MsoNormal">Include: c2801.cfg&nbsp;&nbsp;&nbsp; &nbsp;#[workdir: /var/www/mrtg/10.1.1.1_gracerouter2.gracecottage.int]<o:p></o:p></p>
<p class="MsoNormal">**snip**<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">All html/log/png files are created in the last workdir: /var/www/mrtg/10.1.1.1_gracerouter2.gracecottage.int<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I&#8217;m a bit stumped.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Any thoughts or input would be most appreciated.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">-Jason<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><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">This message (and any included attachments) is from Grace Cottage Hospital and is intended only for the addressee(s). The information contained herein may include privileged or otherwise confidential information. Unauthorized review, forwarding,
 printing, copying, distributing, or using such information is strictly prohibited and may be unlawful. If you received this message in error, or have reason to believe you are not authorized to receive it, please promptly delete this message and notify the
 sender by e-mail.<o:p></o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">This message (and any included attachments) is from Grace Cottage Hospital and is intended only for the addressee(s). The information contained herein may include privileged or otherwise confidential information. Unauthorized
 review, forwarding, printing, copying, distributing, or using such information is strictly prohibited and may be unlawful. If you received this message in error, or have reason to believe you are not authorized to receive it, please promptly delete this message
 and notify the sender by e-mail.<br>
</font>
</body>
</html>