歡迎您光臨本站 註冊首頁

怎樣採集當前用戶人數?

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

怎樣採集當前用戶人數?

《解決方案》

我不知道,幫你定一下
《解決方案》

以下命令的前提是配置好squid.conf中的acl許可權。

# squidclient  -h 111.222.333.444 -p 80 -U user_name -W Passwd
HTTP/1.0 200 OK
Server: squid/2.5.STABLE14
Mime-Version: 1.0
Date: Thu, 04 Jan 2007 05:57:17 GMT
Content-Type: text/plain
Expires: Thu, 04 Jan 2007 05:57:17 GMT
Last-Modified: Thu, 04 Jan 2007 05:57:17 GMT
X-Cache: MISS from squid8.xxxxx.com.cn
Proxy-Connection: close

Squid Object Cache: Version 2.5.STABLE14
Start Time:     Fri, 08 Dec 2006 01:23:18 GMT
Current Time:   Thu, 04 Jan 2007 05:57:17 GMT
Connection information for squid:
        Number of clients accessing cache:      60128
        Number of HTTP requests received:       490846693
        Number of ICP messages received:        0
        Number of ICP messages sent:    0
        Number of queued ICP replies:   0
        Request failure ratio:   0.00
        Average HTTP requests per minute since start:   12536.3
        Average ICP messages per minute since start:    0.0
        Select loop called: 512260197 times, 4.586 ms avg
Cache information for squid:
        Request Hit Ratios:     5min: 98.9%, 60min: 99.3%
        Byte Hit Ratios:        5min: 96.9%, 60min: 97.7%
        Request Memory Hit Ratios:      5min: 34.5%, 60min: 37.2%
        Request Disk Hit Ratios:        5min: 11.7%, 60min: 11.8%
        Storage Swap size:      7138208 KB
        Storage Mem size:       1076360 KB
        Mean Object Size:       65.25 KB
        Requests given to unlinkd:      0
Median Service Times (seconds)  5 min    60 min:
        HTTP Requests (All):   0.00379  0.00379
        Cache Misses:          0.24524  0.24524
        Cache Hits:            0.00379  0.00463
        Near Hits:             0.20843  0.22004
        Not-Modified Replies:  0.00379  0.00379
        DNS Lookups:           0.00000  0.00000
        ICP Queries:           0.00000  0.00000
Resource usage for squid:
        UP Time:        2349239.493 seconds
        CPU Time:       1494249.722 seconds
        CPU Usage:      63.61%
        CPU Usage, 5 minute avg:        64.76%
        CPU Usage, 60 minute avg:       79.64%
        Process Data Segment Size via sbrk(): 1204012 KB
        Maximum Resident Size: 0 KB
        Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
        Total space in arena:  1249068 KB
        Ordinary blocks:       1150590 KB  44955 blks
        Small blocks:               0 KB      0 blks
        Holding blocks:         18696 KB      8 blks
        Free Small blocks:          0 KB
        Free Ordinary blocks:   98477 KB
        Total in use:          1169286 KB 92%
        Total free:             98477 KB 8%
        Total size:            1267764 KB
Memory accounted for:
        Total accounted:       1123800 KB
        memPoolAlloc calls: 3826634361
        memPoolFree calls: 3825607214
File descriptor usage for squid:
        Maximum number of file descriptors:   32768
        Largest file desc currently in use:   1203
        Number of file desc currently in use: 1068
        Files queued for open:                   0
        Available number of file descriptors: 31700
        Reserved number of file descriptors:   100
        Store Disk files open:                   1
Internal Data Structures:
        113575 StoreEntries
         17546 StoreEntries with MemObjects
         17541 Hot Object Cache Items
        109399 on-disk objects
#

[ 本帖最後由 phpman 於 2007-1-4 14:02 編輯 ]
《解決方案》

netstat -tn 查看有多少人連接你代理埠就行
《解決方案》

這個命令有沒有後面的參數?
《解決方案》

原帖由 流雲飛雨 於 2007-12-14 08:49 發表 http://bbs.chinaunix.net/images/common/back.gif
這個命令有沒有後面的參數?

squidclient -p 80 mgr:info
《解決方案》

我是用cacti的squid模板監控的

估計也是調用了squidclient里的東西
《解決方案》

原帖由 twodog29 於 2007-12-19 21:57 發表 http://bbs.chinaunix.net/images/common/back.gif
我是用cacti的squid模板監控的

估計也是調用了squidclient里的東西

我也下載了squid的模板,但是無法採集數據。。。
《解決方案》

先代理snmp埠才行,看安裝說明吧

[火星人 ] 怎樣採集當前用戶人數?已經有372次圍觀

http://coctec.com/docs/service/show-post-33368.html