How to monitor Real time bandwidth - bmon tool
To monitor bandwidth time using bmon tool
Bandwidth leakage will impact a delay response from any running application. Bmon or Bandwidth Monitoring tool is used for debugging and monitoring bandwidth. It retrieves statistics from other input modules. This article guides with the installation of bmon tool.
To Install bmon
Before installing bmon, install the wajig package by using the following command.
root@user1:~# apt-get install wajig Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: aptitude aptitude-common libcwidget3v5 Suggested packages: apt-xapian-index aptitude-doc-en | aptitude-doc debtags tasksel libcwidget-dev reportbug apt-move dpkg-repack alien apt-file deborphan vrms apt-show-versions dctrl-tools debsums netselect-apt chkconfig The following NEW packages will be installed: aptitude aptitude-common libcwidget3v5 wajig 0 upgraded, 4 newly installed, 0 to remove and 268 not upgraded. Need to get 2,383 kB of archives. After this operation, 10.1 MB of additional disk space will be used. Do you want to continue? [Y/n] y . . update-alternatives: using /usr/bin/aptitude-curses to provide /usr/bin/aptitude (aptitude) in auto mode Setting up wajig (2.17) ... Processing triggers for libc-bin (2.23-0ubuntu3) ...
Now install the bmon using wajig command.
root@user1:~# wajig install bmon Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libconfuse-common libconfuse0 libnl-route-3-200 The following NEW packages will be installed: bmon libconfuse-common libconfuse0 libnl-route-3-200 0 upgraded, 4 newly installed, 0 to remove and 268 not upgraded. Need to get 193 kB of archives. After this operation, 745 kB of additional disk space will be used. Do you want to continue? [Y/n] y . . Setting up libconfuse0:amd64 (2.7-5) ... Setting up libnl-route-3-200:amd64 (3.2.27-1) ... Setting up bmon (1:3.8-2build1) ... Processing triggers for libc-bin (2.23-0ubuntu3) ...
To launch bmon
Once the installation is completed, run bmon.
root@user1:~# bmon
Bmon graph is divided into the following parts
The first row &rarr displays the available interfaces, receive and transfer transmits. This rows is portrayed by the letter l meaning list view.
The second row &rarr displays the graphical statistics. If the graph is not visible, then hit g.
The third row &rarr displays the full statistics of the receive and transfer activity.
The fourth row &rarr displays any miscellaneous additional information.
bmon operates with the cursor mode by default.
To Set input modules
Use -i option to define modules in bmon.
root@user1:~# bmon -i proc
To know more input modules hit question mark button (?)
To Set output modules
Use -o option to set the output modules.
root@user1:~# bmon -o ascii
Interfaces RX bps pps % TX bps pps %
lo 0 0 0 0
qdisc none (noqueue) 0 0 0 0
ens33 0 0 0 0
qdisc none (pfifo_fast) 0 0 0 0
Interfaces RX bps pps % TX bps pps %
lo 0 0 0 0
qdisc none (noqueue) 0 0 0 0
ens33 0 0 0 0
qdisc none (pfifo_fast) 0 0 0 0
Interfaces RX bps pps % TX bps pps %
lo 0 0 0 0
qdisc none (noqueue) 0 0 0 0
ens33 0 0 0 0
qdisc none (pfifo_fast) 0 0 0 0 . . .
To set specific interface
Use -p option to set a specific interfaces.
root@user1:~# bmon -p ens33
To set read interval
To alter the read interval in bmon, use -r option.
By default, Bmon displays the status for every 1 seconds
root@user1:~# bmon -r 10
utilise the following command to know more about bmon.
root@user1:~# bmon --help
# yum install git autoconf automake gcc
1- Start by creating new contact definitions for your client, for example: contact_name user1.
2- Then create contact groups or you can add the new contact for you existing group, depending on the checks that you want to permit.
3- Closely use the new Contact Group with customers email and your main admin. Note you can either use existing Host Groups or create new HostGroups if you choose to.
4- Finally, add htaccess user to your htpasswd file (htpasswd.users), it important that the username matches the name on your Contact(user1).
git clone https://github.com/tgraf/bmon.git
cd bmon
yum install make libconfuse-devel libnl3-devel libnl-route3-devel ncurses-devel
./autogen.sh
./configure
make
make install
bmon