October 29, 2009

Monitoring Squid with Sqstat

Filed under: Linux, PHP&MYSQL

Memonitor access proxy server sangat di perlukan bagi para admin jaringan, bagitu pula anda saat ini menjadi administrator jaringan di sebuah warnet, instansi pemerintah, istitusi pendidikan maupun di sebuah RTRWNET. Jika anda mempercayakan squid sebagai proxy server anda, maka anda perlu menginstall program khusus untuk memonitor access pada proxy server anda.

Asumsi bahwa anda sudah memiliki proxy server yang sudah berjalan dengan baik & webserver yang juga sudah berjalan dengan baik. Sofware memonitoring access squid secara realtime ini bernama sqstat.

1.Download paket sqstat :

root@squid# wget http://samm.kiev.ua/sqstat/sqstat-1.20.tar.gz

2.Extract paket sqstat yg sudah kita download tadi :

root@squid# tar -zxvf sqstat-1.20.tar.gz

3.Pindahkan directory hasil extract tadi ke dalam path directory webserver
anda:

root@squid# mv sqstat-1.20 /var/www/html/sqstat

4.Konfig file config.inc.php di dalam directory sqstat

root@squid# cd /var/www/html/sqstat

root@squid:/var/wwww/sqstat# mv config.inc.php.defaults config.inc.php

root@squid:/var/wwww/sqstat# vi config.inc.php

ganti baris berikut

DEFINE("SQSTAT_SHOWLEN",60); menjadi

DEFINE("SQSTAT_SHOWLEN",100);

lalu simpan konfignya.

5.Edit Konfigurasi squid anda

root@squid:/var/wwww/sqstat# vi /usr/local/squid/etc/squid.conf

tambahkan baris berikut pada konfig squid anda:

acl manager proto cache_object

acl webserver src 192.68.1.1/255.255.255.240 ##Sesuaikan dengan ip webserver anda

http_access allow manager webserver

http_access deny manager

lalu simpan konfig anda.

6.Nah anda sudah selesai menginstall sqstat, sekarang tinggal di coba saja, buka

browser anda lalu akses http://localhost/sqstat/sqstat.php

Comments »

The URI to TrackBack this entry is: http://jeky466.blogsome.com/2009/10/29/monitoring-squid-with-sqstat/trackback/

yes

RSS feed for comments on this post.

allow a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.