[mrtg] Re: sample cfg file for multiple cfg files

Hunt, Chris cjhunt at lehman.COM
Fri Sep 28 15:45:25 MEST 2001


Hi,

MRTG is working fine for me (with a 5 minute polling cycle btw.) with many
different devices.

I use it on an NT server, with an Mrtgkick.cmd batch job kicked off by the
scheduler every five minutes. This batch job is a list of many different
.cfg files that are executed in sequence thus enabling me to do many
completely separate monitoring tasks without the need to worry too much
about all the global bits, includes etc. Each .cfg file has an output
directory relating to the device that is being polled - I only have one
target per file, but poll many interfaces per target. The rest I just sort
out with the HTML.

Regards.
Chris

-----Original Message-----
From: Aldo Salinas [mailto:aesalinas at plant.pp.panam.edu]
Sent: 28 September 2001 14:27
To: 'Paul C. Williamson'
Cc: 'mrtg at list.ee.ethz.ch'
Subject: [mrtg] Re: sample cfg file for multiple cfg files



can i have different directories for every device that i want to monitor (to
keep everything organized a little better) and if so how can i acompish that
with only one global.cfg file.

-----Original Message-----
From: Paul C. Williamson [mailto:pwilliamson at mandtbank.com]
Sent: Friday, September 28, 2001 5:54 AM
To: MRTG users <mrtg at list.ee.ethz.ch; aesalinas at plant.pp.panam.edu
Subject: [mrtg] Re: sample cfg file for multiple cfg files



I'm not sure if this got through, so I'll send it again.

In your standard mrtg.cfg file, you've got global options like 
WorkDir (although I recommend replacing that with htmldir, 
logdir, imagedir & icondir) and WriteExpires: Yes.  You still 
need to have that info.  I just put that into it's own include file 
called globalstuff.cfg.

Then in my other cfgs, I just have target specific information.
IOW, I run cfgmaker, name the cfg something like 10.0.10.50.cfg, 
and then put that in my master cfg file.  So now the only thing in my 
master config is:

Include: /usr/local/mrtg/cfgs/globalstuff.cfg

#Name: Choke Router
Include: /usr/local/mrtg/cfgs/10.0.10.50.cfg


these lines.  Makes it very easy to maintain, add new stuff, etc.
I also have a program that builds my website automatically each 
day, so when I put in a new entry, I make sure I have the correct 
name so that everything is sorted and written to the correct files 
for web viewing.

Paul


>>> Aldo Salinas <aesalinas at plant.pp.panam.edu> 09/27/01 04:33PM >>>
i dont understand can you explain it to me.

-----Original Message-----
From: Paul C. Williamson [mailto:pwilliamson at mandtbank.com] 
Sent: Thursday, September 27, 2001 1:18 PM
To: aesalinas at plant.pp.panam.edu 
Cc: mrtg at list.ee.ethz.ch 
Subject: RE: [mrtg] sample cfg file for multiple cfg files


You need to make sure you only have one set of "global" commands.  I usually
put those in another include file and include it in the main config file I
want to run mrtg against.

You know, workdir, whatever...


Paul

>>> Aldo Salinas <aesalinas at plant.pp.panam.edu> 09/27/01 04:05PM >>>
I do have the full path

include: /path/filename.cfg
include: /path/filename2.cfg
include: /path/filename3.cfg

but is this all the text that i need on the main cfg file
or am i missing something else. cause that is how my config file looks like


-----Original Message-----
From: Paul C. Williamson [mailto:pwilliamson at mandtbank.com] 
Sent: Thursday, September 27, 2001 1:03 PM
To: mrtg at list.ee.ethz.ch; aesalinas at plant.pp.panam.edu 
Subject: Re: [mrtg] sample cfg file for multiple cfg files


Use the full path for the includes.

>>> Aldo Salinas <aesalinas at plant.pp.panam.edu> 09/27/01 03:42PM >>>

I had asked a question earlier today about monitoring a 2 different routers
and a server, Hans answered that i needed to use the include statement. but
i cant get it going.  all i did was made a new cfg file and typed 3
different lines that start like

include: filename.cfg
include: filename2.cfg
include: filename3.cfg

this could be stupid but im just starting with linux and mrtg. 

i would apreciate any sample configuration files.

Thank you very much

Aldo E. Salinas
University of Texas - Pan American
Physical Plant - Computer Support



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

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



------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the designated recipient(s) named above.  If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited.  This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such.  All information is subject to change without notice.



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