Squid Graph - Organisasi Radio Wifi Kuningan (ORWIN) | Situs Tutorial Mikrotik Dan Proxy | Indonesia
News Update
Loading...

Saturday, August 6, 2011

Squid Graph


Squid Graph is a free, simple, yet powerful Squid v2 native logfile analysis tool that generates reports with graphical representation of the proxy server’s traffic.

langsung saja buka konsol ubuntu mu :

apt-get install libgd-gd2-perl

kemudian download file ini yang merupakan source dari squid-graph

wget http://biznetnetworks.dl.sourceforge.net/project/squid-graph/squid-graph/3.2/squid-graph-3.2.tar.gz

terus di extrac

tar xzvf squid-graph-3.2.tar.gz -C /etc/init.d/

terus permision digoyang dikit

chmod +x /etc/init.d/squid-graph/*

buat html di directory root

cd /var/www
mkdir squid-graph

jalankan perintah unutuk menjalankan squid-graph nya :

cd /etc/init.d/squid-graph

./squid-graph --tcp-only -n -o=/var/www/squid-graph/ --title="proxy" < /var/log/squid/access.log

sebenarnya pada tahapan diatas sudah selesai,namun untuk automatisasi perintah squid-graph perlu dilakukan setiap 5 menit sekali

contoh bikin crontab update setiap 5 menit
Code:

crontab -e
*/5 * * * * /etc/init.d/squid-graph/squid-graph --tcp-only -n -o=/var/www/squid-graph/ --title="proxy" < /var/log/squid/access.log

Share with your friends

Give us your opinion

Notification
This is just an example, you can fill it later with your own note.
Done