<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>icez network &#187; squid</title>
	<atom:link href="http://www.icez.net/blog/tags/squid/feed" rel="self" type="application/rss+xml" />
	<link>http://www.icez.net/blog</link>
	<description>Technical Blog by icez network</description>
	<lastBuildDate>Mon, 30 Jan 2012 17:31:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>0082 &#124; MRTG สำหรับจับการทำงานของ squid</title>
		<link>http://www.icez.net/blog/369/mrtg-%e0%b8%aa%e0%b8%b3%e0%b8%ab%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b8%88%e0%b8%b1%e0%b8%9a%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3%e0%b8%87%e0%b8%b2%e0%b8%99%e0%b8%82%e0%b8%ad%e0%b8%87-squid</link>
		<comments>http://www.icez.net/blog/369/mrtg-%e0%b8%aa%e0%b8%b3%e0%b8%ab%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b8%88%e0%b8%b1%e0%b8%9a%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3%e0%b8%87%e0%b8%b2%e0%b8%99%e0%b8%82%e0%b8%ad%e0%b8%87-squid#comments</comments>
		<pubDate>Wed, 04 Nov 2009 10:33:16 +0000</pubDate>
		<dc:creator>icez</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Server]]></category>
		<category><![CDATA[mrtg]]></category>
		<category><![CDATA[squid]]></category>

		<guid isPermaLink="false">http://www.icez.net/blog/?p=369</guid>
		<description><![CDATA[แก้ squid.conf นิดหน่อย acl snmppublic snmp_community public snmp_port 3401 snmp_access allow snmppublic localhost snmp_access deny all แล้วเอาไอ้นี่ใส่ mrtg.cfg LoadMIBs: /etc/squid/mib.txt &#160; Target&#91;cacheServerRequests&#93;: cacheServerRequests&#38;cacheServerRequests:public@localhost:3401 MaxBytes&#91;cacheServerRequests&#93;: 10000000 Title&#91;cacheServerRequests&#93;: Server Requests @ localhost Options&#91;cacheServerRequests&#93;: growright, nopercent PageTop&#91;cacheServerRequests&#93;: &#60;h1&#62;Server Requests @ localhost&#60;/h1&#62; YLegend&#91;cacheServerRequests&#93;: requests/sec ShortLegend&#91;cacheServerRequests&#93;: req/s LegendI&#91;cacheServerRequests&#93;: Requests&#38;nbsp; LegendO&#91;cacheServerRequests&#93;: Legend1&#91;cacheServerRequests&#93;: Requests Legend2&#91;cacheServerRequests&#93;: &#160; Target&#91;cacheProtoClientHttpRequests&#93;: cacheProtoClientHttpRequests&#38;cacheProtoClientHttpRequests:public@localhost:3401 MaxBytes&#91;cacheProtoClientHttpRequests&#93;: 10000000 Title&#91;cacheProtoClientHttpRequests&#93;: Client [...]]]></description>
			<content:encoded><![CDATA[<p>แก้ squid.conf นิดหน่อย</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">acl snmppublic snmp_community <span style="color: #000000; font-weight: bold;">public</span>
snmp_port <span style="color: #cc66cc;">3401</span>
snmp_access allow snmppublic localhost
snmp_access deny all</pre></div></div>

<p>แล้วเอาไอ้นี่ใส่ mrtg.cfg</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">LoadMIBs<span style="color: #339933;">:</span> <span style="color: #339933;">/</span>etc<span style="color: #339933;">/</span>squid<span style="color: #339933;">/</span>mib<span style="color: #339933;">.</span>txt
&nbsp;
Target<span style="color: #009900;">&#91;</span>cacheServerRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> cacheServerRequests<span style="color: #339933;">&amp;</span>cacheServerRequests<span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">public</span><span style="color: #339933;">@</span>localhost<span style="color: #339933;">:</span><span style="color: #cc66cc;">3401</span>
MaxBytes<span style="color: #009900;">&#91;</span>cacheServerRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #cc66cc;">10000000</span>
Title<span style="color: #009900;">&#91;</span>cacheServerRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Server Requests <span style="color: #339933;">@</span> localhost
Options<span style="color: #009900;">&#91;</span>cacheServerRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> growright<span style="color: #339933;">,</span> nopercent
PageTop<span style="color: #009900;">&#91;</span>cacheServerRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #339933;">&lt;</span>h1<span style="color: #339933;">&gt;</span>Server Requests <span style="color: #339933;">@</span> localhost<span style="color: #339933;">&lt;/</span>h1<span style="color: #339933;">&gt;</span>
YLegend<span style="color: #009900;">&#91;</span>cacheServerRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> requests<span style="color: #339933;">/</span>sec
ShortLegend<span style="color: #009900;">&#91;</span>cacheServerRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> req<span style="color: #339933;">/</span>s
LegendI<span style="color: #009900;">&#91;</span>cacheServerRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Requests<span style="color: #339933;">&amp;</span>nbsp<span style="color: #339933;">;</span>
LegendO<span style="color: #009900;">&#91;</span>cacheServerRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span>
Legend1<span style="color: #009900;">&#91;</span>cacheServerRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Requests
Legend2<span style="color: #009900;">&#91;</span>cacheServerRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span>
&nbsp;
Target<span style="color: #009900;">&#91;</span>cacheProtoClientHttpRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> cacheProtoClientHttpRequests<span style="color: #339933;">&amp;</span>cacheProtoClientHttpRequests<span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">public</span><span style="color: #339933;">@</span>localhost<span style="color: #339933;">:</span><span style="color: #cc66cc;">3401</span>
MaxBytes<span style="color: #009900;">&#91;</span>cacheProtoClientHttpRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #cc66cc;">10000000</span>
Title<span style="color: #009900;">&#91;</span>cacheProtoClientHttpRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Client Http Requests <span style="color: #339933;">@</span> localhost
Options<span style="color: #009900;">&#91;</span>cacheProtoClientHttpRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> growright<span style="color: #339933;">,</span> nopercent
PageTop<span style="color: #009900;">&#91;</span>cacheProtoClientHttpRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #339933;">&lt;</span>h1<span style="color: #339933;">&gt;</span>Client Http Requests <span style="color: #339933;">@</span> localhost<span style="color: #339933;">&lt;/</span>h1<span style="color: #339933;">&gt;</span>
YLegend<span style="color: #009900;">&#91;</span>cacheProtoClientHttpRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> requests<span style="color: #339933;">/</span>sec
ShortLegend<span style="color: #009900;">&#91;</span>cacheProtoClientHttpRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> req<span style="color: #339933;">/</span>s
LegendI<span style="color: #009900;">&#91;</span>cacheProtoClientHttpRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Requests<span style="color: #339933;">&amp;</span>nbsp<span style="color: #339933;">;</span>
LegendO<span style="color: #009900;">&#91;</span>cacheProtoClientHttpRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span>
Legend1<span style="color: #009900;">&#91;</span>cacheProtoClientHttpRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Requests
Legend2<span style="color: #009900;">&#91;</span>cacheProtoClientHttpRequests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span>
&nbsp;
Target<span style="color: #009900;">&#91;</span>cacheHttpHits<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> cacheHttpHits<span style="color: #339933;">&amp;</span>cacheHttpHits<span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">public</span><span style="color: #339933;">@</span>localhost<span style="color: #339933;">:</span><span style="color: #cc66cc;">3401</span>
MaxBytes<span style="color: #009900;">&#91;</span>cacheHttpHits<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #cc66cc;">10000000</span>
Title<span style="color: #009900;">&#91;</span>cacheHttpHits<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> HTTP Hits <span style="color: #339933;">@</span> localhost
Options<span style="color: #009900;">&#91;</span>cacheHttpHits<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> growright<span style="color: #339933;">,</span> nopercent
PageTop<span style="color: #009900;">&#91;</span>cacheHttpHits<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #339933;">&lt;</span>h1<span style="color: #339933;">&gt;</span>HTTP Hits <span style="color: #339933;">@</span> localhost<span style="color: #339933;">&lt;/</span>h1<span style="color: #339933;">&gt;</span>
YLegend<span style="color: #009900;">&#91;</span>cacheHttpHits<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> hits<span style="color: #339933;">/</span>sec
ShortLegend<span style="color: #009900;">&#91;</span>cacheHttpHits<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> hits<span style="color: #339933;">/</span>s
LegendI<span style="color: #009900;">&#91;</span>cacheHttpHits<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Hits<span style="color: #339933;">&amp;</span>nbsp<span style="color: #339933;">;</span>
LegendO<span style="color: #009900;">&#91;</span>cacheHttpHits<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span>
Legend1<span style="color: #009900;">&#91;</span>cacheHttpHits<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Hits
Legend2<span style="color: #009900;">&#91;</span>cacheHttpHits<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span>
&nbsp;
Target<span style="color: #009900;">&#91;</span>cacheCpuUsage<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> cacheCpuUsage<span style="color: #339933;">&amp;</span>cacheCpuUsage<span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">public</span><span style="color: #339933;">@</span>localhost<span style="color: #339933;">:</span><span style="color: #cc66cc;">3401</span>
MaxBytes<span style="color: #009900;">&#91;</span>cacheCpuUsage<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #cc66cc;">100</span>
AbsMax<span style="color: #009900;">&#91;</span>cacheCpuUsage<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #cc66cc;">100</span>
Title<span style="color: #009900;">&#91;</span>cacheCpuUsage<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> CPU Usage <span style="color: #339933;">@</span> localhost
Options<span style="color: #009900;">&#91;</span>cacheCpuUsage<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> absolute<span style="color: #339933;">,</span> gauge<span style="color: #339933;">,</span> noinfo<span style="color: #339933;">,</span> growright<span style="color: #339933;">,</span> nopercent
Unscaled<span style="color: #009900;">&#91;</span>cacheCpuUsage<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> dwmy
PageTop<span style="color: #009900;">&#91;</span>cacheCpuUsage<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #339933;">&lt;</span>h1<span style="color: #339933;">&gt;</span>CPU Usage <span style="color: #339933;">@</span> localhost<span style="color: #339933;">&lt;/</span>h1<span style="color: #339933;">&gt;</span>
YLegend<span style="color: #009900;">&#91;</span>cacheCpuUsage<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> usage <span style="color: #339933;">%</span>
ShortLegend<span style="color: #009900;">&#91;</span>cacheCpuUsage<span style="color: #009900;">&#93;</span><span style="color: #339933;">:%</span>
LegendI<span style="color: #009900;">&#91;</span>cacheCpuUsage<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> CPU Usage<span style="color: #339933;">&amp;</span>nbsp<span style="color: #339933;">;</span>
LegendO<span style="color: #009900;">&#91;</span>cacheCpuUsage<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span>
Legend1<span style="color: #009900;">&#91;</span>cacheCpuUsage<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> CPU Usage
Legend2<span style="color: #009900;">&#91;</span>cacheCpuUsage<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span>
&nbsp;
Target<span style="color: #009900;">&#91;</span>cacheSysNumReads<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> cacheSysNumReads<span style="color: #339933;">&amp;</span>cacheSysNumReads<span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">public</span><span style="color: #339933;">@</span>localhost<span style="color: #339933;">:</span><span style="color: #cc66cc;">3401</span>
MaxBytes<span style="color: #009900;">&#91;</span>cacheSysNumReads<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #cc66cc;">10000000</span>
Title<span style="color: #009900;">&#91;</span>cacheSysNumReads<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> HTTP I<span style="color: #339933;">/</span>O number of reads <span style="color: #339933;">@</span> localhost
Options<span style="color: #009900;">&#91;</span>cacheSysNumReads<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> growright<span style="color: #339933;">,</span> nopercent
PageTop<span style="color: #009900;">&#91;</span>cacheSysNumReads<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #339933;">&lt;</span>h1<span style="color: #339933;">&gt;</span>HTTP I<span style="color: #339933;">/</span>O number of reads <span style="color: #339933;">@</span> localhost<span style="color: #339933;">&lt;/</span>h1<span style="color: #339933;">&gt;</span>
YLegend<span style="color: #009900;">&#91;</span>cacheSysNumReads<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> reads<span style="color: #339933;">/</span>sec
ShortLegend<span style="color: #009900;">&#91;</span>cacheSysNumReads<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> reads<span style="color: #339933;">/</span>s
LegendI<span style="color: #009900;">&#91;</span>cacheSysNumReads<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> I<span style="color: #339933;">/</span>O<span style="color: #339933;">&amp;</span>nbsp<span style="color: #339933;">;</span>
LegendO<span style="color: #009900;">&#91;</span>cacheSysNumReads<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span>
Legend1<span style="color: #009900;">&#91;</span>cacheSysNumReads<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> I<span style="color: #339933;">/</span>O
Legend2<span style="color: #009900;">&#91;</span>cacheSysNumReads<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span>
&nbsp;
Target<span style="color: #009900;">&#91;</span>cacheCurrentFileDescrCnt<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> cacheCurrentFileDescrCnt<span style="color: #339933;">&amp;</span>cacheCurrentFileDescrCnt<span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">public</span><span style="color: #339933;">@</span>localhost<span style="color: #339933;">:</span><span style="color: #cc66cc;">3401</span>
MaxBytes<span style="color: #009900;">&#91;</span>cacheCurrentFileDescrCnt<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #cc66cc;">1000000000</span>
Title<span style="color: #009900;">&#91;</span>cacheCurrentFileDescrCnt<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Used <span style="color: #990000;">File</span> Descriptors
Options<span style="color: #009900;">&#91;</span>cacheCurrentFileDescrCnt<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> gauge<span style="color: #339933;">,</span> growright<span style="color: #339933;">,</span> nopercent
PageTop<span style="color: #009900;">&#91;</span>cacheCurrentFileDescrCnt<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #339933;">&lt;</span>h1<span style="color: #339933;">&gt;</span>Number of used <span style="color: #990000;">file</span> descriptors <span style="color: #339933;">@</span> localhost<span style="color: #339933;">&lt;/</span>h1<span style="color: #339933;">&gt;</span>
YLegend<span style="color: #009900;">&#91;</span>cacheCurrentFileDescrCnt<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;"># of FDs
</span>ShortLegend<span style="color: #009900;">&#91;</span>cacheCurrentFileDescrCnt<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> FDs
LegendI<span style="color: #009900;">&#91;</span>cacheCurrentFileDescrCnt<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #990000;">File</span> Descriptors<span style="color: #339933;">&amp;</span>nbsp<span style="color: #339933;">;</span>
LegendO<span style="color: #009900;">&#91;</span>cacheCurrentFileDescrCnt<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span>
Legend1<span style="color: #009900;">&#91;</span>cacheCurrentFileDescrCnt<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #990000;">File</span> Descriptors
Legend2<span style="color: #009900;">&#91;</span>cacheCurrentFileDescrCnt<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span>
&nbsp;
Target<span style="color: #009900;">&#91;</span>cacheRequestHitRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> cacheRequestHitRatio<span style="color: #339933;">.</span>5<span style="color: #339933;">&amp;</span>cacheRequestHitRatio<span style="color: #339933;">.</span>60<span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">public</span><span style="color: #339933;">@</span>localhost<span style="color: #339933;">:</span><span style="color: #cc66cc;">3401</span>
MaxBytes<span style="color: #009900;">&#91;</span>cacheRequestHitRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #cc66cc;">100</span>
AbsMax<span style="color: #009900;">&#91;</span>cacheRequestHitRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #cc66cc;">100</span>
Title<span style="color: #009900;">&#91;</span>cacheRequestHitRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Request Hit Ratio <span style="color: #339933;">@</span> localhost
Options<span style="color: #009900;">&#91;</span>cacheRequestHitRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> absolute<span style="color: #339933;">,</span> gauge<span style="color: #339933;">,</span> noinfo<span style="color: #339933;">,</span> growright<span style="color: #339933;">,</span> nopercent
Unscaled<span style="color: #009900;">&#91;</span>cacheRequestHitRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> dwmy
PageTop<span style="color: #009900;">&#91;</span>cacheRequestHitRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #339933;">&lt;</span>h1<span style="color: #339933;">&gt;</span>Request Hit Ratio <span style="color: #339933;">@</span> localhost<span style="color: #339933;">&lt;/</span>h1<span style="color: #339933;">&gt;</span>
YLegend<span style="color: #009900;">&#91;</span>cacheRequestHitRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #339933;">%</span>
ShortLegend<span style="color: #009900;">&#91;</span>cacheRequestHitRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #339933;">%</span>
LegendI<span style="color: #009900;">&#91;</span>cacheRequestHitRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Median Hit Ratio <span style="color: #009900;">&#40;</span>5min<span style="color: #009900;">&#41;</span><span style="color: #339933;">&amp;</span>nbsp<span style="color: #339933;">;</span>
LegendO<span style="color: #009900;">&#91;</span>cacheRequestHitRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Median Hit Ratio <span style="color: #009900;">&#40;</span>60min<span style="color: #009900;">&#41;</span><span style="color: #339933;">&amp;</span>nbsp<span style="color: #339933;">;</span>
Legend1<span style="color: #009900;">&#91;</span>cacheRequestHitRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Median Hit Ratio
Legend2<span style="color: #009900;">&#91;</span>cacheRequestHitRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Median Hit Ratio
&nbsp;
Target<span style="color: #009900;">&#91;</span>cacheRequestByteRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> cacheRequestByteRatio<span style="color: #339933;">.</span>5<span style="color: #339933;">&amp;</span>cacheRequestByteRatio<span style="color: #339933;">.</span>60<span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">public</span><span style="color: #339933;">@</span>localhost<span style="color: #339933;">:</span><span style="color: #cc66cc;">3401</span>
MaxBytes<span style="color: #009900;">&#91;</span>cacheRequestByteRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #cc66cc;">100</span>
AbsMax<span style="color: #009900;">&#91;</span>cacheRequestByteRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #cc66cc;">100</span>
Title<span style="color: #009900;">&#91;</span>cacheRequestByteRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Byte Hit Ratio <span style="color: #339933;">@</span> localhost
Options<span style="color: #009900;">&#91;</span>cacheRequestByteRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> absolute<span style="color: #339933;">,</span> gauge<span style="color: #339933;">,</span> noinfo<span style="color: #339933;">,</span> growright<span style="color: #339933;">,</span> nopercent
Unscaled<span style="color: #009900;">&#91;</span>cacheRequestByteRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> dwmy
PageTop<span style="color: #009900;">&#91;</span>cacheRequestByteRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #339933;">&lt;</span>h1<span style="color: #339933;">&gt;</span>Byte Hit Ratio <span style="color: #339933;">@</span> localhost<span style="color: #339933;">&lt;/</span>h1<span style="color: #339933;">&gt;</span>
YLegend<span style="color: #009900;">&#91;</span>cacheRequestByteRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #339933;">%</span>
ShortLegend<span style="color: #009900;">&#91;</span>cacheRequestByteRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:%</span>
LegendI<span style="color: #009900;">&#91;</span>cacheRequestByteRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Median Hit Ratio <span style="color: #009900;">&#40;</span>5min<span style="color: #009900;">&#41;</span><span style="color: #339933;">&amp;</span>nbsp<span style="color: #339933;">;</span>
LegendO<span style="color: #009900;">&#91;</span>cacheRequestByteRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Median Hit Ratio <span style="color: #009900;">&#40;</span>60min<span style="color: #009900;">&#41;</span><span style="color: #339933;">&amp;</span>nbsp<span style="color: #339933;">;</span>
Legend1<span style="color: #009900;">&#91;</span>cacheRequestByteRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Median Hit Ratio
Legend2<span style="color: #009900;">&#91;</span>cacheRequestByteRatio<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Median Hit Ratio</pre></div></div>

<p>จริงๆ มันมีอีกเพียบเลย แต่ไม่รู้จะใส่ไว้ทำไม รก</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icez.net/blog/369/mrtg-%e0%b8%aa%e0%b8%b3%e0%b8%ab%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b8%88%e0%b8%b1%e0%b8%9a%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3%e0%b8%87%e0%b8%b2%e0%b8%99%e0%b8%82%e0%b8%ad%e0%b8%87-squid/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>0064 &#124; แก้ปัญหา IP ใน log apache ไม่ตรง</title>
		<link>http://www.icez.net/blog/131/%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-ip-%e0%b9%83%e0%b8%99-log-apache-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b8%95%e0%b8%a3%e0%b8%87</link>
		<comments>http://www.icez.net/blog/131/%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-ip-%e0%b9%83%e0%b8%99-log-apache-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b8%95%e0%b8%a3%e0%b8%87#comments</comments>
		<pubDate>Fri, 19 Jun 2009 04:17:44 +0000</pubDate>
		<dc:creator>icez</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Server]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[squid]]></category>

		<guid isPermaLink="false">http://www.icez.net/blog/?p=131</guid>
		<description><![CDATA[ที่มา: การติดตั้ง mod_rpaf &#8211; reverse proxy add forward รายละเอียดตามไปดูในที่มาละกันเนาะ ขี้เกียจพิมพ์ซ้ำ เอาวิธีก๊อปวางบ้านๆ ของเราดีกว่า wget http://stderr.net/apache/rpaf/download/mod_rpaf-0.6.tar.gz tar -xvzf mod_rpaf-0.6.tar.gz cd mod_rpaf-0.6 apxs -i -c -n mod_rpaf-2.0.so mod_rpaf-2.0.c เปิดไฟล์ config apache (แนะนำให้ใส่ใน /etc/httpd/conf.d/mod_rpaf.conf) แก้ตัวแดงๆ ให้ตรงกับเครื่องคุณเองด้วยนะครับ - อันบนเอาบรรทัดสุดท้ายจากคำสั่ง apxs มา - อันล่างเอาเป็น ip ของเครื่อง squid LoadModule rpaf_module /usr/lib64/httpd/modules/mod_rpaf-2.0.so RPAFenable On RPAFsethostname Off RPAFproxy_ips 127.0.0.1 RPAFheader X-Forwarded-For ถ้าใช้ตัวนี้ ก็เอา ipfix.php [...]]]></description>
			<content:encoded><![CDATA[<p>ที่มา: <a href="http://toey.tc20.net/2009/05/25/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87-mod_rpaf-reverse-proxy-add-forward/" target="_blank">การติดตั้ง mod_rpaf &#8211; reverse proxy add forward</a></p>
<p>รายละเอียดตามไปดูในที่มาละกันเนาะ ขี้เกียจพิมพ์ซ้ำ<br />
เอาวิธีก๊อปวางบ้านๆ ของเราดีกว่า</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>stderr.net<span style="color: #000000; font-weight: bold;">/</span>apache<span style="color: #000000; font-weight: bold;">/</span>rpaf<span style="color: #000000; font-weight: bold;">/</span>download<span style="color: #000000; font-weight: bold;">/</span>mod_rpaf-<span style="color: #000000;">0.6</span>.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvzf</span> mod_rpaf-<span style="color: #000000;">0.6</span>.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> mod_rpaf-<span style="color: #000000;">0.6</span>
apxs <span style="color: #660033;">-i</span> <span style="color: #660033;">-c</span> <span style="color: #660033;">-n</span> mod_rpaf-<span style="color: #000000;">2.0</span>.so mod_rpaf-<span style="color: #000000;">2.0</span>.c</pre></div></div>

<p>เปิดไฟล์ config apache (แนะนำให้ใส่ใน /etc/httpd/conf.d/mod_rpaf.conf)<br />
แก้ตัวแดงๆ ให้ตรงกับเครื่องคุณเองด้วยนะครับ<br />
- อันบนเอาบรรทัดสุดท้ายจากคำสั่ง apxs มา<br />
- อันล่างเอาเป็น ip ของเครื่อง squid</p>
<div class="wp_syntax">
<div class="code">
<pre class="bash" style="font-family: monospace;">LoadModule rpaf_module <span style="color: red; font-weight: bold;">/usr/lib64/httpd/modules/mod_rpaf-2.0.so</span>
RPAFenable On
RPAFsethostname Off
RPAFproxy_ips <span style="color: red; font-weight: bold;">127.0.0.1</span>
RPAFheader X-Forwarded-For</pre>
</div>
</div>
<p>ถ้าใช้ตัวนี้ ก็เอา ipfix.php ออกไปได้เลยครับ</p>
<p><strong>บทความที่เกี่ยวข้อง</strong><br />
- <a href="http://www.icez.net/blog/59/squid-26-as-reverse-transparent-proxy">0052 | squid 2.6 as reverse transparent proxy</a><br />
- <a href="http://www.icez.net/blog/60/%e0%b8%82%e0%b8%ad%e0%b8%87%e0%b9%81%e0%b8%96%e0%b8%a1-reverse-proxy-ipfix-php">0053 | ของแถม reverse proxy ipfix.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.icez.net/blog/131/%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-ip-%e0%b9%83%e0%b8%99-log-apache-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b8%95%e0%b8%a3%e0%b8%87/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: www.icez.net @ 2012-02-10 17:19:18 -->
