Header Ads

Perintah Monitoring Squid Proxy Ubuntu Server

Squid Proxy Ubuntu Server
Perintah Monitoring Squid Proxy Ubuntu Server
Berikut ini adalah perintah-perintah untuk monitoring Squid Proxy di Ubuntu Server tapi sebelumnya Install dulu paket squid client dengan mengetik perintah ini di terminal Putty :
# sudo apt-get install squidclient squid-cgi

Setelah itu untuk monitoring jalannya squid proxy gunakan perintah dibawah ini :
# sudo tail -f /data/access.log | ccze
- Monitoring jalannya proses secara real time.

# squidclient mgr:info
HTTP/1.0 200 OK
Server: Lusca/LUSCA_HEAD-r14942
Date: Tue, 12 Aug 2014 18:44:56 GMT
Content-Type: text/plain
Expires: Tue, 12 Aug 2014 18:44:56 GMT
X-Cache: MISS from webmaster
X-Cache-Lookup: MISS from webmaster:3128
Connection: close

Squid Object Cache: Version LUSCA_HEAD-r14942
Start Time:     Tue, 12 Aug 2014 17:30:30 GMT
Current Time:   Tue, 12 Aug 2014 18:44:56 GMT
Connection information for squid:
        Number of clients accessing cache:      0
        Number of HTTP requests received:       62836
        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:   844.2
        Average ICP messages per minute since start:    0.0
        Select loop called: 3098502 times, 1.441 ms avg
Cache information for squid:
        Request Hit Ratios:     5min: 8.2%, 60min: 8.6%
        Byte Hit Ratios:        5min: 0.2%, 60min: 3.7%
        Request Memory Hit Ratios:      5min: 23.6%, 60min: 21.8%
        Request Disk Hit Ratios:        5min: 48.9%, 60min: 44.6%
        Storage Swap size:      1162604 KB
        Storage Mem size:       61384 KB
        Mean Object Size:       59.45 KB
        Requests given to unlinkd:      0
Median Service Times (seconds)  5 min    60 min:
        HTTP Requests (All):   0.25890  0.15888
        Cache Misses:          0.28853  0.20843
        Cache Hits:            0.00091  0.00179
        Near Hits:             0.03427  0.10857
        Not-Modified Replies:  0.00091  0.00091
        DNS Lookups:           0.00000  0.00000
        ICP Queries:           0.00000  0.00000
Resource usage for squid:
        UP Time:        4466.100 seconds
        CPU Time:       389.453 seconds
        CPU Usage:      8.72%
        CPU Usage, 5 minute avg:        9.96%
        CPU Usage, 60 minute avg:       9.34%
        Process Data Segment Size via sbrk(): 94236 KB
        Maximum Resident Size: 462384 KB
        Page faults with physical i/o: 1
Memory usage for squid via mallinfo():
        Total space in arena:   94236 KB
        Ordinary blocks:        93335 KB    198 blks
        Small blocks:               0 KB      0 blks
        Holding blocks:         79384 KB      6 blks
        Free Small blocks:          0 KB
        Free Ordinary blocks:     900 KB
        Total in use:          172719 KB 99%
        Total free:               900 KB 1%
        Total size:            173620 KB
Memory accounted for:
        Total accounted:        75435 KB
        memPoolAlloc calls: 11965662
        memPoolFree calls: 11700876
File descriptor usage for squid:
        Maximum number of file descriptors:   65536
        Largest file desc currently in use:    464
        Number of file desc currently in use:  320
        Files queued for open:                   0
        Available number of file descriptors: 65216
        Reserved number of file descriptors:   100
        Store Disk files open:                  25
        IO loop method:                     epoll
Internal Data Structures:
         19682 StoreEntries
          7790 StoreEntries with MemObjects
          7695 Hot Object Cache Items
         19555 on-disk objects

squidclient -h localhost cache_object://localhost/ mgr:utilization
HTTP/1.0 200 OK
Server: Lusca/LUSCA_HEAD-r14942
Date: Tue, 12 Aug 2014 18:46:09 GMT
Content-Type: text/plain
Expires: Tue, 12 Aug 2014 18:46:09 GMT
X-Cache: MISS from webmaster
X-Cache-Lookup: MISS from webmaster:3128
Connection: close

Cache Utilisation:
Last 5 minutes:
sample_start_time = 1407868830.882799 (Tue, 12 Aug 2014 18:40:30 GMT)
sample_end_time = 1407869130.884931 (Tue, 12 Aug 2014 18:45:30 GMT)
client_http.requests = 13.976567/sec
client_http.hits = 1.216658/sec
client_http.errors = 0.000000/sec
client_http.kbytes_in = 8.889937/sec
client_http.kbytes_out = 1500.949333/sec
client_http.all_median_svc_time = 0.273318 seconds
client_http.miss_median_svc_time = 0.288533 seconds
client_http.nm_median_svc_time = 0.000911 seconds
client_http.nh_median_svc_time = 0.053314 seconds
client_http.hit_median_svc_time = 0.000911 seconds
Dst ------------------------------
Last 15 minutes:
sample_start_time = 1407868230.875194 (Tue, 12 Aug 2014 18:30:30 GMT)
sample_end_time = 1407869130.884931 (Tue, 12 Aug 2014 18:45:30 GMT)
client_http.requests = 14.663175/sec
client_http.hits = 1.191098/sec
client_http.errors = 0.000000/sec
client_http.kbytes_in = 9.435453/sec
client_http.kbytes_out = 1330.170053/sec
client_http.all_median_svc_time = 0.167753 seconds
client_http.miss_median_svc_time = 0.220042 seconds
client_http.nm_median_svc_time = 0.000911 seconds
client_http.nh_median_svc_time = 0.074090 seconds
client_http.hit_median_svc_time = 0.001789 seconds
Dst ------------------------------

Last hour:
sample_start_time = 1407865530.849283 (Tue, 12 Aug 2014 17:45:30 GMT)
sample_end_time = 1407869130.884931 (Tue, 12 Aug 2014 18:45:30 GMT)
client_http.requests = 14.823464/sec
client_http.hits = 1.267765/sec
client_http.errors = 0.000000/sec
client_http.kbytes_in = 9.065466/sec
client_http.kbytes_out = 1257.205051/sec
client_http.all_median_svc_time = 0.158884 seconds
client_http.miss_median_svc_time = 0.208426 seconds
client_http.nm_median_svc_time = 0.000911 seconds
client_http.nh_median_svc_time = 0.127833 seconds
client_http.hit_median_svc_time = 0.001789 seconds
Dst ------------------------------

# squidclient -h localhost cache_object://localhost/ mgr:info
Sama dengan perintah # squidclient mgr:info

Semoga Bermanfaat........!!!!!!!!!

Tidak ada komentar

Diberdayakan oleh Blogger.