IFTop


IFTop
IFTop is similar to top, but instead of mainly checking for cpu usage it listens to network traffic on selected network interfaces and displays a table of current usage iftop monitors to network traffic and displays a table of current bandwidth usage. An interface may be specified or, if not, it will listen on the first interface it finds which looks like an external interface. iftop must be run with sufficient permissions to monitor all network traffic; on most systems this means that it must be run as a root user, see sudo.

Requirements
libpcap
libcurses

Download Links
http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz
http://ex-parrot.com/pdw/iftop/download/iftop-1.0pre4.tar.gz

Output Details
chaitanya-GA-78LMT-S2 ~ # iftop
interface: eth0
IP address is: 10.7.70.12
MAC address is: 94:de:80:32:a9:46

iftop_normal

iftop_ports

IFTop Help
Press h For Help

help

IFTop Options
-h
Print a summary of usage.

-n
Dont do hostname lookups.

-N
Do not resolve port number to service names

-p
Run in promiscuous mode, so that traffic which does not pass directly through the specified interface is also counted.

-P
Turn on port display.

-l
Display and count datagrams addressed to or from link-local IPv6 addresses.  The default is not to display that address category.

-b
Dont display bar graphs of traffic.

-m limit
Set the upper limit for the bandwidth scale.  Specified as a number with a ‘K’, ‘M’ or ‘G’ suffix.

-B
Display bandwidth rates in bytes/sec rather than bits/sec.

-i interface
Listen to packets on interface.

-f filter code
Use filter code to select the packets to count. Only IP packets are ever counted, so the specified code is evaluated  as  (filter
code) and ip.

-F net/mask
Specifies  an IPv4 network for traffic analysis.  If specified, iftop will only include packets flowing in to or out of the given
network, and packet direction is determined relative to the network boundary, rather than to the interface.  You may specify mask
as a dotted quad, such as /255.255.255.0, or as a single number specifying the number of bits set in the netmask, such as /24.

-G net6/mask6
Specifies  an  IPv6  network  for  traffic analysis. The value of mask6 can be given as a prefix length or as a numerical address
string for more compound bitmasking.

-c config file
Specifies an alternate config file.  If not specified, iftop will use ~/.iftoprc if it exists.  See below for  a  description  of
config files

-t text output mode
Use text interface without ncurses and print the output to STDOUT.

Advertisements

Cacti Installation For Ubuntu


Cacti
Cacti is an open source web based network monitoring tool front-end for the data logging tool called RRDtool. It’s allow users to check the services at an interval of time and resulting in the graph format

Manual Installation Of Cacti
Updating System
sudo apt-get update

Installation Apache, Mysql, PHP
sudo apt-get install apache2 mysql-server php5 libapache2-mod-php5

Installation RRDtools
sudo apt-get -y install rrdtool

Installion of SNMP & SNMPd
sudo apt-get -y install snmp snmpd

Installation Cacti & Spine
sudo apt-get -y install cacti cacti-spine

Configuring PHP & Click OK

1

Configuring Cacti Web Server, Select Apache2 & Click OK

4

Configuring Database for Cacti & Click YES

2

Root Password of Mysql Database
Type Password

3

Configuring Cacti
http://localhost/cacti

Click Next

5

New Installation & Click Next

installation

Click Finish

6

Default Username & Password admin
Next Enter a New Password

8

After login to Cacti you will get the Cacti Page Console
Graphs Options

9

Console
Cacti Settings
Poller, Change the poller Type from comd.php to Spine

spine

Click on Graphs you will get Localhost Graphs will be Displayed

10