some graphs are polled from the server not squid server.
On 12/26/07, Indunil Jayasooriya <indunil75@gmail.com> wrote:
> > You need the SNMP OIDs for graphing Squid MRTG.
> >
> > Put something like the below in your mrtg.cfg file:
> >
> >
> > Target[1cacheServerRequests]:
> > cacheServerRequests&cacheServerRequests:public@localhost:3001
> > MaxBytes[1cacheServerRequests]: 10000000
> > Title[1cacheServerRequests]: Server Requests @ cacheproxy88
> > Options[1cacheServerRequests]: nopercent
> > PageTop[1cacheServerRequests]: <h1>Server Requests @ cacheproxy88</h1>
> > YLegend[1cacheServerRequests]: requests/sec
> > ShortLegend[1cacheServerRequests]: req/s
> > LegendI[1cacheServerRequests]: Requests
> > LegendO[1cacheServerRequests]:
> > Legend1[1cacheServerRequests]: Requests
> > Legend2[1cacheServerRequests]:
> >
> >
> > Target[2cacheHttpInOutKb]:
> > cacheHttpInKb&cacheHttpOutKb:public@localhost:3001 * 1024 * 8
> > MaxBytes[2cacheHttpInOutKb]: 1000000000
> > Title[2cacheHttpInOutKb]: HTTP In/Out Traffic @ cacheproxy88
> > Options[2cacheHttpInOutKb]: nopercent
> > PageTop[2cacheHttpInOutKb]: <h1>HTTP In/Out Traffic @ cacheproxy88</h1>
> > YLegend[2cacheHttpInOutKb]: Bits/second
> > ShortLegend[2cacheHttpInOutKb]: Bits/s
> > LegendI[2cacheHttpInOutKb]: HTTP In
> > LegendO[2cacheHttpInOutKb]: HTTP Out
> > Legend1[2cacheHttpInOutKb]: HTTP In
> > Legend2[2cacheHttpInOutKb]: HTTP
>
> I added the above 2 to my mrtg.cfg
>
> Now, I can see graphs. But , Some graphs show traffic, some graphs do not.
>
> for e.g-
>
> Server Requests @ cacheproxy does not show any traffic
>
> HTTP In/Out Traffic @ cacheproxy shows traffic. It is OK.
>
>
> In addition to that, I added some more to mrtg.cfg from below URL.
>
> http://chrismiles.info/unix/mrtg/mrtg-squid.cfg
>
>
>
> the below graphs DO NOT show any traffic.
> HTTP Hits @ 192.1.54.62
> Server Errors @ 192.1.54.62
> HTTP Errors @ 192.1.54.62
> HTTP all service time @ 192.1.54.62
> Current Swap Size @ 192.1.54.62
>
>
> the below graphs show traffic.
> Server In/Out Traffic @ 192.1.54.62
> Storage Mem Size @ 192.1.54.62
> Storage Swap Size @ 192.1.54.62
> HTTP I/O number of reads @ 192.1.54.62
> DNS service time @ 192.1.54.62
>
> Could you pls expalin why? Where have I go wrong?
>
> Anyway, here is the output of squidclient mgr:info
>
> [root@mail mrtg]# squidclient mgr:info
> HTTP/1.0 200 OK
> Server: squid/2.5.STABLE14
> Mime-Version: 1.0
> Date: Wed, 26 Dec 2007 04:51:17 GMT
> Content-Type: text/plain
> Expires: Wed, 26 Dec 2007 04:51:17 GMT
> Last-Modified: Wed, 26 Dec 2007 04:51:17 GMT
> X-Cache: MISS from prxy.test.lk
> Proxy-Connection: close
>
> Squid Object Cache: Version 2.5.STABLE14
> Start Time: Wed, 26 Dec 2007 02:08:51 GMT
> Current Time: Wed, 26 Dec 2007 04:51:17 GMT
> Connection information for squid:
> Number of clients accessing cache: 2
> Number of HTTP requests received: 2452
> 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: 15.1
> Average ICP messages per minute since start: 0.0
> Select loop called: 40980 times, 237.834 ms avg
> Cache information for squid:
> Request Hit Ratios: 5min: 0.0%, 60min: 21.8%
> Byte Hit Ratios: 5min: 2.0%, 60min: 3.3%
> Request Memory Hit Ratios: 5min: 0.0%, 60min: 0.0%
> Request Disk Hit Ratios: 5min: 0.0%, 60min: 0.0%
> Storage Swap size: 7008 KB
> Storage Mem size: 1100 KB
> Mean Object Size: 11.78 KB
> Requests given to unlinkd: 738
> Median Service Times (seconds) 5 min 60 min:
> HTTP Requests (All): 1.46131 0.02742
> Cache Misses: 1.46131 0.89858
> Cache Hits: 0.00000 0.00000
> Near Hits: 0.00000 0.01309
> Not-Modified Replies: 0.00000 0.00562
> DNS Lookups: 0.00000 0.77360
> ICP Queries: 0.00000 0.00000
> Resource usage for squid:
> UP Time: 9746.421 seconds
> CPU Time: 4.709 seconds
> CPU Usage: 0.05%
> CPU Usage, 5 minute avg: 0.04%
> CPU Usage, 60 minute avg: 0.04%
> Process Data Segment Size via sbrk(): 3568 KB
> Maximum Resident Size: 0 KB
> Page faults with physical i/o: 0
> Memory usage for squid via mallinfo():
> Total space in arena: 3568 KB
> Ordinary blocks: 3511 KB 44 blks
> Small blocks: 0 KB 0 blks
> Holding blocks: 208 KB 1 blks
> Free Small blocks: 0 KB
> Free Ordinary blocks: 56 KB
> Total in use: 3719 KB 98%
> Total free: 56 KB 2%
> Total size: 3776 KB
> Memory accounted for:
> Total accounted: 1525 KB
> memPoolAlloc calls: 378416
> memPoolFree calls: 370954
> File descriptor usage for squid:
> Maximum number of file descriptors: 1024
> Largest file desc currently in use: 21
> Number of file desc currently in use: 18
> Files queued for open: 0
> Available number of file descriptors: 1006
> Reserved number of file descriptors: 100
> Store Disk files open: 0
> Internal Data Structures:
> 624 StoreEntries
> 235 StoreEntries with MemObjects
> 233 Hot Object Cache Items
> 595 on-disk objects
>
> HOPE to hear from you.
>
>
> --
> Thank you
> Indunil Jayasooriya
>
Received on Wed Dec 26 2007 - 04:22:52 MST
This archive was generated by hypermail pre-2.1.9 : Tue Jan 01 2008 - 12:00:02 MST