[mrtg] Re: MRTG Daemon doing bad thing

Cook, Garry GWCOOK at mactec.com
Tue Dec 21 17:10:26 MET 2004

> I have 3 mrtg servers, each one with hundreds of interfaces.
> RedHat 7.2,
> mrtg 2.9.6 (1minute), rrdtool 1.0.39, Pentium IV 2.4 GHz, 40Gb HD,
> 512Mb RAM.
> I put one of them with daemon instead of using crond. In order to save
> memory and CPU at the same time, I grouped all the configs in 4
> daemonized configs.
> But, unfortunatly, when one of the monitored routers falls,
> all the cfg
> falls together.
> Config example:
> [root at DIPRO-999 mrtg]# more 030.cfg
> WorkDir: /var/www/html
> Refresh: 300
> #Forks: 4

Uncomment the 'Forks' line. Let the daemon fork into as many processes
as you have config files. That way, if one of them hangs, you won't lose
data from the others as they are running separately. I run a daemon for
each region of my network, which uses a config file that forks into as
many processes as there are included configs in each region. 
Also, as I think someone else mentioned, newer versions of MRTG should
skip dead devices. I might not need to do all of this with the newer
MRTG versions, but I've been running this way for quite some time...

Garry W. Cook, CCNA
Network Infrastructure Manager
MACTEC, Inc. - http://www.mactec.com/
303.273.5050 (Office) - 720.220.1862 (Mobile)

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