• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..15-Nov-2011-

READMEH A D26-Feb-20023.1 KiB6048

RUN_builder.batH A D26-Feb-2002108 53

RunCcfgs.cmdH A D26-Feb-2002237 126

builder.batH A D26-Feb-2002423 1914

default.aspH A D26-Feb-20021.1 KiB3933

make_all_cisco_configs.batH A D26-Feb-2002217 114

nt_template.cfgH A D26-Feb-200210.1 KiB229165

queryone.batH A D26-Feb-2002123 127

README

1From: CmdrData <CmdrData@ex-pressnet.com>
2Subject: mrtg for nt and cisco
3
4I have been using MRTG running on Windows  NT now for a few months and find
5it to be pretty cool.  Thanks so much for making a free tool.
6
7The first time I installed it was on a Proliant 2500 w/ dual 200 Mhz CPUs ,
8and the setup was sloppy b/c I was learning how to run the program and make
9the config files, programatically.  The setup I had was less than ideal.
10
11So I built a new Proliant 6500 w/ 4 x 200 Mhz CPUs and 3/4 GB RAM and
12hardware RAID5 using 6 drives a couple of months later.  I also install
13Microsoft SQL server and IIS on the box.  What I now have is an mrtg
14database in sql wh/ has 2 tables 1 for NT devices and 1 for Cisco Devices.
15The main web page I use has 2 combo boxes which load from these table
16devices descriptors which are names and not ips.
17
18The main reason I used sql was so the web page would get auto updated when a
19devices was added and also so I could automate the configuration file
20creation and the list of devices it choose to poll.  I made a DTS package in
21sql which every 2 hours dumps parts of the two tables to text files (the sql
227.0 DTS wizard for this makes it easy to dump parts of a table to a file).
23these 2 files are used to update all the configs every 12 hours.  To
24accomplish this I had to write a bunch of batch files that would read text
25file input and do some very repeatable tasks.  I also set a few environment
26variables to make the writing and reading easier.
27
28Since your site was very useful in getting me started I wanted to give a
29little back.  I have attached a few nt batch files which would be useful for
30anyone trying to set it up on NT.  I still have more automating to do like
31making the default.asp page without needing hand editing, and I haven't
32automated the ntconfig process.  But right now to add cisco devices  all I
33need to do is add a record to a database!  I am using this setup to monitor
34about 2700 + ports on mainly catalyst 6500's right now and it finishes its
35polling cycle in about 4 minutes.  The machine seems to be cpu and disk
36bound.  Quad 450's would be better and a raid with more drive heads would
37also be better.  I used the START command with the /BELOWNORMAL switch in a
38couple of places to allow the OS to jump in if it needs to b/c the CPU rides
39at about 99-100% for most of the 4 minutes.  SQL is not needed to make use
40of the attached scripts.  The files just contain 3 items, name (wh/equals
41part of the workdir path), comm str and IP [or netbiosname].
42
43I also had to hunt around for the nt info and put it in to one file which
44you can do a find and replace on to customize what nt targets you poll.
45
46Feel free to post these files if you like.
47
48What I still have not figured out is how to get the detailed port
49description to be used instead of the ifIndexs.  The post you have on this
50doesn't work with the port for NT and I don't know Perl.  If you have any
51suggestions on this I would appreciate it.  I tried to compare the mrtg file
52from the nt port and the hack and the files were too different for me to
53splice together without real knowlegde of perl, etc.
54
55Anyhow love the app.  I work for a web hosting company.
56
57thanks,
58
59-Jon
60