[help] squidclient error ??

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
upik
Posts: 99
Joined: 05 Jun 2010, 14:52

[help] squidclient error ??

Postby upik » 25 Oct 2010, 23:12

Halo Ubuntu Forum,

apakah ada yang bisa menolong saya, sudah mencoba beberapa cara dengan squidclient tapi tetap error.

#squidclient -p 3128 mgr:info
client: ERROR: Cannot connect to [::1]:3128: Connection refused

semoga ada yang bisa bantu.

Ubuntu 10.10
User avatar
ninja
Posts: 2260
Joined: 27 Jan 2010, 16:23
Location: Tangerang, Banten, indonesia
Contact:

Re: [help] squidclient error ??

Postby ninja » 25 Oct 2010, 23:26

sama ane juga gitu, engga jadi masalah sih bro. :)
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Re: [help] squidclient error ??

Postby zitux » 25 Oct 2010, 23:48

var/log/squid/cache.log isi nya apa ?
squid.conf nya gimana ?
User avatar
upik
Posts: 99
Joined: 05 Jun 2010, 14:52

Re: [help] squidclient error ??

Postby upik » 26 Oct 2010, 07:52

zitux wrote:var/log/squid/cache.log isi nya apa ?
squid.conf nya gimana ?


Ini squid.conf ane bang


#################################################################
# Port
#################################################################
http_port 3128 transparent
icp_port 0
prefer_direct off

#################################################################
# Cache & Object
#################################################################
cache_mem 8 MB
cache_swap_low 98
cache_swap_high 99
max_filedesc 8192
maximum_object_size 1024 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 64 KB
ipcache_size 4096
ipcache_low 98
ipcache_high 99
fqdncache_size 4096
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF

#################################################################
# cache_dir
#################################################################
cache_dir aufs /cache 100000 234 256
cache_access_log /var/log/squid/access.log
cache_log /dev/null
cache_store_log /dev/null
pid_filename /var/run/squid.pid
cache_swap_log /var/log/squid/swap.state
dns_nameservers 127.0.0.1 202.148.1.195 202.148.1.196 8.8.8.8
emulate_httpd_log off
hosts_file /etc/hosts
half_closed_clients off
negative_ttl 1 minutes

#################################################################
# Rules: Safe Port
#################################################################
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 873 # https snews rsync
acl Safe_ports port 80 # http
acl Safe_ports port 20 21 # ftp
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 631 # cups
acl Safe_ports port 10000 # webmin
acl Safe_ports port 901 # SWAT
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 873 # rsync
acl Safe_ports port 110 # POP3
acl Safe_ports port 25 # SMTP
acl Safe_ports port 2095 2096 # webmail from cpanel
acl Safe_ports port 2082 2083 # cpanel
acl purge method PURGE
acl CONNECT method CONNECT
acl malware url_regex -i "/etc/squid/malware_block.txt"

http_access deny malware
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports !SSL_ports
http_access deny CONNECT !SSL_ports !Safe_ports

#################################################################
# Refresh Pattern
#################################################################

refresh_pattern ^ftp: 1440 20% 10080 reload-into-ims
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i \.(gif|png|jp?g|ico|bmp|tiff?)$ 10080 95% 43200 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i \.(rpm|cab|deb|exe|msi|msu|zip|tar|gz|tgz|rar|bin|7z|doc?|xls?|ppt?|pdf|nth|psd|sis)$ 10080 90% 43200 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i \.(avi|iso|wav|mid|mp?|mpeg|mov|3gp|wm?|swf|flv|x-flv|axd)$ 43200 95% 432000 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i \.(html|htm|css|js)$ 1440 75% 40320
refresh_pattern -i \.index.(html|htm)$ 0 75% 10080
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320 reload-into-ims


#################################################################
# HAVP + Clamav
#################################################################
cache_peer 127.0.0.1 parent 3128 0 no-query no-digest no-netdb-exchange default

