<?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; mrtg</title>
	<atom:link href="http://www.icez.net/blog/tags/mrtg/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>0102 &#124; MRTG monitoring script for nginx</title>
		<link>http://www.icez.net/blog/710/mrtg-monitoring-script-for-nginx</link>
		<comments>http://www.icez.net/blog/710/mrtg-monitoring-script-for-nginx#comments</comments>
		<pubDate>Tue, 06 Jul 2010 04:27:20 +0000</pubDate>
		<dc:creator>icez</dc:creator>
				<category><![CDATA[IP Network]]></category>
		<category><![CDATA[Web Server]]></category>
		<category><![CDATA[mrtg]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.icez.net/blog/?p=710</guid>
		<description><![CDATA[สร้างไฟล์ /root/bin/mrtg-nginx.pl ข้อมูลตามนี้ #!/usr/bin/perl # $Revision: 2 $ # $Date: 2008-09-12 15:11:40 +0300 (Fri, 12 Sep 2008) $ &#160; my %opt = &#40; # http link to nginx stub_status, be sure turn on stub_status in nginx conf nginx_status =&#62; 'http://localhost:80/status', # path for program what may dump web page, normaly lynx -dump # lynx =&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>สร้างไฟล์ /root/bin/mrtg-nginx.pl ข้อมูลตามนี้</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/bin/perl</span>
<span style="color: #666666; font-style: italic;"># $Revision: 2 $</span>
<span style="color: #666666; font-style: italic;"># $Date: 2008-09-12 15:11:40 +0300 (Fri, 12 Sep 2008) $</span>
&nbsp;
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">%opt</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>
<span style="color: #666666; font-style: italic;"># http link to nginx stub_status, be sure turn on stub_status in nginx conf</span>
    nginx_status   <span style="color: #339933;">=&gt;</span> <span style="color: #ff0000;">'http://localhost:80/status'</span><span style="color: #339933;">,</span>
<span style="color: #666666; font-style: italic;"># path for program what may dump web page, normaly lynx -dump</span>
<span style="color: #666666; font-style: italic;">#    lynx            =&gt; 'lynx -dump',</span>
    lynx            <span style="color: #339933;">=&gt;</span> <span style="color: #ff0000;">'wget -q -Y off -O -'</span><span style="color: #339933;">,</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #0000ff;">$opt</span><span style="color: #009900;">&#123;</span>var<span style="color: #009900;">&#125;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$ARGV</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">if</span> <span style="color: #0000ff;">$ARGV</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$opt</span><span style="color: #009900;">&#123;</span>nginx_status<span style="color: #009900;">&#125;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$ARGV</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">if</span> <span style="color: #0000ff;">$ARGV</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">and</span> <span style="color: #0000ff;">$ARGV</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=~/^</span>http<span style="color: #339933;">:</span>\<span style="color: #339933;">/</span>\<span style="color: #339933;">/</span><span style="color: #0000ff;">\w</span><span style="color: #339933;">+/;</span>
<span style="color: #0000ff;">$opt</span><span style="color: #009900;">&#123;</span>var<span style="color: #009900;">&#125;</span> <span style="color: #339933;">||=</span> <span style="color: #ff0000;">''</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$do</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">`$opt{lynx} $opt{nginx_status}`</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$opt</span><span style="color: #009900;">&#123;</span>var<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">eq</span> <span style="color: #ff0000;">'req'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #0000ff;">$do</span><span style="color: #339933;">=~/^</span>Active connections<span style="color: #339933;">:</span>\<span style="color: #000066;">s</span><span style="color: #339933;">*</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">\d</span><span style="color: #339933;">+</span><span style="color: #009900;">&#41;</span>\<span style="color: #000066;">s</span><span style="color: #339933;">*</span>$<span style="color: #339933;">/</span>ms <span style="color: #b1b100;">or</span> <span style="color: #000066;">warn</span> <span style="color: #ff0000;">&quot;Error! Can't find data!<span style="color: #000099; font-weight: bold;">\n</span>IN :<span style="color: #000099; font-weight: bold;">\n</span>$do&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #0000ff;">$opt</span><span style="color: #009900;">&#123;</span>d2<span style="color: #009900;">&#125;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$opt</span><span style="color: #009900;">&#123;</span>d1<span style="color: #009900;">&#125;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$1</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">elsif</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$opt</span><span style="color: #009900;">&#123;</span>var<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">eq</span> <span style="color: #ff0000;">'con'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #0000ff;">$do</span><span style="color: #339933;">=~/^</span>\<span style="color: #000066;">s</span><span style="color: #339933;">*</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">\d</span><span style="color: #339933;">+</span><span style="color: #009900;">&#41;</span>\<span style="color: #000066;">s</span><span style="color: #339933;">+</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">\d</span><span style="color: #339933;">+</span><span style="color: #009900;">&#41;</span>\<span style="color: #000066;">s</span><span style="color: #339933;">+</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">\d</span><span style="color: #339933;">+</span><span style="color: #009900;">&#41;</span>\<span style="color: #000066;">s</span><span style="color: #339933;">*</span>$<span style="color: #339933;">/</span>ms <span style="color: #b1b100;">or</span> <span style="color: #000066;">warn</span> <span style="color: #ff0000;">&quot;Error! Can't find data!<span style="color: #000099; font-weight: bold;">\n</span>IN :<span style="color: #000099; font-weight: bold;">\n</span>$do&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #0000ff;">$opt</span><span style="color: #009900;">&#123;</span>d2<span style="color: #009900;">&#125;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$opt</span><span style="color: #009900;">&#123;</span>d1<span style="color: #009900;">&#125;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$3</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">#elsif { $do=~/^Reading:\s+(\d+).*Writing:\s+(\d+).*Waiting:\s+(\d+)/; }</span>
<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #0000ff;">$opt</span><span style="color: #009900;">&#123;</span>var<span style="color: #009900;">&#125;</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">'ERROR'</span><span style="color: #339933;">;</span>
    <span style="color: #0000ff;">$opt</span><span style="color: #009900;">&#123;</span>d2<span style="color: #009900;">&#125;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$opt</span><span style="color: #009900;">&#123;</span>d1<span style="color: #009900;">&#125;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
    <span style="color: #000066;">warn</span> <span style="color: #ff0000;">&quot;Error! Please read the help and set (req|con)<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;$opt{d1}<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;$opt{d2}<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">#print &quot;$opt{up}\n&quot; if $opt{up};</span>
<span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;Nginx $opt{var}<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>เสร็จแล้วสั่ง<br />
chmod a+x /root/bin/mrtg-nginx.pl<br />
ให้รันได้</p>
<p>แล้วเอาไอ้นี่ไปใส่ใน nginx.conf ส่วนของ vhost นะครับ</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">location <span style="color: #339933;">/</span>status <span style="color: #009900;">&#123;</span>
    stub_status on<span style="color: #339933;">;</span>
    access_log off<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>แล้วก็&#8230; อันนี้เอาไปใส่ใน mrtg.cfg</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">Target<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>newconns<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> `<span style="color: #339933;">/</span>root<span style="color: #339933;">/</span>bin<span style="color: #339933;">/</span>mrtg<span style="color: #339933;">-</span>nginx<span style="color: #339933;">.</span>pl con`
Title<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>newconns<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> NGINX Connections
PageTop<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>newconns<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #339933;">&lt;</span>H1<span style="color: #339933;">&gt;</span>NGINX Connections<span style="color: #339933;">&lt;/</span>H1<span style="color: #339933;">&gt;</span>
MaxBytes<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>newconns<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #cc66cc;">10000000000</span>
ShortLegend<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>newconns<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> c<span style="color: #339933;">/</span>s
YLegend<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>newconns<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Conns <span style="color: #339933;">/</span> sec
LegendI<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>newconns<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> In
LegendO<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>newconns<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span>
Legend1<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>newconns<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">New</span> inbound connections
Legend2<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>newconns<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span>
Options<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>newconns<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> growright<span style="color: #339933;">,</span>nopercent
&nbsp;
Target<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>requests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> `<span style="color: #339933;">/</span>root<span style="color: #339933;">/</span>bin<span style="color: #339933;">/</span>mrtg<span style="color: #339933;">-</span>nginx<span style="color: #339933;">.</span>pl req`
Title<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>requests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> NGINX Requests
PageTop<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>requests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #339933;">&lt;</span>H1<span style="color: #339933;">&gt;</span>NGINX Requests<span style="color: #339933;">&lt;/</span>H1<span style="color: #339933;">&gt;</span>
MaxBytes<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>requests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #cc66cc;">10000000000</span>
ShortLegend<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>requests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> req
YLegend<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>requests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Req
LegendI<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>requests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> In
LegendO<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>requests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span>
Legend1<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>requests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">New</span> inbound connections
Legend2<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>requests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span>
Options<span style="color: #009900;">&#91;</span>nginx<span style="color: #339933;">.</span>requests<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> growright<span style="color: #339933;">,</span>nopercent<span style="color: #339933;">,</span>gauge</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.icez.net/blog/710/mrtg-monitoring-script-for-nginx/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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>0024 &#124; ลง MRTG บน CentOS/Fedora แบบง่ายๆ</title>
		<link>http://www.icez.net/blog/28/%e0%b8%a5%e0%b8%87-mrtg-%e0%b8%9a%e0%b8%99-centosfedora-%e0%b9%81%e0%b8%9a%e0%b8%9a%e0%b8%87%e0%b9%88%e0%b8%b2%e0%b8%a2%e0%b9%86</link>
		<comments>http://www.icez.net/blog/28/%e0%b8%a5%e0%b8%87-mrtg-%e0%b8%9a%e0%b8%99-centosfedora-%e0%b9%81%e0%b8%9a%e0%b8%9a%e0%b8%87%e0%b9%88%e0%b8%b2%e0%b8%a2%e0%b9%86#comments</comments>
		<pubDate>Wed, 02 Jul 2008 13:42:26 +0000</pubDate>
		<dc:creator>icez</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[mrtg]]></category>

		<guid isPermaLink="false">http://www.icez.net/blog/?p=28</guid>
		<description><![CDATA[ขั้นตอนพวกนี้ ก๊อปปี้แล้ววางได้เลยครับ จดไว้กันลืม 555+ ทำมาด้วยความขี้เกียจของตัวข้าพเจ้าเองแหละ yum -y install net-snmp mrtg wget -4 -O /etc/snmp/snmpd.conf www.icez.net/files/snmpd.conf wget -4 -O /var/www/mrtg/mrtg-load.sh www.icez.net/files/mrtg-load.sh chmod a+x /var/www/mrtg/mrtg-load.sh /etc/init.d/snmpd restart cfgmaker --global 'WorkDir: /var/www/mrtg' --global 'Options[_]: bits,growright' --output /var/www/mrtg/mrtg.cfg public@localhost wget -4 -O /tmp/mrtg.cfg www.icez.net/files/mrtg.cfg cat /tmp/mrtg.cfg &#62;&#62; /var/www/mrtg/mrtg.cfg /bin/cp -fv /var/www/mrtg/mrtg.cfg /etc/mrtg/mrtg.cfg echo &#34;Alias /mrtg /var/www/mrtg&#34; &#62; /etc/httpd/conf.d/mrtg.conf /sbin/chkconfig [...]]]></description>
			<content:encoded><![CDATA[<p>ขั้นตอนพวกนี้ ก๊อปปี้แล้ววางได้เลยครับ<br />
จดไว้กันลืม 555+<br />
ทำมาด้วยความขี้เกียจของตัวข้าพเจ้าเองแหละ</p>
<blockquote>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> net-snmp mrtg
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-4</span> <span style="color: #660033;">-O</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>snmp<span style="color: #000000; font-weight: bold;">/</span>snmpd.conf www.icez.net<span style="color: #000000; font-weight: bold;">/</span>files<span style="color: #000000; font-weight: bold;">/</span>snmpd.conf
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-4</span> <span style="color: #660033;">-O</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>mrtg<span style="color: #000000; font-weight: bold;">/</span>mrtg-load.sh www.icez.net<span style="color: #000000; font-weight: bold;">/</span>files<span style="color: #000000; font-weight: bold;">/</span>mrtg-load.sh
<span style="color: #c20cb9; font-weight: bold;">chmod</span> a+x <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>mrtg<span style="color: #000000; font-weight: bold;">/</span>mrtg-load.sh
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>snmpd restart
cfgmaker <span style="color: #660033;">--global</span> <span style="color: #ff0000;">'WorkDir: /var/www/mrtg'</span> <span style="color: #660033;">--global</span> <span style="color: #ff0000;">'Options[_]: bits,growright'</span> <span style="color: #660033;">--output</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>mrtg<span style="color: #000000; font-weight: bold;">/</span>mrtg.cfg public<span style="color: #000000; font-weight: bold;">@</span>localhost
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-4</span> <span style="color: #660033;">-O</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>mrtg.cfg www.icez.net<span style="color: #000000; font-weight: bold;">/</span>files<span style="color: #000000; font-weight: bold;">/</span>mrtg.cfg
<span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>mrtg.cfg <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>mrtg<span style="color: #000000; font-weight: bold;">/</span>mrtg.cfg
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-fv</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>mrtg<span style="color: #000000; font-weight: bold;">/</span>mrtg.cfg <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>mrtg<span style="color: #000000; font-weight: bold;">/</span>mrtg.cfg
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Alias /mrtg /var/www/mrtg&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>httpd<span style="color: #000000; font-weight: bold;">/</span>conf.d<span style="color: #000000; font-weight: bold;">/</span>mrtg.conf
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>chkconfig snmpd on
indexmaker <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>mrtg<span style="color: #000000; font-weight: bold;">/</span>mrtg.cfg <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>mrtg<span style="color: #000000; font-weight: bold;">/</span>index.html
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>httpd graceful</pre></div></div>

</blockquote>
<p>สั้นๆ ง่ายๆ ได้ใจความ</p>
<p>ปล. สำหรับ fedora 9 ไอ้ mrtg ที่แถมมามันรันไม่ขึ้น ไม่รู้เน่าตรงไหน<br />
ก็เลยต้อง compile เพิ่มเองนิดหน่อยครับ<br />
ขั้นตอนตามนี้ (copy แล้ววางอีกแล้วครับทั่น)</p>
<blockquote>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>oss.oetiker.ch<span style="color: #000000; font-weight: bold;">/</span>mrtg<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>mrtg-2.16.4.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxf mrtg-2.16.4.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> mrtg-2.16.4
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libpng-devel gd-devel
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mrtg <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;*/5 * * * * root LANG=C LC_ALL=C /usr/local/mrtg/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cron.d<span style="color: #000000; font-weight: bold;">/</span>mrtg</pre></div></div>

</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.icez.net/blog/28/%e0%b8%a5%e0%b8%87-mrtg-%e0%b8%9a%e0%b8%99-centosfedora-%e0%b9%81%e0%b8%9a%e0%b8%9a%e0%b8%87%e0%b9%88%e0%b8%b2%e0%b8%a2%e0%b9%86/feed</wfw:commentRss>
		<slash:comments>5</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:03:21 -->
