[mrtg] MRTG and Linux

Mark Campbell mark at uis.co.za
Wed Jan 24 14:46:21 MET 2001


Hi all,

I import mrtg.cfg files from my NT server to my Linux box using wget.  My
problem is the way the files come accross doesn't seem to gel with Linux
because MRTG gives this error;

root at root:/tmp/cfg# perl /usr/local/mrtg/bin/mrtg mrtg.cfg
) in CFG file (mrtg.cfg)  does not make sense
root at root:/tmp/cfg# 

I use these exact same config files on my NT box to graph.  My guess is that
it has something to do with word wrapping, because sometimes i'll get a file
with a ^M at the end of every line or the file has big spaces between the
lines after an import.  Also when I copy and paste a config file from NT
into Linux using VI and SSH it works great. Is there a way I can get MRTG to
ingnore these ^M's and spaces?

Any ideas?  My goal is to create the config files using my NT box and
getting my Linux box to import them periodically using wget and running mrtg
from Linux.

Thanks!!!

Mark Campbell
Unihold Internetworking Services
Tel - +27 11 380 4760   
Fax - +27 11 380 4710
Cell - 0833269321
Email - mark at uis.co.za 

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list