<?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>Robert Naylor &#187; Zenoss</title>
	<atom:link href="http://robert.pobice.co.uk/cats/software/zenoss/feed/" rel="self" type="application/rss+xml" />
	<link>http://robert.pobice.co.uk</link>
	<description>Random thoughts and tech tips</description>
	<lastBuildDate>Sun, 08 Jan 2012 12:20:21 +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>Zenoss, VMWare and Critical &#8220;is up&#8221; alerts</title>
		<link>http://robert.pobice.co.uk/2009/09/zenoss-vmware-and-critical-is-up-alerts/</link>
		<comments>http://robert.pobice.co.uk/2009/09/zenoss-vmware-and-critical-is-up-alerts/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 09:49:33 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[Zenoss]]></category>
		<category><![CDATA[clocksource]]></category>
		<category><![CDATA[esx3]]></category>

		<guid isPermaLink="false">http://robert.pobice.co.uk/?p=57</guid>
		<description><![CDATA[I&#8217;m currently working on setting up Zenoss to either replace or supplement our current network/server monitoring systems. As its in test, it got stuck on our currently relatively unused &#8220;old&#8221; vmware environment (ESX 3). After initially going well it start to go wrong. We kept getting critical alerts that a server was up. Switching zenping [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently working on setting up Zenoss to either replace or supplement our current network/server monitoring systems.</p>
<p>As its in test, it got stuck on our currently relatively unused &#8220;old&#8221; vmware environment (ESX 3).  After initially going well it start to go wrong.  We kept getting critical alerts that a server was up.  Switching zenping to debug didn&#8217;t help either &#8211; it offered no new information and made the problem worse. As its open source I thought I&#8217;d take a look at the source, and hey presto I found the suspected problem.  Stuck in an extra debug line, and confirmed it.</p>
<p><strong>The problem</strong> &#8211; well it was an issue with the clock on the server caused by running under vmware , it was jumping about leading to negative rrt on pings.  Funnily enough zenoss didn&#8217;t like.  I&#8217;ll be submitting a bug so that it comes up with the slightly less cryptic error of Ip xxx.xxx.xxx.xx is up. To fix the problem, I had to specify the clocksource in the kernel options.  See vmware <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1006427">KB 1006427</a> for details.</p>
<p>If you can&#8217;t fix this for some reason or can&#8217;t reboot server, for now you can put an event transform for status/ping in place to suppress them.</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">re</span>
&nbsp;
match = <span style="color: #dc143c;">re</span>.<span style="color: black;">search</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'ip (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)<span style="color: #000099; font-weight: bold;">\.</span>(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)<span style="color: #000099; font-weight: bold;">\.</span>(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)<span style="color: #000099; font-weight: bold;">\.</span>(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?) is up'</span>, evt.<span style="color: black;">message</span><span style="color: black;">&#41;</span>
<span style="color: #ff7700;font-weight:bold;">if</span> match <span style="color: #ff7700;font-weight:bold;">and</span> evt.<span style="color: black;">severity</span>==<span style="color: #ff4500;">5</span>:
	evt._action = <span style="color: #483d8b;">'drop'</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://robert.pobice.co.uk/2009/09/zenoss-vmware-and-critical-is-up-alerts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