#################################################################
# HIERARCHY (BYPASS CGI)
#################################################################
#hierarchy_stoplist cgi-bin ? .js .jsp
#acl QUERY urlpath_regex cgi-bin \? .js .jsp
#no_cache deny QUERY

#################################################################
# SNMP
#################################################################
snmp_port 3401
acl snmpsquid snmp_community public
snmp_access allow snmpsquid localhost
snmp_access deny all

#################################################################
# ALLOWED ACCESS
#################################################################


# HTTP OPTIONS
# -----------------------------------------------------------------------------

acl lan2 src 172.16.10.0/25

http_access allow lan2
http_access allow localhost
http_access deny all
always_direct deny all



#################################################################
# Cache CGI & Administrative
#################################################################
cache_mgr bangnapi
visible_hostname bangnapi.net
cache_effective_user proxy
cache_effective_group proxy
coredump_dir /var/spool/squid
shutdown_lifetime 10 seconds
logfile_rotate 1

redirect_program /usr/local/bin/squidGuard -c /usr/local/squidGuard/squidGuard.conf
redirect_children 10
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Re: [help] squidclient error ??

Postby zitux » 26 Oct 2010, 10:18

var/log/squid/cache.log isi nya apa ?
User avatar
upik
Posts: 99
Joined: 05 Jun 2010, 14:52

Re: [help] squidclient error ??

Postby upik » 26 Oct 2010, 15:41

zitux wrote:var/log/squid/cache.log isi nya apa ?


isi dari /var/log/squid/cache.log ini bang
# tail /var/log/squid/cache.log
Free Ordinary blocks: 141 KB
Total in use: 6890 KB 98%
Total free: 141 KB 2%
2010/10/26 07:49:25| aioSync: flushing pending I/O operations
2010/10/26 07:49:25| aioSync: done
2010/10/26 07:49:25| logfileClose: closing log /var/log/squid/store.log
2010/10/26 07:49:25| logfileClose: closing log /var/log/squid/access.log
2010/10/26 07:49:25| aioSync: flushing pending I/O operations
2010/10/26 07:49:25| aioSync: done
2010/10/26 07:49:25| Squid Cache (Version 2.7.STABLE9): Exiting normally.



salah dimana ya ??

tks
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Re: [help] squidclient error ??

Postby zitux » 26 Oct 2010, 18:55

klo kesalahan nya belum tau bro.. ini lagi coba install dilepy pake localhost :)
ninja wrote:sama ane juga gitu, engga jadi masalah sih bro. smile


Code: Select all

2010/10/26 07:49:25| Squid Cache (Version 2.7.STABLE9): Exiting normally.


ini kan berarti squid nya berhenti ?

coba cek pake service squid status
User avatar
upik
Posts: 99
Joined: 05 Jun 2010, 14:52

Re: [help] squidclient error ??

Postby upik » 26 Oct 2010, 21:14

zitux wrote:klo kesalahan nya belum tau bro.. ini lagi coba install dilepy pake localhost :)
ninja wrote:sama ane juga gitu, engga jadi masalah sih bro. smile


Code: Select all

2010/10/26 07:49:25| Squid Cache (Version 2.7.STABLE9): Exiting normally.


ini kan berarti squid nya berhenti ?

coba cek pake service squid status


Loh kok aneh ya pak,

ini saya cek

# service squid status
squid stop/waiting
# squid -d 1 -D
2010/10/26 21:11:47| Squid is already running! Process ID 6268
# service squid status
squid stop/waiting


squid -s
2010/10/26 21:20:29| Squid is already running! Process ID 6268

ps ax | grep squid
6266 ? Ss 0:00 squid -sY -f /etc/squid/squid.conf
6268 ? Sl 0:02 (squid) -sY -f /etc/squid/squid.conf
12132 pts/0 S+ 0:00 grep --color=auto squid





saya cek di webmin, squidnya juga dianggap jalan pak ??? bingung sayanya
User avatar
ninja
Posts: 2260
Joined: 27 Jan 2010, 16:23
Location: Tangerang, Banten, indonesia
Contact:

Re: [help] squidclient error ??

Postby ninja » 26 Oct 2010, 22:34

emank squidnya jalan bro, ane juga kayak gitu. problemnya cuma engga bisa ngecheck squid doank.
jadi kalo mau ngecek ya pake manual liat log-lognya :grin:
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Re: [help] squidclient error ??

Postby zitux » 27 Oct 2010, 02:19

Code: Select all

root@zitux:~# service squid status
squid start/running, process 852
root@zitux:~# squid -d 1 -D
2010/10/27 02:14:20| Squid is already running!  Process ID 1031
root@zitux:~# service squid status
squid start/running, process 852
root@zitux:~# squid -s
2010/10/27 02:14:52| Squid is already running!  Process ID 1031
root@zitux:~# ps ax | grep squid
  852 ?        Ss     0:00 /usr/sbin/squid
 1031 ?        Sl    12:45 (squid)
31208 pts/0    S+     0:00 grep --color=auto squid
root@zitux:~#


Code: Select all

root@zitux:~# squidclient mgr:info@123
HTTP/1.0 200 OK
Server: squid/2.7.STABLE7
Date: Tue, 26 Oct 2010 19:09:45 GMT
Content-Type: text/plain
Expires: Tue, 26 Oct 2010 19:09:45 GMT
X-Cache: MISS from dns.zitux.net
X-Cache-Lookup: MISS from dns.zitux.net:3128
Via: 1.0 dns.zitux.net:3128 (squid/2.7.STABLE7)
Connection: close

Squid Object Cache: Version 2.7.STABLE7
Start Time:     Fri, 22 Oct 2010 19:15:47 GMT
Current Time:   Tue, 26 Oct 2010 19:09:45 GMT
Connection information for squid:
        Number of clients accessing cache:      18
        Number of HTTP requests received:       656724
        Number of ICP messages received:        0
        Number of ICP messages sent:    0
        Number of queued ICP replies:   0
        Number of HTCP messages received:       0
        Number of HTCP messages sent:   0
        Request failure ratio:   0.00
        Average HTTP requests per minute since start:   114.1
        Average ICP messages per minute since start:    0.0
        Select loop called: 9809475 times, 35.194 ms avg
Cache information for squid:
        Request Hit Ratios:     5min: 29.1%, 60min: 11.5%
        Byte Hit Ratios:        5min: 62.7%, 60min: 8.9%
        Request Memory Hit Ratios:      5min: 0.0%, 60min: 11.5%
        Request Disk Hit Ratios:        5min: 18.8%, 60min: 36.5%
        Storage Swap size:      15052416 KB
        Storage Mem size:       6080 KB
        Mean Object Size:       17.04 KB
        Requests given to unlinkd:      0
Median Service Times (seconds)  5 min    60 min:
        HTTP Requests (All):   0.18699  0.24524
        Cache Misses:          0.19742  0.28853
        Cache Hits:            0.00000  0.00000
        Near Hits:             0.00000  0.33943
        Not-Modified Replies:  0.00000  0.00000
        DNS Lookups:           0.00000  0.00000
        ICP Queries:           0.00000  0.00000
Resource usage for squid:
        UP Time:        345238.452 seconds
        CPU Time:       764.970 seconds
        CPU Usage:      0.22%
        CPU Usage, 5 minute avg:        0.02%
        CPU Usage, 60 minute avg:       0.05%
        Process Data Segment Size via sbrk(): 161128 KB
        Maximum Resident Size: 696464 KB
        Page faults with physical i/o: 3
Memory usage for squid via mallinfo():
        Total space in arena:  161128 KB
        Ordinary blocks:       156568 KB  40001 blks
        Small blocks:               0 KB      0 blks
        Holding blocks:         15016 KB      8 blks
        Free Small blocks:          0 KB
        Free Ordinary blocks:    4559 KB
        Total in use:          171584 KB 97%
        Total free:              4559 KB 3%
        Total size:            176144 KB
