<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:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" 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;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.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'>I have one master config with workdir specified and then a separate “Directory[_]: Device” included in all of my include files. This seems to work well. If you can overlook the fact that I’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> </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> </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> </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> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </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> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>### Interface 65539 >> 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> </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="xxx.xxx.xxx.xxx" MRTG_INT_DESCR="Broadcom-BCM5708C-NetXtreme-II-GigE-(NDIS-VBD-Client)"<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 – 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> </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+william.owen=profilesmail.com@lists.oetiker.ch [mailto:mrtg-bounces+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></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>My mrtg.cfg utilizes the ‘Include:’ feature to pull in config files for a handful of devices.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>In each of the device.cfg files, I specify a different ‘workdir’ to keep things separated per device. <o:p></o:p></p><p class=MsoNormal><o:p> </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 ‘workdir’ specified by the last cfg file ‘included’ in the mrtg.cfg. 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…<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Specifically –my mrtg.cfg file: <o:p></o:p></p><p class=MsoNormal><o:p> </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 #[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 #[workdir: /var/www/mrtg/10.4.88.235_sw356024sv02.gracecottage.int]<o:p></o:p></p><p class=MsoNormal>Include: c2801.cfg #[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> </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> </o:p></p><p class=MsoNormal>I’m a bit stumped.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Any thoughts or input would be most appreciated.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>-Jason<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><hr size=2 width="100%" align=center></span></div><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:gray'>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.</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p></div></body></html>