centos 에서는 squid 패키지에 포함된 것으로 보이는데


아래 명령어로 무언가 나오는데 멀 보는진 모르겠다 -_ㅠ

# squidclient -h localhost cache_object://localhost/ mgr:utilization 


# squidclient -h localhost cache_object://localhost/counters 

HTTP/1.1 200 OK

Server: squid/3.5.20

Mime-Version: 1.0

Date: Mon, 11 Feb 2019 08:04:04 GMT

Content-Type: text/plain;charset=utf-8

Expires: Mon, 11 Feb 2019 08:04:04 GMT

Last-Modified: Mon, 11 Feb 2019 08:04:04 GMT

X-Cache: MISS from localhost.localdomain

X-Cache-Lookup: MISS from localhost.localdomain:3128

Via: 1.1 localhost.localdomain (squid/3.5.20)

Connection: close


sample_time = 1549872194.638742 (Mon, 11 Feb 2019 08:03:14 GMT)

client_http.requests = 1074

client_http.hits = 0

client_http.errors = 5

client_http.kbytes_in = 977

client_http.kbytes_out = 4855

client_http.hit_kbytes_out = 0

server.all.requests = 707

server.all.errors = 0

server.all.kbytes_in = 4728

server.all.kbytes_out = 1001

server.http.requests = 707

server.http.errors = 0

server.http.kbytes_in = 4728

server.http.kbytes_out = 1001

server.ftp.requests = 0

server.ftp.errors = 0

server.ftp.kbytes_in = 0

server.ftp.kbytes_out = 0

server.other.requests = 0

server.other.errors = 0

server.other.kbytes_in = 0

server.other.kbytes_out = 0

icp.pkts_sent = 0

icp.pkts_recv = 0

icp.queries_sent = 0

icp.replies_sent = 0

icp.queries_recv = 0

icp.replies_recv = 0

icp.query_timeouts = 0

icp.replies_queued = 0

icp.kbytes_sent = 0

icp.kbytes_recv = 0

icp.q_kbytes_sent = 0

icp.r_kbytes_sent = 0

icp.q_kbytes_recv = 0

icp.r_kbytes_recv = 0

icp.times_used = 0

cd.times_used = 0

cd.msgs_sent = 0

cd.msgs_recv = 0

cd.memory = 0

cd.local_memory = 7

cd.kbytes_sent = 0

cd.kbytes_recv = 0

unlink.requests = 843

page_faults = 0

select_loops = 25783

cpu_time = 8.574439

wall_time = 49.492095

swap.outs = 216

swap.ins = 0

swap.files_cleaned = 0

aborted_requests = 4


# squidclient -h localhost mgr:info

HTTP/1.1 200 OK

Server: squid/3.5.20

Mime-Version: 1.0

Date: Mon, 11 Feb 2019 08:02:00 GMT

Content-Type: text/plain;charset=utf-8

Expires: Mon, 11 Feb 2019 08:02:00 GMT

Last-Modified: Mon, 11 Feb 2019 08:02:00 GMT

X-Cache: MISS from localhost.localdomain

X-Cache-Lookup: MISS from localhost.localdomain:3128

Via: 1.1 localhost.localdomain (squid/3.5.20)

Connection: close


Squid Object Cache: Version 3.5.20

Build Info:

Service Name: squid

Start Time:     Mon, 11 Feb 2019 07:51:14 GMT

Current Time:   Mon, 11 Feb 2019 08:02:00 GMT

Connection information for squid:

        Number of clients accessing cache:      2

        Number of HTTP requests received:       1018

        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:   94.5

        Average ICP messages per minute since start:    0.0

        Select loop called: 23961 times, 26.970 ms avg

Cache information for squid:

        Hits as % of all requests:      5min: 0.0%, 60min: 0.0%

        Hits as % of bytes sent:        5min: 1.9%, 60min: 2.1%

        Memory hits as % of hit requests:       5min: 0.0%, 60min: 0.0%

        Disk hits as % of hit requests: 5min: 0.0%, 60min: 0.0%

        Storage Swap size:      91804 KB

        Storage Swap capacity:  89.7% used, 10.3% free

        Storage Mem size:       3860 KB

        Storage Mem capacity:    1.5% used, 98.5% free

        Mean Object Size:       135.20 KB

        Requests given to unlinkd:      843

Median Service Times (seconds)  5 min    60 min:

        HTTP Requests (All):   0.04277  0.05633

        Cache Misses:          0.03241  0.03829

        Cache Hits:            0.00000  0.00000

        Near Hits:             0.00000  0.00000

        Not-Modified Replies:  0.00000  0.00000

        DNS Lookups:           0.11405  0.11926

        ICP Queries:           0.00000  0.00000

Resource usage for squid:

        UP Time:        646.235 seconds

        CPU Time:       8.031 seconds

        CPU Usage:      1.24%

        CPU Usage, 5 minute avg:        1.71%

        CPU Usage, 60 minute avg:       1.32%

        Maximum Resident Size: 237808 KB

        Page faults with physical i/o: 0

Memory accounted for:

        Total accounted:         7691 KB

        memPoolAlloc calls:    224798

        memPoolFree calls:     231466

File descriptor usage for squid:

        Maximum number of file descriptors:   16384

        Largest file desc currently in use:     69

        Number of file desc currently in use:   31

        Files queued for open:                   0

        Available number of file descriptors: 16353

        Reserved number of file descriptors:   100

        Store Disk files open:                   0

Internal Data Structures:

           740 StoreEntries

           273 StoreEntries with MemObjects

           264 Hot Object Cache Items

           679 on-disk objects


[링크 : http://www.monitis.com/blog/how-to-monitor-squid-proxy-server/]

[링크 : https://linux.die.net/man/1/squidclient]

[링크 : https://wiki.squid-cache.org/SquidClientTool]

'프로그램 사용 > squid' 카테고리의 다른 글

haproxy - https proxy  (0) 2019.02.11
squid cache directory  (0) 2019.02.11
squid + 크롬 설정 및 log 확인  (0) 2019.02.11
squid 설치 및 설정 유틸리티  (0) 2019.02.08
squid 상태 모니터링  (0) 2019.02.08
https proxy - squid  (0) 2019.02.07
Posted by 구차니

댓글을 달아 주세요