Memory accounted for:
        Total accounted:       103007 KB
        memPoolAlloc calls: 103561656
        memPoolFree calls: 101764694
File descriptor usage for squid:
        Maximum number of file descriptors:   8192
        Largest file desc currently in use:     35
        Number of file desc currently in use:   20
        Files queued for open:                   0
        Available number of file descriptors: 8172
        Reserved number of file descriptors:   100
        Store Disk files open:                   0
        IO loop method:                     epoll
Internal Data Structures:
        884453 StoreEntries
          1316 StoreEntries with MemObjects
          1314 Hot Object Cache Items
        883312 on-disk objects
root@zitux:~#


punya saya bisa .. apa karena kebetulan ya :grin:
User avatar
ninja
Posts: 2260
Joined: 27 Jan 2010, 16:23
Location: Tangerang, Banten, indonesia
Contact:

Re: [help] squidclient error ??

Postby ninja » 27 Oct 2010, 02:35

bukan karena kebetulan, emank punya ente bisa.
di saya engga bisa, punya solusi kah???

dari lucid sampe ke maverick juga sama kayak gini, cuma engga diambil pusing. masih bisa diliat di log juga kok...

Code: Select all

root@1010:/home/ninja# service squid status
Usage: /etc/init.d/squid {start|stop|reload|force-reload|restart}
root@1010:/home/ninja# squid -d 1 -D
2010/10/27 02:39:29| WARNING: -D command-line option is obsolete.
2010/10/27 02:39:29| Squid is already running!  Process ID 1265
root@1010:/home/ninja# squid -s
root@1010:/home/ninja# squidclient mgr:info@123
client: ERROR: Cannot connect to [::1]:3128: Connection refused
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Re: [help] squidclient error ??

Postby zitux » 27 Oct 2010, 02:41

barusan juga coba install di lepy ubuntu desktop belum sempat setting macem2
Tampilkan
zitux@zitux:~$ sudo service squid status
squid start/running, process 3057
zitux@zitux:~$ sudo service squid status
squid start/running, process 3057
zitux@zitux:~$ sudo service squid status
squid start/running, process 3057
zitux@zitux:~$ squidclient mgr:info
HTTP/1.0 200 OK
Server: Lusca/LUSCA_HEAD-r14733
Date: Tue, 26 Oct 2010 19:32:55 GMT
Content-Type: text/plain
Expires: Tue, 26 Oct 2010 19:32:55 GMT
X-Cache: MISS from proxy
X-Cache-Lookup: MISS from proxy:3128
Via: 1.0 proxy:3128 (Lusca/LUSCA_HEAD-r14733)
Connection: close

