<div><span class="gmail_quote"></span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hello everybody,</div>
<div>&nbsp;</div>
<div>I&#39;ve&nbsp;just installed MRTG on a centos 4.5 and it just gave me the local output on <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://localhost/mrtg" target="_blank">http://localhost/mrtg</a></div>

<div>&nbsp;</div>
<div>&nbsp;Now to add a swich to view it statisctics, i did <br>/usr/local/mrtg-2/bin/cfgmaker communityname@router1 &gt;/var/www/html/mrtg/core/switch1.cfg<br>and it succesfully created a .cfg<br><br>i edited my router1.cfg workdirectory as /var/www/html/switches 
<br>To create a page I did Indexmaker like :<br>/usr/local/mrtg-2/bin/indexmaker /var/www/html/mrtg/switchswitch1.html&gt; /var/www/html/mrtg/core/switch1.cfg<br><br>and it gives : ERROR: Line 8 ( WorkDir: /var/www/html/mrtg) in CFG file (/var/www/html/mrtg/core/switch1.cfg) does not make sense 
<br><br>I tried doing workdirectory as /var/www/html/mrtg/switch aslo and several other options but does&#39;nt seem to work well.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>now i copied some stuff from mrtg.cfg to like runas daemon , HTML formating stuff, Stat and then I was able to generate switch1.html</div>
<div>i ran </div>
<div>env LANG=C /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/switch1.cfg</div>
<div>and was able to get the results.</div>
<div>&nbsp;</div>
<div>but do i need to copy these fields (HTML formating stuff, Stat...) &nbsp;each time i add a new machine to view the services?</div>
<div>where&nbsp; have i gone wrong?</div>
<div>&nbsp;</div>
<div>Thanks in advance</div>
<div>Harris</div></blockquote></div><br>