Las herramientas de monitoreo “live” nos permiten hechar un vistazo a las tripas de nuestro server/red/algo que necesitemos apreciar desde un punto de vista más informativo y especialmente enfocando sus posibles interrelaciones con otros factores.
El viejo top y netstat son un par de las primeras que se usan cuando un caso como el anterior se presenta, sin embargo la cosecha de herramientas de monitoreo para S.O. tipo *nix es tan variada como variadas son las necesidades de sus usuarios. Los datos que siguen fueron fielmente copiados de Planet Malasya Blog y son un listado bastante bueno de algunas herramientas de monitoreo en vivo no tan conocidas y sus características y utilidad consecuente.
ibmonitor
It is an interactive linux console application which shows bandwidth consumed and total data transferred on all interfaces. Its main features are:
- Shows received, transmitted and total bandwidth of each interface
- Calculates and displays the combined value of all interfaces
- Displays total data transferred per interface in KB/MB/GB
- Values can be displayed in Kbits/sec(Kbps) and/or KBytes/sec(KBps)
- Can show maximum bandwidth consumed on each interface since start of utility
- Can show average bandwidth consumption on each interface since start of utility
- The output with all features (max, avg and display in Kbps and KBps) easily fits on a 80×24 console or xterm
- Can interactively change its output display format depending on key pressed by user.
Download latest version of ibmonitor (I guess long time no update last release is 19th December 2004)
[root@planetmy]# tar xvfz ibmonitor-1.3.tar.gz
[root@planetmy]# cd ibmonitor
[root@planetmy]# ./ibmonitor
BandwidthD
Tracks usage of TCP/IP network subnets and builds html files with graphs to display utilization. Charts are built by individual IPs, and by default display utilization over 2 day, 8 day, 40 day, and 400 day periods. Furthermore, each ip address’s utilization can be logged out at intervals of 3.3 minutes, 10 minutes, 1 hour or 12 hours in cdf format, or to a backend database server. HTTP, TCP, UDP, ICMP, VPN, and P2P traffic are color coded.
Download bandwidthd
[root@planetmy]# tar xvfz bandwidthd-2.0.1.tgz
[root@planetmy]# cd bandwidthd
Configure and install the Bandwidthd source:
[root@planetmy]# ./configure && make install
Please make sure you have:
libpcap from http://www.tcpdump.org/
libpng from http://www.libpng.org/
libgd from http://www.boutell.com/gd/
Edit /usr/local/bandwidthd/etc/bandwidthd.conf
to suit your network environment.
Start Bandwidthd
/usr/local/bandwidthd/bandwidthd
Point your Apache Virtual Host to
/usr/local/bandwidthd/htdocs for browse
the bandwidthd graph.
Note: The installation guide below running either with RHEL3/4 and FC4.
(——- Second Part)
A. tcptrack
is a sniffer which displays information about TCP connections it sees on a network interface. It passively watches for connections on the network interface, keeps track of their state and displays a list of connections in a manner similar to the unix ‘top’ command. It displays source and destination addresses and ports, connection state, idle time, and bandwidth usage.
[root@planetmy download]#wget
http://www.rhythm.cx/~steve/devel/tcptrack/release/1.1.5/source/tcptrack-1.1.5.tar.gz
[root@planetmy download]#tar xvfz tcptrack-1.1.5.tar.gz
[root@planetmy download]#cd tcptrack-1.1.5
[root@planetmy tcptrack-1.1.5]#./configure
[root@planetmy tcptrack-1.1.5]#make
[root@planetmy tcptrack-1.1.5]#make install
#(I skip this step)
[root@planetmy tcptrack-1.1.5]#cd src
[root@planetmy tcptrack-1.1.5]#./tcptrack -i eth0
[root@planetmy tcptrack-1.1.5]#./tcptrack -i eth0 port 443
[root@planetmy tcptrack-1.1.5]#
./tcptrack -i eth0 src 10.10.10.1
[root@planetmy tcptrack-1.1.5]#
./tcptrack -i eth0 dst 10.10.10.1
B. pktstat
display a real-time list of active connections seen on a network interface, and how much bandwidth is being used by what. Partially decodes HTTP and FTP protocols to show what filename is being transferred. X11 application names are also shown. Entries hang around on the screen for a few seconds so you can see what just happened. Also accepts filter expressions á la tcpdump.
[root@planetmy download]#wget
http://www.adaptive-enterprises.com.au/~d/software/pktstat/pktstat-1.8.1.tar.gz
[root@planetmy download]#tar xvfz pktstat-1.8.1.tar.gz
[root@planetmy download]#cd pktstat-1.8.1
[root@planetmy pktstat-1.8.1]#./configure
[root@planetmy pktstat-1.8.1]#make
[root@planetmy pktstat-1.8.1]#make install
#(I skip this step)
[root@planetmy pktstat-1.8.1]#./pktstat
[root@planetmy pktstat-1.8.1]#./pktstat -i eth0
[root@planetmy pktstat-1.8.1]#./pktstat –help
C. bwm-ng – Bandwidth Monitor NG
is a small and simple console-based live bandwidth monitor for Linux, BSD, Solaris, Mac OS X and others.
[root@planetmy download]#wget
http://www.gropp.org/bwm-ng/bwm-ng-0.5.tar.gz
[root@planetmy download]#tar xvfz bwm-ng-0.5.tar.gz
[root@planetmy download]#cd bwm-ng-0.5
[root@planetmy bwm-ng-0.5]#./configure
[root@planetmy bwm-ng-0.5]#make
[root@planetmy bwm-ng-0.5]#make install
#(I skip this step)
[root@planetmy bwm-ng-0.5]#cd src
[root@planetmy bwm-ng-0.5]#./bwm-ng -a
[root@planetmy bwm-ng-0.5]#./bwm-ng –help
D. iftop
display bandwidth usage on an interface. iftop does for network usage what top(1) does for CPU usage. It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts.
[root@planetmy download]#wget
http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz
[root@planetmy download]#tar xvfz iftop-0.17.tar.gz
[root@planetmy download]#cd iftop-0.17
[root@planetmy iftop-0.17]#./configure
[root@planetmy iftop-0.17]#make
[root@planetmy iftop-0.17]#make install
#(I skip this step)
[root@planetmy iftop-0.17]#./iftop -B -P -i eth0
[root@planetmy iftop-0.17]#./iftop –help
E. Speedmeter
monitor network traffic or speed/progress of a file transfer.
Download and install Urwid (recommended)
[root@planetmy download]#wget
http://excess.org/urwid/urwid-0.9.5.tar.gz
[root@planetmy download]#tar xvfz urwid-0.9.5.tar.gz
[root@planetmy download]#cd urwid-0.9.5
[root@planetmy urwid-0.9.5]#python setup.py install
[root@planetmy download]#wget
http://excess.org/speedometer/speedometer.py
[root@planetmy download]#
cp speedometer.py /usr/local/bin/speedometer
[root@planetmy download]#cd /usr/local/bin
[root@planetmy bin]#chown root: speedometer
[root@planetmy bin]#chmod 755 speedometer
[root@planetmy download]#cd /usr/local/bin
[root@planetmy bin]#./speedometer.py -rx eth0 -tx eth0
[root@planetmy bin]#./speedometer.py –help
F. CBM
the color bandwidth meter. CBM is a small program to display the traffic currently flowing through your network devices.
you may require xmlto for cbm to work
[root@planetmy download]#wget
http://cyberelk.net/tim/data/xmlto/stable/xmlto-0.0.18.tar.bz2
[root@planetmy download]#tar xvfj xmlto-0.0.18.tar.bz2
[root@planetmy download]#cd xmlto-0.0.18
[root@planetmy xmlto-0.0.18]#./configure
[root@planetmy xmlto-0.0.18]#make
[root@planetmy xmlto-0.0.18]#make install
[root@planetmy download]#wget
http://www.isotton.com/utils/cbm/download/cbm-0.1.tar.gz
[root@planetmy download]#tar xvfz cbm-0.1.tar.gz
[root@planetmy download]#cd cbm-0.1
[root@planetmy cbm-0.1]#./configure
[root@planetmy cbm-0.1]#make
[root@planetmy cbm-0.1]#make install
[root@planetmy cbm-0.1]#/usr/local/bin/cbm