Re: Squid monitor script
"Ali Resting" <[email protected]>
| Newsgroups | gmane.network.cricket.user |
|---|---|
| Message-ID | <200704121007640.SM01624@powerhouse> |
Thanks Nick. Will give it a shot. Regards, Ali -----Original Message----- From: [email protected] [mailto:[email protected]] Sent: 12 April 2007 09:40 AM To: [email protected]; [email protected] Subject: RE: [cricket-users] Squid monitor script > -----Original Message----- > From: Ali Resting [mailto:[email protected]] > Sent: Wednesday, April 11, 2007 17:32 > To: Nauwelaerts, Nick (TCM); [email protected] > Subject: RE: [cricket-users] Squid monitor script > > I am looking at monitoring the following: > > Page Fault Rate > HTTP Request Rate > Denied Requests (HTTP and ICP) > HTTP Service Time > DNS Service Time > Open File Descriptors > CPU Usage > Free Disk Space > Hit Ratio > > Regards, > > Ali > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] > Sent: 11 April 2007 05:14 PM > To: [email protected]; [email protected] > Subject: RE: [cricket-users] Squid monitor script > > > -----Original Message----- > > From: [email protected] > > [mailto:[email protected]] On > Behalf Of Ali > > Resting > > Sent: Wednesday, April 11, 2007 17:10 > > To: [email protected] > > Subject: [cricket-users] Squid monitor script > > > > Hi All, > > > > I am looking for a cricket script to monitor Squid 2.5 and 2.6 > > What do you want to monitor? > > You can use a modified version of the test-url script which is > provided with the cricket distribution to get response times. And you > can activate snmp support in squid to get some readings from that, but > some of them seem to be a bit wonky. Well, if you enable squid's snmp support you can most of that easily. http://wiki.squid-cache.org/SquidFaq/SquidSnmp should get you started, there are some mrtg demos there which should translate easily into a cricket configuration. When I gave it a look this was what interested me (as a cricket config file): target --default-- directory-desc = "squid runtime information" snmp-community = public snmp-host = %auto-target-name% snmp-port = 3401 target-type = squid-proxy OID ClientHttpRequests 1.3.6.1.4.1.3495.1.3.2.1.1 OID HttpHits 1.3.6.1.4.1.3495.1.3.2.1.2 OID HttpErrors 1.3.6.1.4.1.3495.1.3.2.1.3 OID HttpInKb 1.3.6.1.4.1.3495.1.3.2.1.4 OID HttpOutKb 1.3.6.1.4.1.3495.1.3.2.1.5 OID CurrentSwapSize 1.3.6.1.4.1.3495.1.3.2.1.14 OID MemUsage 1.3.6.1.4.1.3495.1.3.1.4 OID CpuUsage 1.3.6.1.4.1.3495.1.3.1.5 OID NumObjCount 1.3.6.1.4.1.3495.1.3.1.7 datasource --default-- rrd-ds-type = DERIVE rrd-heartbeat = 1800 rrd-min = 0 rrd-max = undef datasource ClientHttpRequests ds-source = snmp://%snmp%/ClientHttpRequests datasource HttpHits ds-source = snmp://%snmp%/HttpHits datasource HttpErrors ds-source = snmp://%snmp%/HttpErrors datasource HttpInKb ds-source = snmp://%snmp%/HttpInKb datasource HttpOutKb ds-source = snmp://%snmp%/HttpOutKb datasource CurrentSwapSize ds-source = snmp://%snmp%/CurrentSwapSize datasource MemUsage ds-source = snmp://%snmp%/MemUsage rrd-ds-type = GAUGE datasource CpuUsage ds-source = snmp://%snmp%/CpuUsage datasource NumObjCount ds-source = snmp://%snmp%/NumObjCount rrd-ds-type = GAUGE view swapsize elements = "CurrentSwapSize" view httprequests elements = "ClientHttpRequests HttpHits HttpErrors" view httptraffic elements = "HttpInKb HttpOutKb" view memusage elements = "MemUsage" view cpuusage elements = "CpuUsage" view objcount elements = "NumObjCount" targetType squid-proxy ds = "ClientHttpRequests, HttpHits, HttpErrors, HttpInKb, HttpOutKb, CurrentSwapSize, MemUsage, CpuUsage, NumObjCount" view = "swapsize, httprequests, httptraffic, memusage, cpuusage, objcount" graph --default-- draw-as = line1 si-units = false graph ClientHttpRequests legend = "client http requests" units = "requests/sec" y-axis = "http request info" graph CpuUsage legend = "cpu usage" units = "percent" y-axis = "cpu usage" graph CurrentSwapSize legend = "storage swap size" units = "" y-axis = "storage swap size" graph HttpErrors legend = "http errors" units = "errors/sec" graph HttpHits legend = "cache hits" units = "hits/sec" graph HttpInKb legend = "incoming http traffic" units = "kilobytes/sec" y-axis = "http traffic" graph HttpOutKb legend = "outgoing http traffic" units = "kilobytes/sec" graph MemUsage legend = "memory usage" units = "kilobytes" y-axis = "memory usage" graph NumObjCount legend = "objects in the cache" units = "objects" y-axis = "objects in the cache" // nick ----------- Scanned by Real Image Anti-Spam & Anti-Virus Solutions - IronPort(tm). ----------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV