Code 64 Bicth - This time will share how to monitor bandwidth vps with VNSTAT, this tutorial is very easy to please try this tutorial on your vps
1. install VNSTAT
1. install VNSTAT
VNSTAT install with the following command
2. service to VNSTATwget http://humdi.net/vnstat/vnstat-1.11.tar.gz
tar xzvf vnstat-1.11.tar.gz
cd vnstat-1.11
yum -y install gcc*
make
make install
then download and install the daemon
cd / etc / init.d
wget http://humdi.net/vnstat/init.d/centos/vnstat
chmod a + x vnstat
chkconfig - add vnstat
if you use a KVM XEN virtualization does not need to do this
but if you are using openvz adjust inteface vnstat
edit: the following section
nano /etc/vnstat.confup to want to use the same vim or nano
Interface "eth0" turned into Interface "venet0"
if we have to change check whether the service is already running what has not
type the following command
service vnstat start
service vnstat stop
service vnstat restart
4. Vnstat GUI via php
make sure php is installed
make sure php is installed
then we enter into vnstat vnstat php frontendyum -y install php php-pear
follow command
cd
wget http://www.sqweek.com/sqweek/files/vnstat_php_frontend-1.5.1.tar.gz
tar xzvf vnstat_php_frontend-1.5.1.tar.gz
cd vnstat_php_frontend-1.5.1
mkdir /var/www/html/vnstat
cp -r . /var/www/html/vnstat
cd /var/www/html/vnstat
edit config
enter the following command:
nano config.php
Edit config.php,
Network switch interfaces to venet0
then edit this section also
Network switch interfaces to venet0
then edit this section also
$language = 'en';
$iface_list = array('venet0', 'sixxs');
$iface_title['venet0'] = 'Internal';
$data_dir = '/var/lib/vnstat/';
completed
reboot your VPS
reboot
how to check ip vps VNSTAT to open in the browser and ends / vnstat
example
192.168.1.1/vnstat
example
192.168.1.1/vnstat
0 Response to "How to Install VNSTAT for monitoring bandwidth VPS"
Post a Comment