Squid Object Cache: Version LUSCA_HEAD-r14733
Start Time: Tue, 26 Oct 2010 19:29:37 GMT
Current Time: Tue, 26 Oct 2010 19:32:55 GMT
Connection information for squid:
Number of clients accessing cache: 1
Number of HTTP requests received: 1
Number of ICP messages received: 0
Number of ICP messages sent: 0
Number of queued ICP replies: 0
Number of HTCP messages received: 0
Number of HTCP messages sent: 0
Request failure ratio: 0.00
Average HTTP requests per minute since start: 0.3
Average ICP messages per minute since start: 0.0
Select loop called: 752 times, 264.391 ms avg
Cache information for squid:
Request Hit Ratios: 5min: 0.0%, 60min: 0.0%
Byte Hit Ratios: 5min: 100.0%, 60min: 100.0%
Request Memory Hit Ratios: 5min: 0.0%, 60min: 0.0%
Request Disk Hit Ratios: 5min: 0.0%, 60min: 0.0%
Storage Swap size: 0 KB
Storage Mem size: 108 KB
Mean Object Size: 0.00 KB
Requests given to unlinkd: 0
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 0.00000 0.00000
Cache Misses: 0.00000 0.00000
Cache Hits: 0.00000 0.00000
Near Hits: 0.00000 0.00000
Not-Modified Replies: 0.00000 0.00000
DNS Lookups: 0.00000 0.00000
ICP Queries: 0.00000 0.00000
Resource usage for squid:
UP Time: 198.822 seconds
CPU Time: 0.040 seconds
CPU Usage: 0.02%
CPU Usage, 5 minute avg: 0.02%
CPU Usage, 60 minute avg: 0.02%
Process Data Segment Size via sbrk(): 2624 KB
Maximum Resident Size: 22272 KB
Page faults with physical i/o: 1
Memory usage for squid via mallinfo():
Total space in arena: 2624 KB
Ordinary blocks: 2494 KB 3 blks
Small blocks: 0 KB 0 blks
Holding blocks: 740 KB 1 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 129 KB
Total in use: 3234 KB 96%
Total free: 129 KB 4%
Total size: 3364 KB
Memory accounted for:
Total accounted: 153 KB
memPoolAlloc calls: 1753
memPoolFree calls: 972
File descriptor usage for squid:
Maximum number of file descriptors: 1024
Largest file desc currently in use: 16
Number of file desc currently in use: 12
Files queued for open: 0
Available number of file descriptors: 1012
Reserved number of file descriptors: 100
Store Disk files open: 0
IO loop method: epoll
Internal Data Structures:
27 StoreEntries
27 StoreEntries with MemObjects
26 Hot Object Cache Items
0 on-disk objects
User avatar
ninja
Posts: 2260
Joined: 27 Jan 2010, 16:23
Location: Tangerang, Banten, indonesia
Contact:

Re: [help] squidclient error ??

Postby ninja » 27 Oct 2010, 02:45

neh log terakhir engga ada error...

Code: Select all

2010/10/27 00:56:29| Starting Squid Cache version 3.1.8 for i686-pc-linux-gnu...
2010/10/27 00:56:29| Process ID 1265
2010/10/27 00:56:29| With 1024 file descriptors available
2010/10/27 00:56:29| Initializing IP Cache...
2010/10/27 00:56:29| DNS Socket created at 0.0.0.0, FD 7
2010/10/27 00:56:29| Adding nameserver 127.0.0.1 from squid.conf
2010/10/27 00:56:29| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2010/10/27 00:56:29| Store logging disabled
2010/10/27 00:56:29| Swap maxSize 4096000 + 8192 KB, estimated 315707 objects
2010/10/27 00:56:29| Target number of buckets: 15785
2010/10/27 00:56:29| Using 16384 Store buckets
2010/10/27 00:56:29| Max Mem  size: 8192 KB
2010/10/27 00:56:29| Max Swap size: 4096000 KB
2010/10/27 00:56:29| Version 1 of swap file with LFS support detected...
2010/10/27 00:56:29| Rebuilding storage in /cache (CLEAN)
2010/10/27 00:56:29| Using Least Load store dir selection
2010/10/27 00:56:29| Set Current Directory to /cache
2010/10/27 00:56:29| Loaded Icons.
2010/10/27 00:56:29| Accepting  HTTP connections at 0.0.0.0:3128, FD 10.
2010/10/27 00:56:29| HTCP Disabled.
2010/10/27 00:56:29| Squid modules loaded: 0
2010/10/27 00:56:29| Ready to serve requests.
2010/10/27 00:56:29| Store rebuilding is 2.93% complete
2010/10/27 00:56:30| Done reading /cache swaplog (139609 entries)
2010/10/27 00:56:30| Finished rebuilding storage from disk.
2010/10/27 00:56:30|    139609 Entries scanned
2010/10/27 00:56:30|         0 Invalid entries.
2010/10/27 00:56:30|         0 With invalid flags.
2010/10/27 00:56:30|    139609 Objects loaded.
2010/10/27 00:56:30|         0 Objects expired.
2010/10/27 00:56:30|         0 Objects cancelled.
2010/10/27 00:56:30|         0 Duplicate URLs purged.
2010/10/27 00:56:30|         0 Swapfile clashes avoided.
2010/10/27 00:56:30|   Took 0.92 seconds (151518.34 objects/sec).
2010/10/27 00:56:30| Beginning Validation Procedure
2010/10/27 00:56:30|   262144 Entries Validated so far.
2010/10/27 00:56:30|   Completed Validation Procedure
2010/10/27 00:56:30|   Validated 279235 Entries
2010/10/27 00:56:30|   store_swap_size = 1454484
2010/10/27 00:56:30| storeLateRelease: released 0 objects
2010/10/27 02:37:14| Squid is already running!  Process ID 1265
2010/10/27 02:37:31| Squid is already running!  Process ID 1265
2010/10/27 02:39:29| Squid is already running!  Process ID 1265
2010/10/27 02:39:40| Squid is already running!  Process ID 1265


