[mrtg] Re: mrtg.cfg file being truncated
Westermann, Gavin
gavin.westermann at attcanada.com
Thu Feb 27 22:37:03 MET 2003
Sure.
00,02,06,10,12,16,18,20,22,24,26,28,30,32,34,36,38,40,42,46,48,50,52,54,56,5
8 * * * * /usr/local/mrtg-2/bin/mrtg > /usr/local/mrtg-2/bin/mrtg.cfg
--logging /var/log/mrtg2.log #MRTG poll
this is it. It was originally working, but I redid it because of of the
files was not updating for some reason. Next time I looked this trunking
was happening. If you run that as just a command line it will do the same
thing.
/usr/local/mrtg-2/bin/mrtg /usr/local/mrtg-2/bin/mrtg.cfg
Gavin Westermann
Internetworking Operations Consultant
World Markets
AT&T Canada Corp
5160 Orbitor Drive
Mississauga, Ontario
L4W 5H2
ph: 905-361-6126
-----Original Message-----
From: Brander, Eric [mailto:Eric.Brander at ACS-INC.com]
Sent: Thursday, February 27, 2003 4:23 PM
To: 'Westermann, Gavin'; 'mrtg at list.ee.ethz.ch'
Subject: RE: [mrtg] mrtg.cfg file being truncated
Sounds like your cron job could have the wrong command line. Can you show us
the crontab line in question? MRTG does not modify the config files when it
runs. Just a guess (and based on the lack if info here - a long shot at
best) you are running cfgmaker every 5 minutes, and not MRTG.
Eric Brander
ACS
Texas CHIP Account
Sr. Communications Engineer - Information Systems Department
512.336.3331
Eric dot Brander at acs-inc dot com
-----Original Message-----
From: Westermann, Gavin [mailto:gavin.westermann at attcanada.com]
Sent: Thursday, February 27, 2003 12:54 PM
To: 'mrtg at list.ee.ethz.ch'
Subject: [mrtg] mrtg.cfg file being truncated
I had this working on an HP box but now I have a strange problem that I just
can't figure out. I make my config usring cfgmaker and the result is placed
where I want by the script.
-rw------- 1 root sys 67539 Feb 27 11:44 mrtg.cfg
after the cron runs the first run this file some how trunkates to this.
-rw------- 1 root sys 240 Feb 27 12:02 mrtg.cfg
All that is in that file is the header? The actuall config that sits south
of that is missing?
I cannot figure out why this is happening?
Gavin
Gavin Westermann
Internetworking Operations Consultant
World Markets
AT&T Canada Corp
5160 Orbitor Drive
Mississauga, Ontario
L4W 5H2
ph: 905-361-6126
--
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