[mrtg] Newbie question

Daniel J McDonald dan.mcdonald at austinenergy.com
Fri Apr 6 15:50:25 CEST 2007


On Fri, 2007-04-06 at 22:53 +1000, Phil Rhoades wrote:
> People,
> 
> I got MRTG going fairly quickly on FC6 (192.168.0.10) using:
> 
> 	http://www.my-guides.net/en/content/view/23/26/	
> 
> Now I want to watch what is going on my D-Link router (DI-704P -
> 192.168.0.1) and D-Link VOIP phone (DPH-C160S - 192.168.0.2).
> 
> I presume I just need to do another cfgmaker

Yes.  You can append the output to the first file, or have one file per
device with a master file with Include: statements.

Since I monitor about 500 devices with mrtg, I use the Include: method.
I have all of my global settings in a file called common.cfg, one device
per config in the 500 {devicename}.cfg files (in various directories)
and then a master file that is built on the fly from a database.  The
master file looks something like:
Include: /var/mrtg/cfg/common.cfg
Include: /var/mrtg/cfg/811/811-net-2.cfg
Include: /var/mrtg/cfg/811/811-net-3.cfg
Include: /var/mrtg/cfg/811/811-net-8.cfg
Include: /var/mrtg/cfg/811/811-net-9.cfg
Include: /var/mrtg/cfg/811/811-probe.cfg
Include: /var/mrtg/cfg/811/811-ups-3.cfg
Include: /var/mrtg/cfg/811/811-ups-8.cfg


> and indexmaker

If you need indexmaker, yes.  Run it against the completed master file.

-- 
Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX
Austin Energy
http://www.austinenergy.com



More information about the mrtg mailing list