[mrtg] Re: MRTG and Routers2.cgi

rglauser at areaofficeonaging.com rglauser at areaofficeonaging.com
Thu Oct 28 15:26:35 MEST 2004

I want to thank everyone for their suggestions, I checked the log files
and could find no error regarding this particular cfg file. I am using
cron to run MRTG, starting and stopping that made no difference. I
searched for multiple instances of the cfg file, there was only one. I
finally looked at the master cfg file and how I had modified the
individual interfaces to report more accurately the equipment on those
ports. It seems that when I un-commented the port I left one space too
many. I removed that and MRTG started updating and reporting the newly
active ports. Sometimes the simplest things can trip you up.

From: Peter Glanville [mailto:Peter_Glanville at cuk.canon.co.uk] 
Sent: Thursday, October 28, 2004 4:54 AM
To: RL Glauser
Subject: Re: [mrtg] Re: MRTG and Routers2.cgi

> I uncommented the appropriate interface in the cfg file
> for the switch stack but the graph did not appear. 

> When I look in the working directory, there is
> no rrd file for this interface. 

> Is there a way I can generate a rrd file for one interface 
> within a larger cfg file? 

When MRTG runs, it creates/updates each RRD file each time (ie every 5
mins usually) 
So it appears that MRTG is not running against your updated CFG. 
Get it to do so, and the extra file(s) will appear 

Possible causes. 
1) MRTG reads the CFG as it starts. Ammending the CFG thereafter has no
immediate effect. You need to stop and restart MRTG (if running as
daemon, hence many users do not run as daemon, but invoke it every 5
mins and it re-reads the (possibly modified) CFG file each time). 
Stopping and restarting Routers2.cgi is pointless and impossible. 
2) MRTG is reading a different copy of the CFG to the one you have
updated. Check carefully. 


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