<?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>Michael`s blog &#187; mrtg</title>
	<atom:link href="http://www.toplee.com/blog/tag/mrtg/feed" rel="self" type="application/rss+xml" />
	<link>http://www.toplee.com/blog</link>
	<description>活到老，学到老 ...   @ IT，业界，互联网</description>
	<lastBuildDate>Mon, 19 Jul 2010 05:38:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>BSD上Port安装MRTG取不到 ssCpuRawUser.0 之类的值</title>
		<link>http://www.toplee.com/blog/799.html</link>
		<comments>http://www.toplee.com/blog/799.html#comments</comments>
		<pubDate>Fri, 20 Mar 2009 04:42:37 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Linux / BSD]]></category>
		<category><![CDATA[mrtg]]></category>

		<guid isPermaLink="false">http://www.toplee.com/blog/?p=799</guid>
		<description><![CDATA[用Port安装的MRTG，无法取到 ssCpuRawUser.0 的值，很是郁闷，还以为是snmp的配置问题，折腾半天，但是通过 snmpget 和 snmpwalk 是可以得到的，于是删除掉port安装的mrtg，下载源码包手动安装搞定，在Redhat上没有这样的问题，谁知道什么原因？]]></description>
			<content:encoded><![CDATA[<p>用Port安装的MRTG，无法取到 ssCpuRawUser.0 的值，很是郁闷，还以为是snmp的配置问题，折腾半天，但是通过 snmpget 和 snmpwalk 是可以得到的，于是删除掉port安装的mrtg，下载源码包手动安装搞定，在Redhat上没有这样的问题，谁知道什么原因？ </p>
]]></content:encoded>
			<wfw:commentRss>http://www.toplee.com/blog/799.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>把mrtg、awstats和bugzilla都移到了lighttpd下</title>
		<link>http://www.toplee.com/blog/377.html</link>
		<comments>http://www.toplee.com/blog/377.html#comments</comments>
		<pubDate>Sat, 17 Mar 2007 17:18:20 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Web架构/负载/性能]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[awstats]]></category>
		<category><![CDATA[bugzilla]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[mrtg]]></category>

		<guid isPermaLink="false">http://www.toplee.com/blog/archives/377.html</guid>
		<description><![CDATA[　　今天晚饭后抽了点闲功夫，把mrtg、awstats和bugzilla都移到的lighttpd下，于是把之前单独为这几个东西跑的apache停了，全部使用lighttpd提供web服务，系统开销又能小一些。 　　mrtg很容易移植，几乎不用配置甚么就可以了，awstats和bugzilla都是perl的，需要配置lighttpd的cgi支持，简单的使用下面一行即可搞定awstats的移植 $HTTP[&#34;url&#34;] =~ &#34;^/awstats/&#34; {&#160;&#160; &#160; &#160; &#160;cgi.assign = (&#160;&#160; &#160; &#160; &#160; &#160; &#160;&#34;.pl&#34; =&#62; &#34;/usr/bin/perl&#34;,&#160;&#160; &#160; &#160; &#160; &#160; &#160;&#34;.cgi&#34; =&#62; &#34;/usr/bin/perl&#34;&#160;&#160; &#160; &#160; &#160; &#160; &#160;)} 　　不过照着上面的代码设置bugzilla的时候却遇到了问题，bugzilla的每个文件里面第一行的perl命令后加入了 -wT参数，在lighhtpd下以cgi模式运行会报 500 错误，尝试修改了index.cgi，去掉 -wT参数后可以正常运行，于是使用了下面的一句命令，把全部的cgi文件中-wT参数都给去掉了，这句命令估计对很多人都能有帮助：） sed -in-place -e &#34;s/ -wT/ /g&#34; `grep &#34; -wT&#34; -l ./*.cgi` 　　搞定！ 　　逐渐的，我开始抛弃Apache了。]]></description>
			<content:encoded><![CDATA[<p>　　今天晚饭后抽了点闲功夫，把mrtg、awstats和bugzilla都移到的lighttpd下，于是把之前单独为这几个东西跑的apache停了，全部使用lighttpd提供web服务，系统开销又能小一些。</p>
<p>　　mrtg很容易移植，几乎不用配置甚么就可以了，awstats和bugzilla都是perl的，需要配置lighttpd的cgi支持，简单的使用下面一行即可搞定awstats的移植</p>
<div class="hl-surround"><div class="hl-main">$HTTP[&quot;url&quot;] =~ &quot;^/awstats/&quot; {<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;cgi.assign = (<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;.pl&quot; =&gt; &quot;/usr/bin/perl&quot;,<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;.cgi&quot; =&gt; &quot;/usr/bin/perl&quot;<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)<br />}</div></div>
<p>　　不过照着上面的代码设置bugzilla的时候却遇到了问题，bugzilla的每个文件里面第一行的perl命令后加入了 -wT参数，在lighhtpd下以cgi模式运行会报 500 错误，尝试修改了index.cgi，去掉 -wT参数后可以正常运行，于是使用了下面的一句命令，把全部的cgi文件中-wT参数都给去掉了，这句命令估计对很多人都能有帮助：）</p>
<div class="hl-surround"><div class="hl-main">sed -in-place -e &quot;s/ -wT/ /g&quot; `grep &quot; -wT&quot; -l ./*.cgi`</div></div>
<p>　　搞定！</p>
<p>　　逐渐的，我开始抛弃Apache了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.toplee.com/blog/377.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>
