IGOS Nusantara dan vnStat
Dari IGNwiki
Daftar isi
vnStat
Pasang vnStat
# yum install -y vnstat
Jalankan
Jika memiliki eth0 dan eth1, lakukan:
# vnstat -u -i eth0 # vnstat -u -i eth0
Aktifkan vnstat
# /etc/init.d/vnstat start
vnStat PHP Frontend
Pasang vnStat PHP Frontend
Hasil vnStat dapat ditampilkan melalui web memakai vnStat PHP Frontend [1]
# wget http://www.sqweek.com/sqweek/files/vnstat_php_frontend-1.5.1.tar.gz # tar xvf vnstat_php_frontend-1.5.1.tar.gz -C /var/www # cd /var/www # mv vnstat_php_frontend-1.5.1/ vnstat
Konfigurasi /var/www/vnstat/config.repo
$locale = 'en_US.UTF-8'; $language = 'en'; // list of network interfaces monitored by vnStat $iface_list = array('eth0', 'eth1'); // optional names for interfaces // if there's no name set for an interface then the interface identifier // will be displayed instead $iface_title['eth0'] = 'eth0'; $iface_title['eth1'] = 'eth1';
Konfigurasi /etc/httpd/conf.d/vnstat.conf
# Berkas: /etc/httpd/conf.d/vnstat.conf Alias /vnstat /var/www/vnstat <Directory /var/www/vnstat> Order Deny,Allow Deny from all #Allow from 127.0.0.1 Allow from all </Directory>
Tampilkan
Jalankan peramban (browser) lalu akses http://ipku/vnstat
Tautan:
[1] http://www.sqweek.com/sqweek/index.php?p=1