<?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>IPCPU——网络之路 &#187; 网络监控</title>
	<atom:link href="http://www.ipcpu.com/tag/%e7%bd%91%e7%bb%9c%e7%9b%91%e6%8e%a7/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ipcpu.com</link>
	<description></description>
	<lastBuildDate>Sat, 17 Jul 2010 11:04:03 +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>[网络监控]CACTI插件settings和weathermap的安装</title>
		<link>http://www.ipcpu.com/2009/11/cacti-settings-weathermap/</link>
		<comments>http://www.ipcpu.com/2009/11/cacti-settings-weathermap/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 07:04:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[网络技术]]></category>
		<category><![CDATA[CACTI]]></category>
		<category><![CDATA[weathermap]]></category>
		<category><![CDATA[网络监控]]></category>

		<guid isPermaLink="false">http://www.ipcpu.com/?p=205</guid>
		<description><![CDATA[本次只记录安装方法，至于使用还是自己摸索摸索吧 Plugin architecture Settings 官方网站：http://cactiusers.org/ Weathermap 官方网站：www.network-weathermap.com 安装方法： 1.先安装插件包管理工具Plugin architecture [root@centmini ~]# unzip cacti-plugin-0.8.7e-PA-v2.5.zip [root@centmini ~]# mysql -p cacti&#60;pa.sql [root@centmini ~]# cp cacti-plugin-0.8.7e-PA-v2.5.diff /var/www/html/cacti/ [root@centmini ~]# cd /var/www/html/cacti/ [root@centmini cacti]# patch -p1 -N &#60;cacti-plugin-0.8.7e-PA-v2.5.diff [root@centmini cacti]# vi include/global.php $config['url_path'] = &#8216;/cacti/&#8217;; 并修改SQL数据库的参数 重新登录cacti即可，如果Configuration里没有Plugin Management 先进User Management里将Plugin Management选上。 2.settings的安装 解压到cacti的plugin文件夹 修改include/global.php $plugins[] = &#8216;settings&#8217;; 常见问题：Status: Old [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-207" title="_4333r1_c1" src="http://www.ipcpu.com/wp-content/uploads/2009/11/4333r1_c1.jpg" alt="_4333r1_c1" width="480" height="95" /></p>
<p>本次只记录安装方法，至于使用还是自己摸索摸索吧</p>
<p>Plugin architecture<br />
Settings<br />
官方网站：<a href="http://cactiusers.org/">http://cactiusers.org/</a></p>
<p>Weathermap<br />
官方网站：<a href="http://www.network-weathermap.com">www.network-weathermap.com</a></p>
<p>安装方法：<span id="more-205"></span></p>
<p><strong>1.先安装插件包管理工具Plugin architecture<br />
</strong><br />
[root@centmini ~]# unzip cacti-plugin-0.8.7e-PA-v2.5.zip<br />
[root@centmini ~]# mysql -p cacti&lt;pa.sql<br />
[root@centmini ~]# cp cacti-plugin-0.8.7e-PA-v2.5.diff /var/www/html/cacti/<br />
[root@centmini ~]# cd /var/www/html/cacti/<br />
[root@centmini cacti]# patch -p1 -N &lt;cacti-plugin-0.8.7e-PA-v2.5.diff<br />
[root@centmini cacti]# vi include/global.php<br />
$config['url_path'] = &#8216;/cacti/&#8217;;<br />
并修改SQL数据库的参数</p>
<p>重新登录cacti即可，如果Configuration里没有Plugin Management 先进User Management里将Plugin Management选上。</p>
<p><strong>2.settings的安装<br />
</strong><br />
解压到cacti的plugin文件夹<br />
修改include/global.php<br />
$plugins[] = &#8216;settings&#8217;;</p>
<p>常见问题：Status: Old Plugin Architecture &#8211; Running  而不是install  和enable选项，原因可能是版本太低，不过只要是running就表示正常工作了。</p>
<p><strong>3.<span class='wp_keywordlink_affiliate'><a href="http://www.ipcpu.com/tag/weathermap/" title="View all posts in weathermap" target="_blank">weathermap</a></span>安装</strong></p>
<p>解压到cacti的plugin文件夹<br />
修改include/global.php<br />
$plugins[] = &#8216;<span class='wp_keywordlink_affiliate'><a href="http://www.ipcpu.com/tag/weathermap/" title="View all posts in weathermap" target="_blank">weathermap</a></span>&#8217;;</p>
<p>[root@centmini cacti]# cd plugins/<span class='wp_keywordlink_affiliate'><a href="http://www.ipcpu.com/tag/weathermap/" title="View all posts in weathermap" target="_blank">weathermap</a></span>/<br />
[root@centmini weathermap]# chown cactiuser output/<br />
[root@centmini weathermap]# cp editor-config.php-dist editor-config.php<br />
[root@centmini weathermap]# chown apache configs/<br />
[root@centmini weathermap]# chmod u+w configs/<br />
[root@centmini weathermap]# vi editor-config.php<br />
$cacti_base = &#8220;/var/www/html/cacti&#8221;;<br />
$cacti_url = &#8220;<a href="http://192.168.128.3/cacti/">http://192.168.128.3/cacti/</a>&#8220;;[改成自己的IP]<br />
$mapdir= $cacti_base.&#8217;/plugins/weathermap/configs&#8217;;</p>
<p>OK了，再次登录面板左上角会显示weathermap</p>
<p>可能出现的问题：<br />
Required PHP extensions are not present in your mod_php/ISAPI PHP module. Please check your PHP setup to ensure you have the GD extension installed and enabled.<br />
解决办法：安装php-gd重启apache即可。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ipcpu.com/2009/11/cacti-settings-weathermap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[网络监控]CACTI的安装</title>
		<link>http://www.ipcpu.com/2009/10/network-monitor-cacti-setup/</link>
		<comments>http://www.ipcpu.com/2009/10/network-monitor-cacti-setup/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 13:04:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[网络技术]]></category>
		<category><![CDATA[CACTI]]></category>
		<category><![CDATA[网络监控]]></category>

		<guid isPermaLink="false">http://www.ipcpu.com/?p=191</guid>
		<description><![CDATA[  由于MRTG还比较初级，软件作者写了RRDTOOL这个功能强大的软件，而CACTI就是工作在RRDTOOL之上的网络监控软件，他的管理功能强大，插件众多，也拥有众多的用户。 今天来试一下吧， 软件名称：CACTI(中文名：仙人掌) 官方网站：http://www.cacti.net 安装过程: 1.Cacti的安装需要LAMP运行环境，当然其他的Web Server也可以，然后安装net-snmp和rrd-tools 2.创建Cacti数据库并赋权 进入MySQL &#62;create database cacti; &#62;grant all privileges on cacti.* to cactiuser@localhost identified by &#8220;password&#8221;; &#62;flush privileges; 2.解压cacti安装包，复制到/var/www/html/下 创建cactiuser,给rra和log文件夹更改属主。 [root@centmini cacti]# useradd cactiuser [root@centmini cacti]# chown -R cactiuser log/ rra/ 3.导入数据 [root@centmini ~]# cd /var/www/html/cacti/ [root@centmini cacti]# mysql -p cacti&#60;cacti.sql 4.修改include/config.php $database_type = &#8220;mysql&#8221;; $database_default = &#8220;cacti&#8221;; [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-195" title="refdgfff" src="http://www.ipcpu.com/wp-content/uploads/2009/10/refdgfff.jpg" alt="refdgfff" width="480" height="95" /></p>
<p> </p>
<p>由于MRTG还比较初级，软件作者写了RRDTOOL这个功能强大的软件，而<span class='wp_keywordlink_affiliate'><a href="http://www.ipcpu.com/tag/cacti/" title="View all posts in CACTI" target="_blank">CACTI</a></span>就是工作在RRDTOOL之上的<span class='wp_keywordlink_affiliate'><a href="http://www.ipcpu.com/tag/%e7%bd%91%e7%bb%9c%e7%9b%91%e6%8e%a7/" title="View all posts in 网络监控" target="_blank">网络监控</a></span>软件，他的管理功能强大，插件众多，也拥有众多的用户。</p>
<p>今天来试一下吧，</p>
<p><strong>软件名称</strong>：<span class='wp_keywordlink_affiliate'><a href="http://www.ipcpu.com/tag/cacti/" title="View all posts in CACTI" target="_blank">CACTI</a></span>(中文名：仙人掌)<br />
<strong>官方网站</strong>：<a href="http://www.cacti.net/">http://www.cacti.net</a></p>
<p><strong>安装过程</strong>:</p>
<p>1.Cacti的安装需要LAMP运行环境，当然其他的Web Server也可以，然后安装net-snmp和rrd-tools<span id="more-191"></span></p>
<p>2.创建Cacti数据库并赋权<br />
进入MySQL<br />
&gt;create database cacti;<br />
&gt;grant all privileges on cacti.* to <a href="mailto:cactiuser@localhost">cactiuser@localhost</a> identified by &#8220;password&#8221;;<br />
&gt;flush privileges;</p>
<p>2.解压cacti安装包，复制到/var/www/html/下<br />
创建cactiuser,给rra和log文件夹更改属主。<br />
[root@centmini cacti]# useradd cactiuser<br />
[root@centmini cacti]# chown -R cactiuser log/ rra/</p>
<p>3.导入数据<br />
[root@centmini ~]# cd /var/www/html/cacti/<br />
[root@centmini cacti]# mysql -p cacti&lt;cacti.sql</p>
<p>4.修改include/config.php<br />
$database_type = &#8220;mysql&#8221;;<br />
$database_default = &#8220;cacti&#8221;;<br />
$database_hostname = &#8220;localhost&#8221;;<br />
$database_username = &#8220;cactiuser&#8221;;<br />
$database_password = &#8220;123456&#8243;;<br />
$database_port = &#8220;3306&#8243;;</p>
<p>5.添加计划任务<br />
# vi /etc/crontab</p>
<p>*/5 * * * * cactiuser /usr/local/php/bin/php /var/www/html/cacti/poller.php &gt;/dev/null 2&gt;&amp;1</p>
<p>6.打开IE，输入<a href="http://192.168.0.2/cacti">http://192.168.0.2/cacti</a>进行安装！</p>
<p><strong>后记</strong>：</p>
<p>1.出现错误：configure: error: C++ preprocessor &#8220;/lib/cpp&#8221; fails sanity check<br />
出现该情况是由于c++编译器的相关package没有安装，以root用户登陆，在终端上执行<br />
# yum install gcc-c++</p>
<p>2.rrdtool-1.0.50版本，不用安装支持库文件，1.2.x 版的rrdtool繪圖不再使用GD,而使用libart及freetype等功能<br />
推荐新手使用1.0.50版本</p>
<p>3.出现错误snmpwalk Binary Path   file not found<br />
确认是否安装yum install net-snmp-utils</p>
<p>4.出现大量file not found<br />
使用yum安装的程序位置为/usr/bin/*</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ipcpu.com/2009/10/network-monitor-cacti-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[网络监控]MRTG的安装使用</title>
		<link>http://www.ipcpu.com/2009/10/network-monitor-mrtg-setup/</link>
		<comments>http://www.ipcpu.com/2009/10/network-monitor-mrtg-setup/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 11:30:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[网络技术]]></category>
		<category><![CDATA[MRTG]]></category>
		<category><![CDATA[网络监控]]></category>

		<guid isPermaLink="false">http://www.ipcpu.com/?p=184</guid>
		<description><![CDATA[  MRTG是一个古老的网络监控程序，很多的网络都是有它监控的，比较著名的例子就是教育网北邮地区网流量图http://www.buptnet.edu.cn/mrtg/大家在这个图中可以看到网络的实时流量。 下面我们就来安装一下。 软件名称：MRTG(The Multi Router Traffic Grapher ) 官方网站：http://oss.oetiker.ch/mrtg/ 下载地址：http://oss.oetiker.ch/mrtg/pub/?M=D 安装过程： 1.需要安装的软件 gd gd-devel libpng libpng-devel libpng10 libpng10-devel perl zlib zlib-devel httpd gcc net-snmp mrtg 2.用yum或者源码包装好后，开始配置snmp #vi /etc/snmp/snmpd.conf 把第89行前面的注释符号#去掉，变成 view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc 在62行进行修改：将access notConfigGroup &#8220;&#8221; any noauth exact systemview none none 改为access notConfigGroup &#8220;&#8221; any noauth exact mib2 none none 启动http服务和snmp服务： # [...]]]></description>
			<content:encoded><![CDATA[<p> <img class="alignnone size-full wp-image-188" title="23_r1_c1" src="http://www.ipcpu.com/wp-content/uploads/2009/10/23_r1_c1.jpg" alt="23_r1_c1" width="480" height="95" /></p>
<p><span class='wp_keywordlink_affiliate'><a href="http://www.ipcpu.com/tag/mrtg/" title="View all posts in MRTG" target="_blank">MRTG</a></span>是一个古老的<span class='wp_keywordlink_affiliate'><a href="http://www.ipcpu.com/tag/%e7%bd%91%e7%bb%9c%e7%9b%91%e6%8e%a7/" title="View all posts in 网络监控" target="_blank">网络监控</a></span>程序，很多的网络都是有它监控的，比较著名的例子就是教育网北邮地区网流量图<a href="http://www.buptnet.edu.cn/mrtg/">http://www.buptnet.edu.cn/mrtg/</a>大家在这个图中可以看到网络的实时流量。</p>
<p>下面我们就来安装一下。</p>
<p><strong>软件名称</strong>：<span class='wp_keywordlink_affiliate'><a href="http://www.ipcpu.com/tag/mrtg/" title="View all posts in MRTG" target="_blank">MRTG</a></span>(The Multi Router Traffic Grapher )<br />
<strong>官方网站</strong>：<a href="http://oss.oetiker.ch/mrtg/">http://oss.oetiker.ch/mrtg/</a><br />
<strong>下载地址</strong>：<a href="http://oss.oetiker.ch/mrtg/pub/?M=D">http://oss.oetiker.ch/mrtg/pub/?M=D</a><span id="more-184"></span></p>
<p><strong>安装过程</strong>：</p>
<p>1.需要安装的软件</p>
<p>gd gd-devel libpng libpng-devel libpng10 libpng10-devel perl zlib zlib-devel httpd gcc net-snmp mrtg</p>
<p>2.用yum或者源码包装好后，开始配置snmp</p>
<p>#vi /etc/snmp/snmpd.conf<br />
把第89行前面的注释符号#去掉，变成 view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc<br />
在62行进行修改：将access notConfigGroup &#8220;&#8221; any noauth exact systemview none none<br />
改为access notConfigGroup &#8220;&#8221; any noauth exact mib2 none none<br />
启动http服务和snmp服务：<br />
# service httpd start<br />
#service snmpd start</p>
<p>3.开始安装MRTG</p>
<p># tar -zxvf mrtg-2.11.1.tar.tar -C /usr/local/src/<br />
【解压到/usr/local/src，其实放哪无所谓的】<br />
#cd /usr/local/src/mrtg-2.11.1/<br />
#./configure &#8211;prefix=/usr/local/mrtg<br />
#make &amp;&amp;　make install</p>
<p>4.配置MRTG</p>
<p>在Apache的网页目录下建一个文件夹mrtg及其子文件夹images<br />
#mkdir /var/www/html/mrtg<br />
#mkdir /var/www/html/mrtg/images<br />
把源码包中的images里面的所有文件都复制过来<br />
# cd /usr/local/src/mrtg-2.11.1/<br />
#cp ./images/* /var/www/html/mrtg/images</p>
<p>mrtg附带有一个cfgmaker工具，他会帮助你编写配置文件，并自动生成配置文件。在bin子目录下可以看到该脚本<br />
#/usr/local/mrtg/bin/cfgmaker <a href="mailto:public@192.168.1.50">public@192.168.1.50</a> &#8211;global “workdir: /var/www/html/mrtg “  &#8211;output=/var/www/html/mrtg/lxy.cfg<br />
【192.168.1.50为被监控的主机，public为SNMP的团体名】</p>
<p>修改配置文件<br />
#vi /var/www/html/mrtg/lxy.cfg<br />
将#Options[_]: growright, bits前面的#去掉，靠左对齐并修改为Options[_]: growright, bytes，提示“bytes”是unknown，原来不可以像windows下使用bytes，还换回原来的bits。在最后加上Language: GB2312，然后wq保存。</p>
<p>5.生成图像</p>
<p>#  env LANG=C /usr/local/mrtg/bin/mrtg /var/www/html/mrtg/lxy.cfg<br />
如果有警告错，多运行几次次，警告错不再出现就ok了。</p>
<p>6.制作首页</p>
<p># /usr/local/mrtg/bin/indexmaker &#8211;output=/var/www/html/mrtg/index.html &#8211;title=&#8221;标题&#8221; /var/www/html/mrtg/lxy.cfg</p>
<p>7.其他设定</p>
<p>设定5分钟运行一次：#crontab -e编辑模式输入*/5 * * * * /root/mrtgbin/mrtg /root/mrtg/lxy.cfg保存</p>
<p>使用<a href="http://192.168.1.30/mrtg">http://192.168.1.30/mrtg</a>，你应该就可以看到网络使用情况的曲线了。</p>
<p><strong>参考资料</strong>：<a href="http://crazylinux.blog.51cto.com/259244/159571">http://crazylinux.blog.51cto.com/259244/159571</a></p>
<p>后记：</p>
<p>1.关于中文乱码：cfg文件最后加上Language: GB2312，如果还不行apache配置文件中的AddDefaultCharset utf-8改成gb2312</p>
<p>2.关于首页，这个index.html拿到Dreamweaver下自行编辑就行，添加设备仿照上面的来就行。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ipcpu.com/2009/10/network-monitor-mrtg-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
