![]() |
|
|
|
||||||||||
|
__________ __________ (for DNS server) __________ (for DNS server) __________ Net-Qmail Installation Powerful Linux E-mail Server _________ To install webmin in fedora core 3 __________ INSTALLATION OF MRTG & RRD TOOL (Fedora Core2/ Redhat 8/ 9) __________ __________ _________ __________ ISP Servers IPtables firewall setup __________ _________ Linux Base POP/ POP3 and SMTP traffic Virus and Spam Scanning/ filtering Firewall _________ _________ _________ Bonding / Binding Multiple interfaces into single interface _________ Use more than 1 DSL modems without noticing disconnectivity
_________
|
All configuration are working fine in live/ LAB environments INSTALLING MRTG: - (Fedora Core2 / Redhat 8)Download MRTG latest RPM
[root@mainserver
tmp]# cfgmaker --output=/etc/mrtg/mrtg.cfg --global "workdir:/var/www/mrtg"
-fref=ip \ --global
'options[_]: growright,bits' myserver@localhost ... ... --base:
Walking ifAdminStatus Note:
Using
the -ifref=ip
cfgmaker
command option instructs MRTG to use the interface's IP address as the
title for each graph. Unfortunately, this causes errors when Fedora Core
1 polls another Fedora Core 1 server; the errors prevent the graphs from
being created correctly. You can avoid this problem by removing the
option to get graph titles using the much less recognizable MAC address
of the interface. Troubleshooting
Tip:
As explained in the SNMP section, there are different versions of SNMP.
If your query doesn't work, check to make sure you are using the
required version and then check other SNMP configuration parameters on
the target device. You can specify MRTG's SNMP query version with the --snmp-options cfgmaker option.
Here is an example of cfgmaker using an SNMP version 2 query of a router with an IP address of
192.168.1.3. The --snmp-options option's five colons before the 2 are important. [root@mainserver
tmp]# cfgmaker --output=/etc/mrtg/192.168.1.3.cfg -ifref=ip --global
"workdir: var/www/mrtg" \ --snmp-options=:::::2
craz33guy@192.168.1.3 2.
Edit /etc/mrtg/mrtg.cfg,
and remove the sections related to interfaces you don't need to monitor.
A certain candidate would be the virtual loopback interface Lo:
(with the IP address of 127.0.0.1), which doesn't pass any network
traffic at all. 3.
Run MRTG
using /etc/mrtg/mrtg.cfg
as your argument three times. You'll get an error the two times as MRTG
tries to move old data files, and naturally, the first time it is run,
MRTG has no data files to move. [root@mainserver
tmp]# env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg 4.
Use
MRTG's indexmaker
command to create a Web index page using your new mrtg.cfg file as a guide. The MRTG Web GUI expects to find
the index file in the default MRTG Web directory of /var/www/mrtg/,
so the format of the command would be. [root@mainserver
tmp]# indexmaker --output=/var/www/mrtg/index.html \ /etc/mrtg/mrtg.cfg 5.
MRTG is
run every five minutes by default, and the file that governs this is /etc/cron.d/mrtg.
For MRTG to work correctly, edit this file, replacing all occurrences of
/usr/bin/mrtg
with env
LANG=C
/usr/bin/mrtg.
The explanation for changing the language character set for MRTG is
given in the "Troubleshooting MRTG" section. This
isn't all, you need to view the graphs too. This will be covered later,
but first I'll show you how to poll multiple devices.
-------------Configuration Complete-------------
INSTALLATION
OF RRD TOOL (Fedora Core 2)
Download
rrdtool tar file from http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-1.0.45.tar.gz cd
/usr/local/src wget
http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-1.0.45.tar.gz tar
zxvf rrdtool-1.0.45.tar.gz cd
rrdtool-1.0.45 sh
configure make make
install make site-perl-install
(its just a test directories some time these are usefull, So just
create them) mkdir /var/lib/rrd
mkdir /var/www/html/rrdtool
-------------Configuration Complete------------- |
|
||||||||
|
|
||||||||||