[mrtg] Re: Suggested Web Subdirectories and Config File Setup

KELLY David (NQ) david.kelly at ergon.com.au
Wed Jan 15 22:08:13 MET 2003



Jim

I have an ASP script that generates the html coded needed to display all
my targets in a similar diretory structure.  \servers\server1
\servers\server2
\routers\router1

Etc.  They are displayed using the treeview object so you can navigate
using a similar interface to windows explorer.  Makes it easier to view
the target that you want.  I can send screen shots if you want.

Dave

-----Original Message-----
From: Jim Witherell [mailto:jwitherell at us.ibm.com] 
Sent: Thursday, 16 January 2003 3:00 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Suggested Web Subdirectories and Config File Setup




Hello, all! This question is not to fix a problem or to get something to
work. Instead, I am looking at how best to organize my output
directories and do my configuration files, mainly so it's easier to find
the pages I want. I realize that the program runs just fine any way you
do it. My goal is to end up with something logical that is easy for
someone else to come in behind me and see how I set it up, and easier to
dig through all these files and find what I need, even if I don't quite
know what I'm looking for yet...

I'm hoping you can tell me how you have yours set up, and maybe some
reasons why you chose to do it that way. I think having your viewpoint
and opinions will help me decide how I should do it, or if I'm already
making a mistake that will cause me to reconstruct this again later on.

So you know where I'm coming from... I've used MRTG (2.9.22) for a short
time (less than a year) on a Win2000 PC. I want to move it to Redhat8.0,
and maybe figure out how to use RRDtool (to speed up the routine,
correct?). Right now, I watch 10 switches and routers. I want to expand
that quite a bit, up to possibly 50 devices. I'm thinking if I grow it
that far, my Pentium II PC may have a tough time keeping up with it.
Maybe you have some advice on horsepower, memory, disk? I'm not a
programmer, just your average over-subscribed network guy trying to look
farther into my network than I do now.

ON OUTPUT PAGE LOCATION
First, on my output files, I have them all in my web server's /mrtg
directory (so I open my browser and go to http://web.internal.com/mrtg
and all the files are there). One reason I don't like this is that all
my switches, routers and everything are all thrown into this directory,
and I don't have a good index system set up yet.

I was thinking maybe the thing to do is create a subdirectory for each
device underneath the main /mrtg  directory. For example, the pages for
"router21" would be at http://web.internal.com/mrtg/router21 , and
switch47 would be at http://web.internal.com/mrtg/switch47. Something I
wondered is if it may be nice to have /mrtg/router, /mrtg/switch,
/mrtg/ups and /mrtg/misc directories. This would help keep everything in
nice, neat categories.

Could you speak to how you thought through your file structure and set
it up? Maybe there's reasons why doing this subdirectory stuff would end
up being a pain...

ON CONFIG FILE SETUP
Secondly, regarding the config file, I set my "master.cfg" file to just
list the global settings, and then I use the "Include" command to
reference each devices' individual config file. I did that to avoid
having to change much in master file. Also seemed less risky to add a
new config file when I add devices. Less chances of screwing up other
configs.

Along with that, do you keep your config files in the MRTG directory
with the other MRTG required files, or do you hold your config file(s)
in a separate directory?

Thanks for whatever thoughts you can give me!

Jim Witherell
Network Specialist                        --Live Intentionally--
IBM Global Services
513.425.3483




--
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 e-mail (including any attachments) may contain confidential or
privileged information and is intended for the sole use of the person(s) to
whom it is addressed. If you are not the intended recipient, or the person
responsible for delivering this message to the intended recipient, please
notify the sender of the message or send an e-mail to
mailto:help.desk at ergon.com.au immediately, and delete all copies. Any
unauthorised review, use, alteration, disclosure or distribution of this
e-mail by an unintended recipient is prohibited. Ergon Energy accepts no
responsibility for the content of any e-mail sent by an employee which is of
a personal nature.

Ergon Energy Corporation Limited      ABN 50 087 646 062
Ergon Energy Pty Ltd      ABN 66 078 875 902

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