cuma engga bisa dicheck pake perintah terminal tok...
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Re: [help] squidclient error ??

Postby zitux » 27 Oct 2010, 02:47

ninja wrote:bukan karena kebetulan, emank punya ente bisa.
di saya engga bisa, punya solusi kah???

dari lucid sampe ke maverick juga sama kayak gini, cuma engga diambil pusing. masih bisa diliat di log juga kok...

Code: Select all

root@1010:/home/ninja# service squid status
Usage: /etc/init.d/squid {start|stop|reload|force-reload|restart}
root@1010:/home/ninja# squid -d 1 -D
2010/10/27 02:39:29| WARNING: -D command-line option is obsolete.
2010/10/27 02:39:29| Squid is already running!  Process ID 1265
root@1010:/home/ninja# squid -s
root@1010:/home/ninja# squidclient mgr:info@123
client: ERROR: Cannot connect to [::1]:3128: Connection refused


ditelusuri bareng2 bro
ini td install juga niate cari error siapa tau terjadi sama server ane :grin:
User avatar
ninja
Posts: 2260
Joined: 27 Jan 2010, 16:23
Location: Tangerang, Banten, indonesia
Contact:

Re: [help] squidclient error ??

Postby ninja » 27 Oct 2010, 02:50

dah berbulan-bulan bro, lom ketemu solusine...
dikira cuma ane yang kayak gitu, tapi kalo ane waktu pake yang bersi 2 7 engga ada masalah, cuma pas migrasi ke versi 3 aja neh bermasalah...
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Re: [help] squidclient error ??

Postby zitux » 27 Oct 2010, 02:58

oh... punya ane semua gak pake compile
aseli 27.7 untuk server
dan 27.7 dipatch sama lusca cuma untuk lepy

mungkin versi bro upik juga gitu pake 27.9 :)
User avatar
upik
Posts: 99
Joined: 05 Jun 2010, 14:52

Re: [help] squidclient error ??

Postby upik » 27 Oct 2010, 08:05

zitux wrote:oh... punya ane semua gak pake compile
aseli 27.7 untuk server
dan 27.7 dipatch sama lusca cuma untuk lepy

mungkin versi bro upik juga gitu pake 27.9 :)


Setelah konsultasi ke beberapa tempat, akhirnya ketemu jawabannya. Ubuntu server 10.10 defaultnya untuk IPV6.
Kemudian diajari pakai cara ini "squidclient -h 127.0.0.1 mgr:info", dan akhirnya terpecahkan masalah saya.

Silahkan teman2 yang lain mencoba cara tersebut.

Salam
User avatar
ninja
Posts: 2260
Joined: 27 Jan 2010, 16:23
Location: Tangerang, Banten, indonesia
Contact:

Re: [help] squidclient error ??

Postby ninja » 27 Oct 2010, 11:50

sukses bro upik :)
tapi punya ane kan ubuntu desktop, kok bisa sama ubuntu server yah :crazy:

Code: Select all

