[ask] monitoring squid proxy

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
Armstrong
Posts: 1
Joined: 12 May 2012, 12:12
Location: Medan

[ask] monitoring squid proxy

Postby Armstrong » 12 May 2012, 12:27

Salam kenal agan2 skalian...
saya newbie di linux dan sedang belajar membangun squid proxy..
untuk squid proxy sudah runing walaupun masih standard.
nah saat ini saya kesulitan untuk mengetahui perintah pada linux server untuk melihat peforma dari squid yg saya buat. sejauh ini saya hanya memantau dari "squidclient -h localhost -p 3128 mgr:info" dan "tail -f /var/log/squid/access.log"

saat baca2 di beberapa forum linux saya ada melihat postingan sperti dibawah ini :
Cache Clients:
Address: 192.168.5.30
Currently established connections: 51
ICP Requests 0
HTTP Requests 9756
TCP_HIT 740 8%
TCP_MISS 8256 85%
TCP_REFRESH_UNMODIFI 457 5%
TCP_REFRESH_MODIFIED 45 0%
TCP_IMS_HIT 119 1%
TCP_MEM_HIT 51 1%
TCP_DENIED 88 1%

nah kira kira perintah apa yg kita ketikan agar bisa menampilkan tampilan sperti diatas...
makasih sebelumnya gan.. :blush:
User avatar
thoriquez
Posts: 2
Joined: 15 May 2012, 10:26

Re: [ask] monitoring squid proxy

Postby thoriquez » 15 May 2012, 10:29

coba browse SARG deh gan .......
User avatar
l4ng1t
Posts: 62
Joined: 03 May 2011, 03:52
Contact:

Re: [ask] monitoring squid proxy

Postby l4ng1t » 15 May 2012, 15:05

info tersebut bisa di lihat via cachemgr.

apt-get install squid-cgi
User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Re: [ask] monitoring squid proxy

Postby yudiarbi » 17 May 2012, 03:03

install calamaris gan....
User avatar
adow
Posts: 4
Joined: 29 Apr 2010, 09:53

Re: [ask] monitoring squid proxy

Postby adow » 28 Oct 2012, 08:11

squidcliend jg bs gan
User avatar
bellec
Posts: 104
Joined: 04 Aug 2011, 02:07
Location: indonesia

Re: [ask] monitoring squid proxy

Postby bellec » 28 Oct 2012, 11:11

link cara insstall clamaris dimana bang yudiaarbi,
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: [ask] monitoring squid proxy

Postby q_p » 29 Oct 2012, 22:59

@allec :
Sambil nunggu juragan yudiarbi, saya coba bantu ya mas :

Code: Select all

apt-get install calamaris oops libgd-graph-perl libnetaddr-ip-perl
squid -k rotate
mkdir /var/www/calamaris
calamaris -a -F html /var/log/squid/access.log > /var/www/calamaris/index.html
U/ melihat report-nya browse ke URL "http://[ip server]/calamaris"
@yudiarbi : CMIIW
User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Re: [ask] monitoring squid proxy

Postby yudiarbi » 30 Oct 2012, 14:13

install dengan :

Code: Select all

apt-get install sarg calamaris libgd-graph-perl libnetaddr-ip-perl ttf-dustin

setting dengan :

Code: Select all

Setting CALAMARIS
# squid -k rotate
# mkdir /var/www/calamaris
# calamaris -a -F html /var/log/squid/access.log > /var/www/calamaris/index.html

Setting SARG
edit file /etc/sarg/sarg-reports.conf; rubah seperti dibawah ini (pada HTMLOUT)
Tampilkan
SARG=/usr/bin/sarg
CONFIG=/etc/sarg/sarg.conf
HTMLOUT=/var/www/squid-reports
PAGETITLE="Access Reports on $(hostname)"
LOGOIMG=/sarg/images/sarg.png
LOGOLINK="http://$(hostname)/"
DAILY=Daily
WEEKLY=Weekly
MONTHLY=Monthly
EXCLUDELOG1="SARG: No records found"
EXCLUDELOG2="SARG: End"

edit file /etc/sarg/sarg.conf; cari baris dan ubah menjadi :

Code: Select all

output_dir /var/www/squid-reports

Kemudian buat folder dan buat report

Code: Select all

# mkdir /var/www/squid-reports
# sarg-reports today

Memasukkan pada Crontab

Code: Select all

crontab -e

tambahkan di baris terakhir :
Tampilkan
* */6 * * * /usr/sbin/sarg-reports today
* */12 * * * calamaris -a -F html /var/log/squid/access.log > /var/www/calamaris/index.html

CMIIW.....
User avatar
rizaaal
Posts: 1212
Joined: 01 May 2011, 16:02
Location: Bekasi, Indonesia
Contact:

Re: [ask] monitoring squid proxy

Postby rizaaal » 30 Oct 2012, 22:02

[quote=yudiarbi]install dengan :

Code: Select all

apt-get install sarg calamaris libgd-graph-perl libnetaddr-ip-perl ttf-dustin

setting dengan :

Code: Select all

Setting CALAMARIS
# squid -k rotate
# mkdir /var/www/calamaris
# calamaris -a -F html /var/log/squid/access.log > /var/www/calamaris/index.html

Setting SARG
edit file /etc/sarg/sarg-reports.conf; rubah seperti dibawah ini (pada HTMLOUT)
Tampilkan
SARG=/usr/bin/sarg
CONFIG=/etc/sarg/sarg.conf
HTMLOUT=/var/www/squid-reports
PAGETITLE="Access Reports on $(hostname)"
LOGOIMG=/sarg/images/sarg.png
LOGOLINK="http://$(hostname)/"
DAILY=Daily
WEEKLY=Weekly
MONTHLY=Monthly
EXCLUDELOG1="SARG: No records found"
EXCLUDELOG2="SARG: End"

edit file /etc/sarg/sarg.conf; cari baris dan ubah menjadi :

Code: Select all

output_dir /var/www/squid-reports

Kemudian buat folder dan buat report

Code: Select all

# mkdir /var/www/squid-reports
# sarg-reports today

Memasukkan pada Crontab

Code: Select all

crontab -e

tambahkan di baris terakhir :
Tampilkan
* */6 * * * /usr/sbin/sarg-reports today
* */12 * * * calamaris -a -F html /var/log/squid/access.log > /var/www/calamaris/index.html

CMIIW.....


kalo aplikasi monitoring selain sarg apa ya kang? ga ada yang secara realtime gitu ya tampilannya?