<?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>Misadventures of a Celtic Geek &#187; linux</title>
	<atom:link href="http://blog.guesny.net/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.guesny.net</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sun, 03 Jun 2012 19:25:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Profiling and debugging, when they mix</title>
		<link>http://blog.guesny.net/2012/06/03/profiling-and-debugging-when-they-mix/</link>
		<comments>http://blog.guesny.net/2012/06/03/profiling-and-debugging-when-they-mix/#comments</comments>
		<pubDate>Sun, 03 Jun 2012 19:25:07 +0000</pubDate>
		<dc:creator>welsh_dwarf</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[kcachegrind]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[profiling]]></category>

		<guid isPermaLink="false">http://blog.guesny.net/?p=230</guid>
		<description><![CDATA[Normally, you debug, and when that&#8217;s done, you profile to speed things up. That said, today I was confronted by a problem where profiling actually helpped the debugging. A page, that should be working 100% from memcache was hitting mysql, &#8230; <a href="http://blog.guesny.net/2012/06/03/profiling-and-debugging-when-they-mix/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img title="PicsPlay_1338750751929.jpg" class="alignnone" alt="image" src="http://blog.guesny.net/wp-content/uploads/2012/06/wpid-PicsPlay_1338750751929.jpg" /></p>
<p>Normally, you debug, and when that&#8217;s done, you profile to speed things up.</p>
<p>That said, today I was confronted by a problem where profiling actually helpped the debugging.</p>
<p>A page, that should be working 100% from memcache was hitting mysql, 2 million times a day. </p>
<p>This page was on a serveur that couldn&#8217;t be debugged remotly. Two options were available, I could either put &#8220;print&#8221;s everywhere, and hoped to get lucky, or I could run the pager through xdebug&#8217;s profiler.</p>
<p>Loading the resulting profile into KCacheGrind, I had a detailled run down of every code path taken available to me. All that was rest was to lookup all mysql calls and work back up from caller to caller to identify the bug.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guesny.net/2012/06/03/profiling-and-debugging-when-they-mix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx and disk starvation</title>
		<link>http://blog.guesny.net/2012/05/31/nginx-and-disk-starvation/</link>
		<comments>http://blog.guesny.net/2012/05/31/nginx-and-disk-starvation/#comments</comments>
		<pubDate>Thu, 31 May 2012 17:33:36 +0000</pubDate>
		<dc:creator>welsh_dwarf</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[io]]></category>
		<category><![CDATA[iotop]]></category>
		<category><![CDATA[load]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[worker_processes]]></category>

		<guid isPermaLink="false">http://blog.guesny.net/?p=227</guid>
		<description><![CDATA[A quick note that will help someone I hope. If you have a high bandwidth site, and are seeing high load, lots of time waiting for io and nginx processes in the D state a lot, here&#8217;s something you could &#8230; <a href="http://blog.guesny.net/2012/05/31/nginx-and-disk-starvation/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A quick note that will help someone I hope.</p>
<p>If you have a high bandwidth site, and are seeing high load, lots of time waiting for io and nginx processes in the D state a lot, here&#8217;s something you could try:</p>
<p>First of all, install <strong>iotop</strong> and make sure nginx is the culprit (lots of IO for nginx, not much for the rest)</p>
<p>Then, go and have a look at your NGinx configuration, (nginx.conf), especially the <strong>worker_processes</strong></p>
<p>You can try pushing the value up to (and maybe even over) the number of cores you have in your system. This spreads the load more evenly, and allows you to dramatically increase disk throughput (doubling isn&#8217;t uncommon).</p>
<p>This worked for me (going from 3Mb/s to 7Mb/s peak). That said, YMMV. </p>
<p>Feel free to leave a comment to say if/how this was (un)helpful <img src='http://blog.guesny.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guesny.net/2012/05/31/nginx-and-disk-starvation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DynDNS and uptime</title>
		<link>http://blog.guesny.net/2010/03/27/dyndns-and-uptime/</link>
		<comments>http://blog.guesny.net/2010/03/27/dyndns-and-uptime/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 15:52:07 +0000</pubDate>
		<dc:creator>welsh_dwarf</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[personnel]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[dynamic dns]]></category>
		<category><![CDATA[dyndns]]></category>
		<category><![CDATA[ovh]]></category>

		<guid isPermaLink="false">http://blog.guesny.net/?p=109</guid>
		<description><![CDATA[Anyone who has tried to get into touch with me or read this blog these last few days can atest to the fact that I haven&#8217;t been reachable. My deepest apologies . To understand what happened, here&#8217;s a quick lowdown &#8230; <a href="http://blog.guesny.net/2010/03/27/dyndns-and-uptime/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Anyone who has tried to get into touch with me or read this blog these last few days can atest to the fact that I haven&#8217;t been reachable.</p>
<p>My deepest apologies <img src='http://blog.guesny.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> .</p>
<p>To understand what happened, here&#8217;s a quick lowdown on how my setup works:</p>
<p>I&#8217;m self hosting this blog as well as my mail on a converted EasyGate that I got as a beta tester. The machine is connected onto my internet router (a Trio 3D antique) and then onto the internet. My ISP provides a temporary IP address, and as such, I need to use a dynamic DNS record to be able to keep things updated.</p>
<p>Now, the Trio 3D (as with most of it&#8217;s features) has a half assed (excuse my French)  DynDNS system built in. I say half assed because it doesn&#8217;t accept any provider except the historic DynDNS and because it quite often forgets to update. Last week it completely stopped updating, and as an added bonus, I couldn&#8217;t get back into DynDNS to do things manually.</p>
<p>As a work around, I set up OVH (who are my registrar) to route my DNSes manually until I got a permanent fix. That worked until the IP changed Tuesday or Wednesday.</p>
<p>Now things are sorted out. I&#8217;m using OVH&#8217;s own DynDNS servers (much simpler) and am using a home built client to avoid all the dependancies other clients bought in.</p>
<p>The client is written in bash and depends on bash, sed and wget to work. It&#8217;s best used in a cron job, but can also be run on interface specific events if need be.</p>
<p>It uses a web based IP fetcher to work out your IP adresse, and if it&#8217;s changed since you last run the script, it updates your DynDNS records for you.</p>
<p>Without further ado, here&#8217;s the code:</p>
<pre lang="bash">#/bin/bash

USERNAME='myusername'
PASSWORD='mypassword'
HOSTS=('first_url.test.com' 'second_url.test.com')
SERVER="www.ovh.com"

#
#
#

CURRENT_IP=`wget -O - 'http://checkip.dyndns.org/' 2&gt;/dev/null | sed -e 's/.*Address: \([^&lt;]*\).*/\1/'` if [ -f /tmp/my_ip ]; then 	OLD_IP=`cat /tmp/my_ip`; fi # # Don't update unless ip has changed # if [ "x"$CURRENT_IP == "x"$OLD_IP ]; then 	exit; fi; echo "IP changed from " $OLD_IP " to " $CURRENT_IP echo "Saving new IP" echo $CURRENT_IP &gt; /tmp/my_ip

for HOST in ${HOSTS[@]};
do
	echo "Updating " $HOST " to " $CURRENT_IP
	wget -O - "http://${USERNAME}:${PASSWORD}@${SERVER}/nic/update?system=dyndns&amp;hostname=${HOST}&amp;myip=${CURRENT_IP}&amp;wildcard=NOCHG&amp;mx=NOCHG&amp;backmx=NOCHG" 2&gt;/dev/null
	echo ""
done</pre>
<p>Et voila, I hope this helps someone out there</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guesny.net/2010/03/27/dyndns-and-uptime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AAC &#8211; Round 2</title>
		<link>http://blog.guesny.net/2009/05/20/aac-round-2/</link>
		<comments>http://blog.guesny.net/2009/05/20/aac-round-2/#comments</comments>
		<pubDate>Wed, 20 May 2009 08:19:09 +0000</pubDate>
		<dc:creator>welsh_dwarf</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[aac]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.guesny.net/index.php/2009/05/20/aac-round-2/</guid>
		<description><![CDATA[I&#8217;ve just gotten back into ffmpeg fun after a long haitus, during which ffmpeg v5 has come out. (No deb instructions this time since I&#8217;ve passed on to arch, which has a perfectly functional package). A couple of thing seem &#8230; <a href="http://blog.guesny.net/2009/05/20/aac-round-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just gotten back into ffmpeg fun after a long haitus, during which ffmpeg v5 has come out.</p>
<p>(No deb instructions this time since I&#8217;ve passed on to arch, which has a perfectly functional package).</p>
<p>A couple of thing seem to have changed though, namely:</p>
<ul>
<li>Bitrates are now in bytes/seconde rather than kbytes/seconde (unless otherwise stated)</li>
<li>AAC is no longer an encoder module (use libfaac)</li>
<li>mp4/amr containers don&#8217;t seem to work to well with libfaac, use 3gp instead to be safe.</li>
</ul>
<p>Which gives:</p>
<pre class="bash"> ffmpeg -i input.avi -vcodec h263 -b 409600 -s 352x288 -acodec libfaac -ab 65536 -ar 48000 -ac 2 -f 3gp output.3gp</pre>
<p>Happy encoding</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guesny.net/2009/05/20/aac-round-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DNS 101</title>
		<link>http://blog.guesny.net/2009/03/02/dns-101/</link>
		<comments>http://blog.guesny.net/2009/03/02/dns-101/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 11:41:42 +0000</pubDate>
		<dc:creator>welsh_dwarf</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[dot]]></category>

		<guid isPermaLink="false">http://blog.guesny.net/index.php/2009/03/02/dns-101/</guid>
		<description><![CDATA[I just thought that I&#8217;d post a quickie on DNS FQDNs (Fully qualified domain names). Go to your browser, type in www.google.com, you get the google home page. Everythings normal there. Now, change your url, ad a dot (so that &#8230; <a href="http://blog.guesny.net/2009/03/02/dns-101/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just thought that I&#8217;d post a quickie on DNS FQDNs (Fully qualified domain names).</p>
<p>Go to your browser, type in www.google.com, you get the google home page. Everythings normal there.</p>
<p>Now, change your url, ad a dot (so that it reads www.google.com.) . The page still loads.</p>
<p>This is risky, since it can lead to a duplicate content malus on google, but is perfectly normal DNS behaviour.</p>
<p>The actual FQDN is www.google.com<span style="font-weight: bold;">. </span>. It&#8217;s just that, to make our lives easier, the last dot is optional.</p>
<p>Unfortunatly, there&#8217;s no way to get rid of them (even 301s seem flaky).</p>
<p>That&#8217;s all, just so that the next time you see bizzars urls, you have a reason for them all ready for your boss <img src='http://blog.guesny.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=c42d9bfc-df53-4710-bc9a-3d7b6d2407e6" /></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.guesny.net/2009/03/02/dns-101/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New server &#8211; same blog</title>
		<link>http://blog.guesny.net/2009/02/18/new-server-same-blog/</link>
		<comments>http://blog.guesny.net/2009/02/18/new-server-same-blog/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 13:16:17 +0000</pubDate>
		<dc:creator>welsh_dwarf</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[opengate]]></category>

		<guid isPermaLink="false">http://blog.guesny.net/?p=69</guid>
		<description><![CDATA[I&#8217;ve just finished moving my blog (and my mail) over to a new server. For once, the new machine is less powerful than the old. This blog is now running on an opengate with 512Mb ram and 512Mb of disk &#8230; <a href="http://blog.guesny.net/2009/02/18/new-server-same-blog/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just finished moving my blog (and my mail) over to a new server.</p>
<p>For once, the new machine is <strong>less</strong> powerful than the old.</p>
<p>This blog is now running on an <a href="http://www.easyneuf.org">opengate</a> with 512Mb ram and <strong>512Mb</strong> of disk (!)</p>
<p>The small install size (systme + data &lt;400Mb) is obtained by using a basic Debian install, and by taking a rm to most of the documentation and things like that.</p>
<p>I might even try to get it down to under 300Mb soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guesny.net/2009/02/18/new-server-same-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I Hate downtime</title>
		<link>http://blog.guesny.net/2008/07/09/i-hate-downtime/</link>
		<comments>http://blog.guesny.net/2008/07/09/i-hate-downtime/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 12:04:17 +0000</pubDate>
		<dc:creator>welsh_dwarf</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.guesny.net/index.php/2008/07/09/i-hate-downtime/</guid>
		<description><![CDATA[Yesterday evening, I agreed to turn my Home Server &#8482; off too help some people sleep. Unfortunatly my servers sleep turned out to be the big sleep, and this morning it refused to start. A few hours and a HD &#8230; <a href="http://blog.guesny.net/2008/07/09/i-hate-downtime/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yesterday evening, I agreed to turn my Home Server &#8482; off too help some people sleep.</p>
<p>Unfortunatly my servers sleep turned out to be the big sleep, and this morning it refused to start.</p>
<p>A few hours and a HD transplant later, evrything is back on line, now running on a Semperon 2600 and 1Go of ram <img src='http://blog.guesny.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guesny.net/2008/07/09/i-hate-downtime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu vs AAC (round 1)</title>
		<link>http://blog.guesny.net/2008/06/07/ubuntu-vs-aac-round-1/</link>
		<comments>http://blog.guesny.net/2008/06/07/ubuntu-vs-aac-round-1/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 08:56:15 +0000</pubDate>
		<dc:creator>welsh_dwarf</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.guesny.net/index.php/2008/06/07/ubuntu-vs-aac-round-1/</guid>
		<description><![CDATA[For better or for worse, (generally for worse) a lot of multimedia systems seem to like making peoples lives difficult. This is painfully obvious with AAC and the formats that use it (think mp4). Luckally, playback can be assured by &#8230; <a href="http://blog.guesny.net/2008/06/07/ubuntu-vs-aac-round-1/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For better or for worse, (generally for worse) a lot of multimedia systems seem to like making peoples lives difficult.</p>
<p>This is painfully obvious with AAC and the formats that use it (think mp4).</p>
<p>Luckally, playback can be assured by using a nice arrangement of plugins that are downloaded just in time to play the offending file on your computer (thanks ubuntu).</p>
<p>This help doesn&#8217;t extend to re-encoding though, so for those of you lucky enough to have an mp4 capable phone (like the sony erricsons), you can find that putting the latest Bleach on your phone to be an exercise in frustration.</p>
<p>The reasons for this are numerous and complexe but come down to the simple fact that if cannonicle put aac encoders in Ubuntu they&#8217;d be sued to kingdom come in the states (thank god I don&#8217;t live there <img src='http://blog.guesny.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ).</p>
<p>Help is at hand though, since even if the versions of the enncoding tools included with Ubuntu don&#8217;t come equiped, you can re-compile them so that they work as intended.</p>
<p>First up: ffmpeg</p>
<p>FFmpeg is one of the many swiss army knives used for video encoding available with Linux. It&#8217;s probably the easiest to use, and like it&#8217;s cousins, the ubuntu version comes cripled.</p>
<p>What to do?</p>
<p>First of all, make sure we have what&#8217;s needed to re-build it</p>
<blockquote><p>sudo apt-get build-dep ffmpeg</p></blockquote>
<p>Then add a few libraries (that add the magic support)</p>
<blockquote><p>sudo apt-get install libfaac-dev libfaac0 libfaad-dev libfaad2-0 libfaad0</p></blockquote>
<p>Finally, get the  source code to ffmpeg</p>
<blockquote><p>mkdir ffmpeg<br />
cd ffmpeg<br />
apt-get source ffmpeg</p></blockquote>
<p>Now the fun starts, you should have 3 files and a directory before you.</p>
<p>Cd into the directory.</p>
<p>Now let&#8217;s move this thing arround a bit:</p>
<p>Open: debian/rules</p>
<p>This file tells dpkg how to build ffmpeg, we want to add a config flag so go to the lines that start with &#8220;confflags&#8221; and add on to one of them:</p>
<blockquote><p>&#8211;enable-libfaad &#8211;enable-libfaac</p></blockquote>
<p>Save, and quit, now all you have to do is re-build the package</p>
<blockquote><p>dpkg-buildpackage</p></blockquote>
<p>go have a coffee while it builds, and then install the result:</p>
<blockquote><p>cd ..<br />
dpkg -i ffmpeg*</p></blockquote>
<p>To use, something like this is needed:</p>
<blockquote><p>ffmpeg  -i Source.avi -vcodec h263 -b 400 -s 352&#215;288 -acodec aac -ab 64  -ar 48000 -ac 2 -f mp4 Dest.mp4</p></blockquote>
<p>Update:</p>
<p>For eugenia (and anyone else who also wants AMR support), here are the debs with it (supported in the &#8216;if it breaks you get to keep both pieces&#8217; way since I haven&#8217;t got the means to test them atm:</p>
<p>Update :</p>
<p>I&#8217;ve removed the download links for now since the files aren&#8217;t available on my server any longer. If anyone needs them, let me know</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guesny.net/2008/06/07/ubuntu-vs-aac-round-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Bye bye Dapper, Welcome Hardy</title>
		<link>http://blog.guesny.net/2008/04/27/bye-bye-dapper-welcome-hardy/</link>
		<comments>http://blog.guesny.net/2008/04/27/bye-bye-dapper-welcome-hardy/#comments</comments>
		<pubDate>Sun, 27 Apr 2008 13:50:25 +0000</pubDate>
		<dc:creator>welsh_dwarf</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Dapper]]></category>
		<category><![CDATA[Hardy]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.guesny.net/index.php/2008/04/27/bye-bye-dapper-welcome-hardy/</guid>
		<description><![CDATA[I&#8217;ve just finished upgrading my server to Ubuntu Hardy, with virtual no trouble. The only problem came from the kernel, which now callsÂ  ide drives &#8216;sd&#8230;&#8217; instead of &#8216;hd&#8230;&#8217; so hda1 becomes sda1. Update grub or face the consequances.You have &#8230; <a href="http://blog.guesny.net/2008/04/27/bye-bye-dapper-welcome-hardy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just finished upgrading my server to Ubuntu Hardy, with virtual no trouble.</p>
<p>The only problem came from the kernel, which now callsÂ  ide drives &#8216;sd&#8230;&#8217; instead of &#8216;hd&#8230;&#8217; so hda1 becomes sda1.</p>
<p>Update grub or face the consequances.You have been warned!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guesny.net/2008/04/27/bye-bye-dapper-welcome-hardy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zabbix</title>
		<link>http://blog.guesny.net/2008/02/07/zabbix/</link>
		<comments>http://blog.guesny.net/2008/02/07/zabbix/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 10:35:51 +0000</pubDate>
		<dc:creator>welsh_dwarf</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://blog.guesny.net/index.php/2008/02/07/zabbix/</guid>
		<description><![CDATA[Sometimes things that seem completely harmless just come and hit you over the head&#8230; That&#8217;s what happened to me with Zabbix yesterday. I was going through some items and cleaning up, when suddenly, 4 hosts went off-line. Except that they &#8230; <a href="http://blog.guesny.net/2008/02/07/zabbix/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Sometimes things that seem completely harmless just come and hit you over the head&#8230;</p>
<p>That&#8217;s what happened to me with Zabbix yesterday. I was going through some items and cleaning up, when suddenly, 4 hosts went off-line. Except that they hadn&#8217;t. </p>
<p>I couldn&#8217;t understand why Zabbix refused to see them (the agents were responding fine).</p>
<p>I finally found out that it was because of the way that Zabbix calculates the &#8216;status&#8217; item, which has a value of 0 if alls well, and 2 if the host is off-line.</p>
<p>Zabbix looks at the first item to be taken of the host, if that item returns an empty string, Zabbix decides that the host is dead and raises the alarm, even if the host has 150 other items all working perfectly. This bizzar to say the least, but workable. If this happens, a quick fix is to deactivate the offending Item, so that the first Item checked returns a value, then the host comes back <img src='http://blog.guesny.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Any how, I thought I&#8217;d just document this in case anyone else starts loosing hair over the issue <img src='http://blog.guesny.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guesny.net/2008/02/07/zabbix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

