[mrtg] Re: MRTG and Linux

Calvert, Neil ncalvert at GlobalNTS.com
Wed Jan 24 16:32:15 MET 2001


use the unix2dos and dos2unix utilities - they convert text files from
Windows to Unix and vice versa (removing control characters).

They're available on RPM download sites and other freeware places. 

Neil


-----Original Message-----
From: Mark Campbell [mailto:mark at uis.co.za]
Sent: Wednesday, January 24, 2001 8:46 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] MRTG and Linux



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


--
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