<?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>Jason's blog &#187; Cacti</title>
	<atom:link href="http://www.10235.com/tag/cacti/feed" rel="self" type="application/rss+xml" />
	<link>http://www.10235.com</link>
	<description>Well,Such is life</description>
	<lastBuildDate>Sun, 05 Feb 2012 14:27:32 +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>Installing Cactid/Spine</title>
		<link>http://www.10235.com/technic/installing-spine-cactid.html</link>
		<comments>http://www.10235.com/technic/installing-spine-cactid.html#comments</comments>
		<pubDate>Tue, 11 Dec 2007 14:26:41 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Technic]]></category>
		<category><![CDATA[Cacti]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.10235.com/linux/installing-spine-cactid.html</guid>
		<description><![CDATA[<a href="http://www.10235.com/technic/installing-spine-cactid.html" title="Installing Cactid/Spine"></a>     Cacti在运行的时候，需要在crontab里添加计划任务，默认是使用cmd.php来执行任务，但效率低下，因此我们用Cactid/Spine来取代cmd.php&#8230; 1.编译 Spine/Cactid 编译Spine/Cactid之前，先确认已经安装以下packages: net-snmp-devel mysql mysql-devel openssl-devel Compiling Spine 2.下载最新版本的Spine/Cactid 并编译成为二进制可执行文件: # tar xvzf cacti-spine-0.8.7.tar.gz # cd spine-0.8.7 # ./configure # make # mkdir /usr/local/spine # cp spine  spine.conf  /usr/local/spine 编辑 spine.conf 文件，输入数据库名、数据库用户名和密码等信息. 3.使用管理员帐号登陆Cacti.在系统参数中制定Spine/Cactid的物理路径. Console -&#62; Configuration -&#62; Settings &#8230;<p class="read-more"><a href="http://www.10235.com/technic/installing-spine-cactid.html">继续阅读 &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.10235.com/technic/installing-spine-cactid.html" title="Installing Cactid/Spine"></a><p>     Cacti在运行的时候，需要在crontab里添加计划任务，默认是使用cmd.php来执行任务，但效率低下，因此我们用Cactid/Spine来取代cmd.php&#8230;</p>
<p>1.编译 Spine/Cactid</p>
<p>编译Spine/Cactid之前，先确认已经安装以下packages:</p>
<p><code>net-snmp-devel<br />
mysql<br />
mysql-devel<br />
openssl-devel<br />
Compiling Spine</code></p>
<p>2.下载最新版本的Spine/Cactid 并编译成为二进制可执行文件:</p>
<p><code># tar xvzf cacti-spine-0.8.7.tar.gz<br />
# cd spine-0.8.7<br />
# ./configure<br />
# make<br />
# mkdir /usr/local/spine<br />
# cp spine  spine.conf  /usr/local/spine</code></p>
<p>编辑 spine.conf 文件，输入数据库名、数据库用户名和密码等信息.</p>
<p>3.使用管理员帐号登陆Cacti.在系统参数中制定Spine/Cactid的物理路径.</p>
<p>Console -&gt; Configuration -&gt; Settings -&gt; Paths -&gt; Alternate Poller Path -&gt; Spine Poller File Path <br />
 </p>
]]></content:encoded>
			<wfw:commentRss>http://www.10235.com/technic/installing-spine-cactid.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Upgrading Cacti</title>
		<link>http://www.10235.com/technic/upgrading-cacti.html</link>
		<comments>http://www.10235.com/technic/upgrading-cacti.html#comments</comments>
		<pubDate>Tue, 11 Dec 2007 14:10:42 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Technic]]></category>
		<category><![CDATA[Cacti]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.10235.com/linux/upgrading-cacti.html</guid>
		<description><![CDATA[<a href="http://www.10235.com/technic/upgrading-cacti.html" title="Upgrading Cacti"></a>    Cacti已经发布了0.8.7a版本，下午把监控服务器上的cacti从0.8.6j升级到新版本。     1. 备份数据库.  # service mysqld stop  # cp -R /var/lib/mysql/cacti  /var/lib/mysql/cacti_old    2. 备份cacti程序目录. # mv cacti cacti_old     3. 解压新版本压缩包. # tar xzvf cacti-version.tar.gz     4. 重命名解压目录.  # mv cacti-version cacti     5. 编辑 include/config.php 设定好数据库类型、数据库名、数据库用户名和密码.  $database_type = &#8230;<p class="read-more"><a href="http://www.10235.com/technic/upgrading-cacti.html">继续阅读 &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.10235.com/technic/upgrading-cacti.html" title="Upgrading Cacti"></a><p>    Cacti已经发布了0.8.7a版本，下午把监控服务器上的cacti从0.8.6j升级到新版本。</p>
<p>    1. 备份数据库.</p>
<p> <code># service mysqld stop</code><br />
 <code># cp -R /var/lib/mysql/cacti  /var/lib/mysql/cacti_old</code></p>
<p>   2. 备份cacti程序目录.</p>
<p><code># mv cacti cacti_old</code></p>
<p>    3. 解压新版本压缩包.</p>
<p><code># tar xzvf cacti-version.tar.gz</code></p>
<p>    4. 重命名解压目录.</p>
<p> <code># mv cacti-version cacti</code></p>
<p>    5. 编辑 include/config.php 设定好数据库类型、数据库名、数据库用户名和密码.<br />
<code><br />
 $database_type = "mysql";<br />
 $database_default = "cacti";<br />
 $database_hostname = "localhost";<br />
 $database_username = "cactiuser";<br />
 $database_password = "cacti";<br />
</code></p>
<p>    6. 从原程序目录中复制 *.rrd 文件.</p>
<p> <code># cp cacti_old/rra/* cacti/rra/</code></p>
<p>    7. 备份脚本程序.</p>
<p> <code># cp -u cacti_old/scripts/* cacti/scripts/</code><br />
 <code># cp -u -R cacti_old/resource/* cacti/resource/</code></p>
<p>    8. 设置rra文件目录和log目录的权限.</p>
<p> <code># chown -R cactiuser rra/ log/</code></p>
<p>   9. 通过浏览器访问，程序将自动升级数据库:</p>
<p>         <a href="http://your-server/cacti/">http://your-server/cacti/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.10235.com/technic/upgrading-cacti.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cacti＋rrdtool</title>
		<link>http://www.10235.com/technic/cacti-rrdtool.html</link>
		<comments>http://www.10235.com/technic/cacti-rrdtool.html#comments</comments>
		<pubDate>Fri, 01 Sep 2006 14:02:32 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Technic]]></category>
		<category><![CDATA[Cacti]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MRTG]]></category>
		<category><![CDATA[rrdtool]]></category>

		<guid isPermaLink="false">http://www.10235.com/2006/09/01/collection/linux/cacti%ef%bc%8brrdtool-2.html</guid>
		<description><![CDATA[<a href="http://www.10235.com/technic/cacti-rrdtool.html" title="cacti＋rrdtool"></a>     一直以来都是使用MRTG，通过监控每个机柜的交换机端口，来监控所有服务器的流量。MRTG的好处就是简单方便，安装后修改一下配置文件就可以直接使用。在服务器量少的时候，还好，一旦服务器数量众多，MRTG就有点力不从心，服务器超过400台以后，MRTG已经无法在10分钟内完成一次数据更新。只能降低数据更新频率，延长时间，同时由于服务器数量过多，MRTG持续占用服务器CPU资源，在服务器数量不断增加的情况下，只能增加监控的服务器。       网上搜索了众多资料，最后选择Cacti＋rrdtool。Cacti是一套php程序，它利用snmpget采集设备的SNMP数据，再利用rrdtool进行绘图。用了三天时间，终于把这套东西装了起来。只用了一台服务器，Cacti＋rrdtool，代替了MRTG＋3台监控服务器。而且管理起来尤其方便，通过Web界面就可以随意添加被监控设备。]]></description>
			<content:encoded><![CDATA[<a href="http://www.10235.com/technic/cacti-rrdtool.html" title="cacti＋rrdtool"></a><p style="text-align: center"><img src="http://www.10235.com/wp-content/uploads/2006/09/cacti1.gif" alt="cacti" title="cacti" id="image468" /></p>
<p>     一直以来都是使用MRTG，通过监控每个机柜的交换机端口，来监控所有服务器的流量。MRTG的好处就是简单方便，安装后修改一下配置文件就可以直接使用。在服务器量少的时候，还好，一旦服务器数量众多，MRTG就有点力不从心，服务器超过400台以后，MRTG已经无法在10分钟内完成一次数据更新。只能降低数据更新频率，延长时间，同时由于服务器数量过多，MRTG持续占用服务器CPU资源，在服务器数量不断增加的情况下，只能增加监控的服务器。</p>
<p>      网上搜索了众多资料，最后选择Cacti＋rrdtool。Cacti是一套php程序，它利用snmpget采集设备的SNMP数据，再利用rrdtool进行绘图。用了三天时间，终于把这套东西装了起来。只用了一台服务器，Cacti＋rrdtool，代替了MRTG＋3台监控服务器。而且管理起来尤其方便，通过Web界面就可以随意添加被监控设备。</p>
<p style="text-align: center"><img src="http://www.10235.com/wp-content/uploads/2006/09/cacti2.gif" alt="cacti" title="cacti" id="image467" /><img src="http://www.10235.com/wp-content/uploads/2006/09/cacti3.gif" alt="cacti" title="cacti" id="image471" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.10235.com/technic/cacti-rrdtool.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

