Squid Graph installation in Ubuntu Server
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 apt-get install apache2 perl
2 apt-get install libgd-gd2-perl
3 go to /tmp directory and download squid-graph source code
4 wget http://biznetnetworks.dl.sourceforge.net/project/squid-graph/squid-graph/3.2/squid-graph-3.2.tar.gz
5 unzip squid-graph-3.2
6 tar xzvf squid-graph-3.2.tar.gz -C /etc/init.d/
7 go to /etc/init.d/ and change permission of squid-graph folder
8 chmod +x /etc/init.d/squid-graph/*
9 go to /var/www and make director squid-graph
10 go to /etc/init.d/squid-graph and run command.
11 ./squid-graph --tcp-only -n -o=/var/www/squid-graph/ --title="proxy" < /var/log/squid/access.log
12 edit crontab with crontab -e and set schedule
13 */5 * * * * /etc/init.d/squid-graph/squid-graph --tcp-only -n -o=/var/www/squid-graph/ --title="proxy" < /var/log/squid/access.log
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 apt-get install apache2 perl
2 apt-get install libgd-gd2-perl
3 go to /tmp directory and download squid-graph source code
4 wget http://biznetnetworks.dl.sourceforge.net/project/squid-graph/squid-graph/3.2/squid-graph-3.2.tar.gz
5 unzip squid-graph-3.2
6 tar xzvf squid-graph-3.2.tar.gz -C /etc/init.d/
7 go to /etc/init.d/ and change permission of squid-graph folder
8 chmod +x /etc/init.d/squid-graph/*
9 go to /var/www and make director squid-graph
10 go to /etc/init.d/squid-graph and run command.
11 ./squid-graph --tcp-only -n -o=/var/www/squid-graph/ --title="proxy" < /var/log/squid/access.log
12 edit crontab with crontab -e and set schedule
13 */5 * * * * /etc/init.d/squid-graph/squid-graph --tcp-only -n -o=/var/www/squid-graph/ --title="proxy" < /var/log/squid/access.log

No comments:
Post a Comment