<div>ERROR: Line 8 ( WorkDir: /var/www/html/mrtg) in CFG file (/var/www/html/mrtg/core/switch1.cfg) does not make sense </div>
<div>yes what ever work directory i specify it shows this error.</div>
<div> </div>
<div>when i dont specify a work dir it shows no work directory.</div>
<div>well i'll try this again</div>
<div> </div>
<div>thanks !</div>
<div>harry<br><br><br> </div>
<div><span class="gmail_quote">On 7/5/07, <b class="gmail_sendername">Henrik Jacobsson</b> <<a href="mailto:henke.jacobsson@gmail.com">henke.jacobsson@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I got the same issue when I used indexmaker...<br><br>Look at the bottom of your config, there's guaranteed a WorkDir:
<br>statement there =)<br><br>//henke<br><br>Harry John skrev:<br>><br>> Hello everybody,<br>><br>> I've just installed MRTG on a centos 4.5 and it just gave me the<br>> local output on <a href="http://localhost/mrtg">
http://localhost/mrtg</a><br>><br>> Now to add a swich to view it statisctics, i did<br>> /usr/local/mrtg-2/bin/cfgmaker communityname@router1<br>> >/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<br>> /var/www/html/mrtg/switchswitch1.html>
<br>> /var/www/html/mrtg/core/switch1.cfg<br>><br>> and it gives : ERROR: Line 8 ( WorkDir: /var/www/html/mrtg) in CFG<br>> 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<br>> several other options but does'nt seem to work well.<br>><br>><br>> now i copied some stuff from mrtg.cfg to like runas daemon , HTML
<br>> formating stuff, Stat and then I was able to generate switch1.html<br>> i ran<br>> env LANG=C /usr/local/mrtg-2/bin/mrtg<br>> /var/www/html/mrtg/core/switch1.cfg<br>> and was able to get the results.
<br>><br>> but do i need to copy these fields (HTML formating stuff, Stat...)<br>> each time i add a new machine to view the services?<br>> where have i gone wrong?<br>><br>> Thanks in advance
<br>> Harris<br>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________<br>> mrtg mailing list<br>> <a href="mailto:mrtg@lists.oetiker.ch">
mrtg@lists.oetiker.ch</a><br>> <a href="https://lists.oetiker.ch/cgi-bin/listinfo/mrtg">https://lists.oetiker.ch/cgi-bin/listinfo/mrtg</a><br>><br><br></blockquote></div><br>