Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => Linux Servers Support => Topic started by: shani on February 07, 2006, 12:01:51 PM

Title: MRTG and SNMP
Post by: shani on February 07, 2006, 12:01:51 PM
Hi All

i want to setup MRTG on my Fedora core 4 machine
i have two networks one eth0 for lan
and one eth1 for external link
kinldly give me easy how to as i have already searched for
it but i did't find anything special which guide me properly.

thanks in advance for your help!!!!!!!!

thanks
Shan
Title: MRTG and SNMP
Post by: Ricky on February 10, 2006, 12:02:08 PM
Well.. there is automated script to install mrtg ..

Do following while you are connected to internet :
Code: [Select]
wge*t http://www.web4host.net/tools/install.mrtg.sh
    chmod +x install.mrtg.sh
    ./install.mrtg.sh


then run following command
Code: [Select]

env LANG=C /usr/local/mrtg-2/bin/mrtg/var/www/html/mrtg/core/mrtg.cfg


after that.. to access mrtg just type

http://serverip/mrtg
Title: MRTG and SNMP
Post by: shani on March 02, 2006, 12:02:23 PM
Hi Ricky,

this link is not working.

wge t http://www.web4host.net/tools/install.mrtg.sh

thanks
shani
Title: MRTG and SNMP
Post by: Ricky on March 02, 2006, 08:51:19 PM
Well. . for security reason wge*t can't be used here  , its actually you to remove the asteriek and the use it.

All files and links are are working . I have checked.
Title: MRTG and SNMP
Post by: shani on March 03, 2006, 07:53:51 AM
thanks ricky its working.

SHani
Title: MRTG and SNMP
Post by: shani on March 03, 2006, 07:58:32 AM
one question more

is there any space in the followiing command

env LANG=C /usr/local/mrtg-2/bin/mrtg/var/www/html/mrtg/core/mrtg.cfg

As when i gave this command it said that there is no such directory found.

regards
SHANI
Title: MRTG and SNMP
Post by: shipoin_97 on April 12, 2006, 07:48:45 AM
Dear Ricky ,

  Use the following command ,
Do following while you are connected to internet :
Code:
wge*t http://www.web4host.net/tools/install.mrtg.sh
    chmod +x install.mrtg.sh
    ./install.mrtg.sh


then run following command
Code:

env LANG=C /usr/local/mrtg-2/bin/mrtg/var/www/html/mrtg/core/mrtg.cfg


after that.. to access mrtg just type

http://serverip/mrtg



I run my mrtg perfectly . But  i have two question :

 1) Is this MRTG is for my Machine's IP ?

 2)  suppose i  have a cisco swich .  A client network is connected  via this switch port where it's IP is suppose 192.168.10.2 .  In another port (port 3)  my linux server
is connected where my IP is 192.168.10.3 . In this moment i want to see the Network Traffic or Bandwidth of my client's Network(192.168.10.2) . For this reason is any change is need to make in the above configuration ?


plz help ...........
Title: MRTG and SNMP
Post by: Ricky on April 12, 2006, 06:23:05 PM
yes this is your machines traffic graph.

well to see traffic for that particular machine you have to install mrtg on it also.