November 23, 2024, 04:28:45 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: MRTG and SNMP  (Read 7716 times)

Offline shani

  • Tux Awared
  • **
  • Posts: 36
MRTG and SNMP
« 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

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
MRTG and SNMP
« Reply #1 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

Offline shani

  • Tux Awared
  • **
  • Posts: 36
MRTG and SNMP
« Reply #2 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

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
MRTG and SNMP
« Reply #3 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.

Offline shani

  • Tux Awared
  • **
  • Posts: 36
MRTG and SNMP
« Reply #4 on: March 03, 2006, 07:53:51 AM »
thanks ricky its working.

SHani

Offline shani

  • Tux Awared
  • **
  • Posts: 36
MRTG and SNMP
« Reply #5 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

Offline shipoin_97

  • Tux Awared
  • **
  • Posts: 44
MRTG and SNMP
« Reply #6 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 ...........

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
MRTG and SNMP
« Reply #7 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.