| MRTG Implementation Manual
Table of Contents |
||||
|
3. Configuring MRTG tasks
3.1 Building the “.cfg” configuration files A .cfg file is required for each monitored host or a global .cfg file can be used for all monitored hosts, but the flexibility will decrease. A .cfg file defines the SNMP OIDs for each entity that you intend to monitor from the destination host. MRTG parses the associated .cfg file and collects the SMNP values for all OIDs defined in the .cg file. To build a .cfg file run the “CFGMAKER” script, which resides in the \mrtg\bin\ directory. This script scans a host for the network-interfaces only and constructs the .cfg file The syntax is: perl cfgmaker [options] [community@]router1 [[options] [community@]router2 ... ] The CFGMAKER options are:
Once the .cfg file has bee constructed, the following
folder options must be added to the file:
Workdir: c:\inetpub\10.0.0.1\
The PNG graphs are growing by default from right
to left and are represented in Bytes/sec.
Options[_]: growright, bits
CFGMAKER Example Here is a CFGMAKER usage example and the resulted
.cfg file:
3.2 Building the “index.html” files The HTML index files are being built based on the previously created .cfg file. The role of the index.html file is to put together the html links to the individual network interfaces that are being monitored. The index file is created by INDEXMAKER script.
perl indexmaker [options] [.cfg file] The options are:
Example: perl indexmaker --output d:\mrtg\10.1.1.10.index
--compact d:\mrtg\10.1.1.10.cfg
After proceeding with the previous steps, the current MRTG status should be: a. Perl, MRTG and the WebServer are installed.
d. Next step: Get the MRTG process running and visualize
the variation graphs.
|