<?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>wd and cc &#187; nagios</title>
	<atom:link href="http://wdicc.com/tag/nagios/feed/" rel="self" type="application/rss+xml" />
	<link>http://wdicc.com</link>
	<description>Happy every day...</description>
	<lastBuildDate>Mon, 06 Sep 2010 10:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>今天又理解了nagios的两个配置</title>
		<link>http://wdicc.com/nagios-conf/</link>
		<comments>http://wdicc.com/nagios-conf/#comments</comments>
		<pubDate>Mon, 16 Apr 2007 09:15:51 +0000</pubDate>
		<dc:creator>wd</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[nagios]]></category>

		<guid isPermaLink="false">http://blog.wdicc.com/wordpress/2007/04/16/326/</guid>
		<description><![CDATA[Host and Service Dependencies 当监控的host或者service之间有依赖关系的时候，可以通过定义dependence来让nagios知道应该通知什么。 比如我这里的服务器都在idc托管，而我的nagios却是运行在公司的一台服... ]]></description>
			<content:encoded><![CDATA[<p style="float: right;margin: 4px;"><script type="text/javascript"><!--
google_ad_client = "pub-9015557074547192";
google_ad_width = 250;
google_ad_height = 250;
google_ad_format = "250x250_as";
google_ad_type = "image";
google_ad_channel = "";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p> <p><b>Host and Service Dependencies</b></p>
<p>当监控的host或者service之间有依赖关系的时候，可以通过定义dependence来让nagios知道应该通知什么。</p>
<p>比如我这里的服务器都在idc托管，而我的nagios却是运行在公司的一台服务器上面。这样，有时候可能就需要考虑依赖关系了。比如当公司的网络出问题的时候（事实上经常出现），比如断网，总不能让他也认为是idc托管的服务器出问题了而给你发通知吧。host dependence正好可以解决这个问题。</p>
<p>比如 A 是idc的，B 是公司的网关（或者某个应该一直在线的服务器，比如sina.com.cn）。当nagios检测到A连不上的时候，他会根据dependence来检测B，如果B也连不上了，那么就只通知你B连不上了。</p>
<p>大概的配置如下</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">define hostdependency{
        host_name                       B
        dependent_host_name             A
        notification_failure_criteria   d,u
        }</pre></div></div>

<p><b>Notification Escalations</b></p>
<p>escalations 的意思就是扩大。整个这个的意思应该就是扩大通知范围。之前一直没理解是什么意思，今天看了才明白。其实就是定义出问题的时候，什么时候扩大通知。</p>
<p>比如A服务器挂了，他对应的contactgroup就会立刻得到通知。但是，如果这个组里面的人在睡觉或者在做什么事情忽略了这个通知，怎么办呢？当然nagios会通知多次，但是如果这些都忽略掉了或者没有收到怎么办？这样这个escalations就有作用了，他可以定义几次通知contatgroup之后就开始通知别的人。还有一些别的功能，就不多说了。</p>
]]></content:encoded>
			<wfw:commentRss>http://wdicc.com/nagios-conf/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>针对nagios得两款小软件</title>
		<link>http://wdicc.com/software-for-nagios/</link>
		<comments>http://wdicc.com/software-for-nagios/#comments</comments>
		<pubDate>Mon, 14 Aug 2006 08:00:53 +0000</pubDate>
		<dc:creator>wd</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[nagios]]></category>

		<guid isPermaLink="false">http://blog.wdicc.com/wordpress/2006/08/14/230/</guid>
		<description><![CDATA[ntrayc 和 nagiostrayicon 都是在tray那里显示nagios是否报错得。到时会有声音或者窗口弹出来。 前者不需要安装，后者需要安装。界面功能来看都差不多。 刚装上有台服务器就down了，呵呵。比较了... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://sourceforge.net/projects/ntrayc">ntrayc</a> 和 <a href="http://sourceforge.net/projects/nagiostrayicon">nagiostrayicon</a></p>
<p>都是在tray那里显示nagios是否报错得。到时会有声音或者窗口弹出来。</p>
<p>前者不需要安装，后者需要安装。界面功能来看都差不多。</p>
<p>刚装上有台服务器就down了，呵呵。比较了一下，觉得ntrayc比较好。下面是他们得设置界面。</p>
<p>ntrayc如下，两幅图，后面那个是他得console，可以同时得到服务得大概信息。不知道他哪里设置声音，下载得安装包里面没有声音文件。每次检测到问题都会弹出窗口。</p>
<p><img alt="ntrayc2.png" id="image233" src="http://blog.wdicc.com/wordpress/wp-content/uploads/2006/08/ntrayc2.png" /><br />
<img alt="ntrayc.png" id="image232" src="http://blog.wdicc.com/wordpress/wp-content/uploads/2006/08/ntrayc.png" /><br />
nagios tray icon得设置界面如下，出问题得时候他不会弹出窗口，会出声叫。不过第二次检测就不叫了，icon变红色。<br />
<img alt="trayicon.png" id="image231" src="http://blog.wdicc.com/wordpress/wp-content/uploads/2006/08/trayicon.png" /></p>
]]></content:encoded>
			<wfw:commentRss>http://wdicc.com/software-for-nagios/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
