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.


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


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

About 3wahyua

Islam is my way

Posted on June 9, 2010, in Uncategorized. Bookmark the permalink. 4 Comments.

  1. mantap … thanks gan…

  2. 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.

  1. Pingback: install (pasang) squidgraph pada proxy | FOSS Universitas Jember

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: