Monitoring Squid with 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.
1. you must have proxy server with squid.
2. to install Squid-Graph we need perl and gd module.
apt-get install libgd-gd2-perl
3. we must download Squid-Graph source. we can download with wget or download this earlier.
wget http://biznetnetworks.dl.sourceforge.net/project/squid-graph/squid-graph/3.2/squid-graph-3.2.tar.gz
4. extract Squid-graph
tar xzvf squid-graph-3.2.tar.gz -C /etc/init.d/
5. add execute permission
chmod +x /etc/init.d/squid-graph/*
6. make html direktory in document root (default : /var/www)
cd /var/www mkdir squid-graph
7.
cd /etc/init.d/squid-graph
./squid-graph --tcp-only -n -o=/var/www/squid-graph/ --title="proxy" < /var/log/squid/access.log
8. open the web browser , type http://yourip/squid-graph
9. add on crontab , Now we have made the crontab directly’ll update our needs, illustrate for updates once every 5 minutes.
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
original source
http://www.forummikrotik.com/software/12520-squid-share-tool-monitoring-squid-dengan-squid-graph.html
Posted on June 9, 2010, in Uncategorized. Bookmark the permalink. 4 Comments.
mantap … thanks gan…
kenapa yach pas “./squid-graph” keluar
/var/log/squid/access.log: Permission denied
padahal sudah pake access root???
coba dilihat permisssion access.log pakai perintah ls. kemungkinan belum ada hak akses execute disitu.
tinggal ubah permissionnya pakai chmod aja.
Pingback: install (pasang) squidgraph pada proxy | FOSS Universitas Jember