<?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>Yousri&#039;s Blog &#187; 监控</title>
	<atom:link href="http://blog.yousri.org/tag/%e7%9b%91%e6%8e%a7/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.yousri.org</link>
	<description>一个人骑单车在陌生城市路上自由穿梭的生活</description>
	<lastBuildDate>Fri, 20 Jan 2012 15:01:59 +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>Ganglia监控系统了解</title>
		<link>http://blog.yousri.org/2010/12/22/ganglia%e7%9b%91%e6%8e%a7%e7%b3%bb%e7%bb%9f%e4%ba%86%e8%a7%a3.html</link>
		<comments>http://blog.yousri.org/2010/12/22/ganglia%e7%9b%91%e6%8e%a7%e7%b3%bb%e7%bb%9f%e4%ba%86%e8%a7%a3.html#comments</comments>
		<pubDate>Wed, 22 Dec 2010 16:24:37 +0000</pubDate>
		<dc:creator>Yousri</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Ganglia]]></category>
		<category><![CDATA[监控]]></category>

		<guid isPermaLink="false">http://blog.yousri.org/?p=1315</guid>
		<description><![CDATA[简介： 至于什么是Ganglia，作何之用，不想多记录，想了解可以自己Google下，因为这里只是简单记录安装操作备忘作为自己后续查询备用而已。 安装配置： 1、系统更新： yum -y install apr-devel apr-util check-devel cairo-devel pango-devel libxml2-devel glib2-devel dbus-devel freetype-devel fontconfig-devel gcc-c++ expat-devel python-devel libXrender-devel zlib libpng freetype libjpeg fontconfig gd libxml2 pcre pcre-devel 2、安装libconfuse依赖 下载地址：（源地址可能变更，按实时情况自行搜索地址安装) 32位： wget http://download.fedora.redhat.com/pub/epel/5/i386/libconfuse-2.5-4.el5.i386.rpm wget http://download.fedora.redhat.com/pub/epel/5/i386/libconfuse-devel-2.5-4.el5.i386.rpm 64位： wget http://download.fedora.redhat.com/pub/epel/5/x86_64/libconfuse-2.5-4.el5.x86_64.rpm wget http://download.fedora.redhat.com/pub/epel/5/x86_64/libconfuse-devel-2.5-4.el5.x86_64.rpm 安装： rpm -ivh libconfuse-2.5-4.el5.x86_64.rpm rpm -ivh libconfuse-devel-2.5-4.el5.x86_64.rpm 3、图形化监控界面支持 相应背景，相信基本都清楚很多监控系统特别在需要结合web图形直观浏览基本离不开基于RRDTool工具，如cacti也亦此。 wget http://oss.oetiker.ch/rrdtool/pub/rrdtool.tar.gz tar zxvf <a href='http://blog.yousri.org/2010/12/22/ganglia%e7%9b%91%e6%8e%a7%e7%b3%bb%e7%bb%9f%e4%ba%86%e8%a7%a3.html'>[...]</a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F09%2F05%2Fapachetop_install_and_setting.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F12%2F22%2Fganglia%25E7%259B%2591%25E6%258E%25A7%25E7%25B3%25BB%25E7%25BB%259F%25E4%25BA%2586%25E8%25A7%25A3.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">ApacheTop实现网站实时监测</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2009%2F02%2F09%2Finstall-nagios-plugins.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F12%2F22%2Fganglia%25E7%259B%2591%25E6%258E%25A7%25E7%25B3%25BB%25E7%25BB%259F%25E4%25BA%2586%25E8%25A7%25A3.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Nagios插件安装</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F01%2F27%2F%25E7%2586%25AC%25E5%25A4%259C-%25E5%258D%2587%25E7%25BA%25A7%25E7%25B3%25BB%25E7%25BB%259F.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F12%2F22%2Fganglia%25E7%259B%2591%25E6%258E%25A7%25E7%25B3%25BB%25E7%25BB%259F%25E4%25BA%2586%25E8%25A7%25A3.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">熬夜 升级系统</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F03%2Fsoftware_install_in_ubuntu.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F12%2F22%2Fganglia%25E7%259B%2591%25E6%258E%25A7%25E7%25B3%25BB%25E7%25BB%259F%25E4%25BA%2586%25E8%25A7%25A3.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于Ubuntu系统软件安装方式</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><strong>简介：</strong></p>
<div>至于什么是Ganglia，作何之用，不想多记录，想了解可以自己Google下，因为这里只是简单记录安装操作备忘作为自己后续查询备用而已。</div>
<p></p>
<p><strong>安装配置：</strong></p>
<p>1、系统更新：<br />
</p>
<pre class="brush: bash">yum -y install apr-devel apr-util check-devel cairo-devel pango-devel libxml2-devel glib2-devel dbus-devel freetype-devel fontconfig-devel gcc-c++ expat-devel python-devel libXrender-devel zlib libpng freetype libjpeg fontconfig gd libxml2 pcre pcre-devel</pre>
<p>
2、安装libconfuse依赖<br />
<br />
下载地址：（源地址可能变更，按实时情况自行搜索地址安装)<br />
32位：</p>
<pre class="brush: bash">
wget http://download.fedora.redhat.com/pub/epel/5/i386/libconfuse-2.5-4.el5.i386.rpm
wget http://download.fedora.redhat.com/pub/epel/5/i386/libconfuse-devel-2.5-4.el5.i386.rpm
</pre>
<p>64位：</p>
<pre class="brush: bash">
wget http://download.fedora.redhat.com/pub/epel/5/x86_64/libconfuse-2.5-4.el5.x86_64.rpm
wget http://download.fedora.redhat.com/pub/epel/5/x86_64/libconfuse-devel-2.5-4.el5.x86_64.rpm
</pre>
<p>
安装：</p>
<pre class="brush: bash">
rpm -ivh libconfuse-2.5-4.el5.x86_64.rpm
rpm -ivh libconfuse-devel-2.5-4.el5.x86_64.rpm
</pre>
<p>
3、图形化监控界面支持<br />
<br />
相应背景，相信基本都清楚很多监控系统特别在需要结合web图形直观浏览基本离不开基于RRDTool工具，如cacti也亦此。</p>
<pre class="brush: bash">
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool.tar.gz
tar zxvf rrdtool.tar.gz
cd rrdtool-1.4.4
./configure --prefix=/usr
make -j8
make install
which rrdtool
ldconfig
</pre>
<p>
4、主角Ganglia3.1.7上场<br />
<br />
更多信息可以先了解下其官方网站：<a href="http://ganglia.info/" target="_blank">http://ganglia.info/</a></p>
<pre class="brush: bash">
wget http://cdnetworks-kr-1.dl.sourceforge.net/project/ganglia/ganglia%20monitoring%20core/3.1.7/ganglia-3.1.7.tar.gz
tar zxvf ganglia-3.1.7.tar.gz
./configure --with-gmetad --sysconfdir=/etc/ganglia
make -j8
make install
</pre>
<p>
5、监控服务器端简单设置<br />
<br />
监控点服务器端主要是由客户端Ganglia Monitoring Daemon (gmond) 和服务器端Ganglia Meta Daemon (gmetad)，还有Ganglia PHP Web Frontend (基于Web网页动态访问方式)构成，故需要gmond、gmetad及Web server (Apache/Nginx等）支持。<br />
<br />
其中gmond主要用于收集并发送受监控节点服务器的相关信息数据(因此受监控节点服务器只需配置gmond服务即可 下面也会提到)；而gmetad服务程序只是在集群节点管理器是必须的，它主要功能是轮询gmond程序，统计gmond检测到的集群节点信息；Web动态方式主要是将结合RRDTool函数库将收集到的数据图形化更直观展示浏览查看。</p>
<pre class="brush: bash">
cd /home/src/ganglia-3.1.7 # you should already be in this directory
cp -a web/* /data/web/www/ganglia/ # make sure you have apache/nginx installed,this is the web interface
cp gmetad/gmetad.init /etc/init.d/gmetad # startup script
cp gmond/gmond.init /etc/init.d/gmond
gmond -t | tee /etc/ganglia/gmond.conf # generate initial gmond config
mkdir -p /var/lib/ganglia/rrds # place where RRDTool graphs will be stored
chown nobody:nobody /var/lib/ganglia/rrds # make sure RRDTool can write here.
/etc/init.d/gmetad start # start service
/etc/init.d/gmond start
</pre>
<p>
6、被监控客户端服务器节点设置<br />
<br />
节点只需安装gmond（客户端）：不再需要RRDTool、gmetad的支持<br />
<br />
编译安装方法类似服务器端，只是无需使用&#8211;with-gmetad参数；或也可以直接由监控服务器节点复制部分相应文件到其他节点客户端并启用gmond服务即可</p>
<p><strong>服务配置：</strong></p>
<p>（主要是：节点添加、配置文件修改、监控内容服务增加）</p>
<p>时间关系，详细待明日更新……或可直接看参考资料。</p>
<p><strong>可能遇到的一些问题：</strong></p>
<p>1、Ganglia网页浏览很多图表不能正常显示的问题.<br />
确认下站点程序目录位置是否有误：</p>
<pre class="brush: php">
vim /data/web/www/ganglia/conf.php:
# Where gmetad stores the rrd archives.
$gmetad_root = "/var/lib/ganglia";
$rrds = "$gmetad_root/rrds";
 # Leave this alone if rrdtool is installed in $gmetad_root,
# otherwise, change it if it is installed elsewhere (like /usr/bin)
define("RRDTOOL", "/usr/local/rrdtool/bin/rrdtool");
</pre>
<p>
注意最后一行,你如果使用rpm安装的,很可能是/usr/bin/rrdtool,如果使用源码编译安装时需俺个人环境而异<br />
并修改/var/lib/ganglia/rrds目录用户读写权限无误，删除/var/lib/ganglia/rrds/*下的数据,然后restart gmond和gmetad.<br />
<br />
2、</p>
<p>参考资料：</p>
<p>1、<a href="https://www.ibm.com/developerworks/cn/linux/l-ganglia-nagios-1/" target="_blank">Ganglia 和 Nagios，第 1 部分: 用 Ganglia 监视企业集群</a><br />
2、<a href="http://goo.gl/SV05f" target="_blank">Ganglia3.1.x Installation and Configuration</a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F09%2F05%2Fapachetop_install_and_setting.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F12%2F22%2Fganglia%25E7%259B%2591%25E6%258E%25A7%25E7%25B3%25BB%25E7%25BB%259F%25E4%25BA%2586%25E8%25A7%25A3.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">ApacheTop实现网站实时监测</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2009%2F02%2F09%2Finstall-nagios-plugins.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F12%2F22%2Fganglia%25E7%259B%2591%25E6%258E%25A7%25E7%25B3%25BB%25E7%25BB%259F%25E4%25BA%2586%25E8%25A7%25A3.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Nagios插件安装</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F01%2F27%2F%25E7%2586%25AC%25E5%25A4%259C-%25E5%258D%2587%25E7%25BA%25A7%25E7%25B3%25BB%25E7%25BB%259F.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F12%2F22%2Fganglia%25E7%259B%2591%25E6%258E%25A7%25E7%25B3%25BB%25E7%25BB%259F%25E4%25BA%2586%25E8%25A7%25A3.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">熬夜 升级系统</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F03%2Fsoftware_install_in_ubuntu.html&from=http%3A%2F%2Fblog.yousri.org%2F2010%2F12%2F22%2Fganglia%25E7%259B%2591%25E6%258E%25A7%25E7%25B3%25BB%25E7%25BB%259F%25E4%25BA%2586%25E8%25A7%25A3.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于Ubuntu系统软件安装方式</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.yousri.org/2010/12/22/ganglia%e7%9b%91%e6%8e%a7%e7%b3%bb%e7%bb%9f%e4%ba%86%e8%a7%a3.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nagios插件安装</title>
		<link>http://blog.yousri.org/2009/02/09/install-nagios-plugins.html</link>
		<comments>http://blog.yousri.org/2009/02/09/install-nagios-plugins.html#comments</comments>
		<pubDate>Mon, 09 Feb 2009 10:02:59 +0000</pubDate>
		<dc:creator>Yousri</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[监控]]></category>

		<guid isPermaLink="false">http://qingxianyan.cn/?p=292</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;&#160; 刚刚在Nagios基本平台搭建一文中也提到，对于Nagios的监测主机与服务功能其实是有其附带的插件来实现的，而Nagios系统本身只是一个空壳而已.因此，在安装了nagios平台之后的第一件事情就是将插件安装上去。这里使用的是插件源码包是从Nagios主页上下载了最新的官方插件，用的版本是nagios-plugins-1.4.13.tar.gz。 1、解压 tar zxvf nagios-plugins-1.4.13.tar.gzcd nagios-plugins-1.4.13&#160;&#160;&#160;&#160;&#160;&#160;&#160; 2、编译安装： ./configure --prefix=/usr/local/nagios &#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#8211;with-cgiurl=/usr/local/nagios/cgi-bin &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#8211;enable-ssl &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#8211;enable-command-args&#160;&#160;&#160; make&#160;&#160;&#160; make install 3、相关配置文件：&#160;&#160;&#160;&#160;&#160;&#160;&#160; ## 根据具体使用情况,将配置文件的结构做以下规划,为了方便将来的维护和管理: &#160;&#160;&#160;&#160;&#160;&#160;&#160; ## 配置文件结构如下:&#160;&#160;&#160;&#160;&#160;&#160;&#160; etc/&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#124;&#8211; cgi.cfg&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#124;&#8211; commands.cfg&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#124;&#8211; nagios.cfg&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#124;&#8211; resource.cfg&#160;&#160;&#160;&#160;&#160;&#160;&#160; (以上为nagios系统主配置文件) &#160;&#160;&#160;&#160;&#160;&#160;&#160; etc/servers&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#124;&#8211; contacts.cfg&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 管理人员和管理人员组的的默认初始化设定文件&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#124;&#8211; hostgroups.cfg&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 服务器组的默认初始化设定文件&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#124;&#8211; hosts.cfg&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 服务器的默认初始化设定文件&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#124;&#8211; services.cfg&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 监控服务的默认初始化设定文件&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#124;&#8211; servicegroups.cfg&#160;&#160;&#160;&#160;&#160;&#160;&#160; <a href='http://blog.yousri.org/2009/02/09/install-nagios-plugins.html'>[...]</a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2009%2F02%2F11%2Fnagios%25E5%259F%25BA%25E6%259C%25AC%25E5%25B9%25B3%25E5%258F%25B0%25E6%2590%25AD%25E5%25BB%25BA.html&from=http%3A%2F%2Fblog.yousri.org%2F2009%2F02%2F09%2Finstall-nagios-plugins.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Nagios基本平台搭建</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F03%2Fsoftware_install_in_ubuntu.html&from=http%3A%2F%2Fblog.yousri.org%2F2009%2F02%2F09%2Finstall-nagios-plugins.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于Ubuntu系统软件安装方式</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2010%2F12%2F22%2Fganglia%25E7%259B%2591%25E6%258E%25A7%25E7%25B3%25BB%25E7%25BB%259F%25E4%25BA%2586%25E8%25A7%25A3.html&from=http%3A%2F%2Fblog.yousri.org%2F2009%2F02%2F09%2Finstall-nagios-plugins.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Ganglia监控系统了解</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F06%2Flamp.html&from=http%3A%2F%2Fblog.yousri.org%2F2009%2F02%2F09%2Finstall-nagios-plugins.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Ubuntu 8.04里LAMP手动编译安装架构纪录</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 刚刚在Nagios基本平台搭建一文中也提到，对于Nagios的监测主机与服务功能其实是有其附带的插件来实现的，而Nagios系统本身只是一个空壳而已.因此，在安装了nagios平台之后的第一件事情就是将插件安装上去。<span>这里使用的是插件源码包是从</span><span lang="EN-US">Nagios</span><span>主页上下载了最新的</span><span>官方插件，用的版本是</span><span lang="EN-US">nagios-plugins-1.4.13.tar.gz</span><span>。</span></p>
<p><span>1、解压</p>
<blockquote><p><code>tar zxvf nagios-plugins-1.4.13.tar.gz<br />cd nagios-plugins-1.4.13</code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p></blockquote>
<p></span></p>
<p>2、编译安装：</p>
<blockquote><p><code>./configure --prefix=/usr/local/nagios <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &ndash;with-cgiurl=/usr/local/nagios/cgi-bin <br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &ndash;enable-ssl <br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &ndash;enable-command-args<br />&nbsp;&nbsp;&nbsp; make<br />&nbsp;&nbsp;&nbsp; make install</code></p></blockquote>
<p><span>3、相关配置文件：<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ## 根据具体使用情况,将配置文件的结构做以下规划,为了方便将来的维护和管理:</span></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ## 配置文件结构如下:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; etc/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&ndash; cgi.cfg<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&ndash; commands.cfg<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&ndash; nagios.cfg<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&ndash; resource.cfg<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (以上为nagios系统主配置文件)</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; etc/servers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&ndash; contacts.cfg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 管理人员和管理人员组的的默认初始化设定文件<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&ndash; hostgroups.cfg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 服务器组的默认初始化设定文件<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&ndash; hosts.cfg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 服务器的默认初始化设定文件<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&ndash; services.cfg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 监控服务的默认初始化设定文件<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&ndash; servicegroups.cfg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 监控服务组的默认初始化设定文件<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&ndash; timeperiod.cfg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 时间周期默认初始化设定文件<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (以上为监控服务相关的配置文件,都是由原localhost.cfg文件中拆分出来的,这样方面理解和管理)</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; etc/servers/test.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&ndash; 172.17.0.220.cfg<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&ndash; 172.17.0.255.cfg<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (在etc/servers/下建立监控的域名目录,区分各个被监控的域名,每台监控的主机一个单独的配置文件,包含hosts和services的内容)</p>
<p>
<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 下班啦。。今日分享到此，待续ing。。。。。&nbsp;&nbsp; <br /></span></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2009%2F02%2F11%2Fnagios%25E5%259F%25BA%25E6%259C%25AC%25E5%25B9%25B3%25E5%258F%25B0%25E6%2590%25AD%25E5%25BB%25BA.html&from=http%3A%2F%2Fblog.yousri.org%2F2009%2F02%2F09%2Finstall-nagios-plugins.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Nagios基本平台搭建</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F03%2Fsoftware_install_in_ubuntu.html&from=http%3A%2F%2Fblog.yousri.org%2F2009%2F02%2F09%2Finstall-nagios-plugins.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于Ubuntu系统软件安装方式</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2010%2F12%2F22%2Fganglia%25E7%259B%2591%25E6%258E%25A7%25E7%25B3%25BB%25E7%25BB%259F%25E4%25BA%2586%25E8%25A7%25A3.html&from=http%3A%2F%2Fblog.yousri.org%2F2009%2F02%2F09%2Finstall-nagios-plugins.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Ganglia监控系统了解</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F06%2Flamp.html&from=http%3A%2F%2Fblog.yousri.org%2F2009%2F02%2F09%2Finstall-nagios-plugins.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Ubuntu 8.04里LAMP手动编译安装架构纪录</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.yousri.org/2009/02/09/install-nagios-plugins.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