squidclient -h 127.0.0.1 mgr:info
HTTP/1.0 200 OK
Server: squid
Mime-Version: 1.0
Date: Wed, 27 Oct 2010 04:48:13 GMT
Content-Type: text/plain
Expires: Wed, 27 Oct 2010 04:48:13 GMT
Last-Modified: Wed, 27 Oct 2010 04:48:13 GMT
X-Cache: MISS from ninja
X-Cache-Lookup: MISS from ninja:3128
Via: 1.0 ninja (squid)
Connection: close

Squid Object Cache: Version 3.1.8
Start Time:   Wed, 27 Oct 2010 04:18:14 GMT
Current Time:   Wed, 27 Oct 2010 04:48:13 GMT
Connection information for squid:
   Number of clients accessing cache:   0
   Number of HTTP requests received:   1193
   Number of ICP messages received:   0
   Number of ICP messages sent:   0
   Number of queued ICP replies:   0
   Number of HTCP messages received:   0
   Number of HTCP messages sent:   0
   Request failure ratio:    0.00
   Average HTTP requests per minute since start:   39.8
   Average ICP messages per minute since start:   0.0
   Select loop called: 310344 times, 5.799 ms avg
Cache information for squid:
   Hits as % of all requests:   5min: 56.4%, 60min: 32.6%
   Hits as % of bytes sent:   5min: 13.9%, 60min: 11.2%
   Memory hits as % of hit requests:   5min: 0.0%, 60min: 0.0%
   Disk hits as % of hit requests:   5min: 14.7%, 60min: 33.8%
   Storage Swap size:   1467996 KB
   Storage Swap capacity:   35.8% used, 64.2% free
   Storage Mem size:   1372 KB
   Storage Mem capacity:   16.8% used, 83.2% free
   Mean Object Size:   10.46 KB
   Requests given to unlinkd:   0
Median Service Times (seconds)  5 min    60 min:
   HTTP Requests (All):   0.02451  2.02066
   Cache Misses:          9.67302  2.50793
   Cache Hits:            0.01309  0.02899
   Near Hits:             0.00000  1.81376
   Not-Modified Replies:  0.01309  0.01164
   DNS Lookups:           4.98804  2.80205
   ICP Queries:           0.00000  0.00000
Resource usage for squid:
   UP Time:   1799.755 seconds
   CPU Time:   3.816 seconds
   CPU Usage:   0.21%
   CPU Usage, 5 minute avg:   0.23%
   CPU Usage, 60 minute avg:   0.21%
   Process Data Segment Size via sbrk(): 19748 KB
   Maximum Resident Size: 98128 KB
   Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
   Total space in arena:   19880 KB
   Ordinary blocks:        19593 KB    286 blks
   Small blocks:               0 KB      0 blks
   Holding blocks:          2040 KB      4 blks
   Free Small blocks:          0 KB
   Free Ordinary blocks:     286 KB
   Total in use:           21633 KB 99%
   Total free:               286 KB 1%
   Total size:             21920 KB
Memory accounted for:
   Total accounted:        12180 KB  56%
   memPool accounted:      12180 KB  56%
   memPool unaccounted:     9739 KB  44%
   memPoolAlloc calls:         0
   memPoolFree calls:     552525
File descriptor usage for squid:
   Maximum number of file descriptors:   1024
   Largest file desc currently in use:     38
   Number of file desc currently in use:   24
   Files queued for open:                   0
   Available number of file descriptors: 1000
   Reserved number of file descriptors:   100
   Store Disk files open:                   0
Internal Data Structures:
   140403 StoreEntries
      216 StoreEntries with MemObjects
      214 Hot Object Cache Items
   140371 on-disk objects
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Re: [help] squidclient error ??

Postby zitux » 27 Oct 2010, 12:56

hehe.. ilmu baru ini klo pake MM besok :D
User avatar
sipelaut
Posts: 1963
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Re: [help] squidclient error ??

Postby sipelaut » 29 Oct 2010, 19:17

hedeh-hedeh.......
ternyata punya ane juga sama .... gak bisa :(
"client: ERROR: Cannot connect to [::1]:3128: Connection refused"

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 4 guests