<?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>Zabbix Weblog</title>
	<atom:link href="http://blog.zabbix.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zabbix.com</link>
	<description>The Future of Monitoring</description>
	<lastBuildDate>Tue, 31 Jan 2012 14:28:42 +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>CeBIT 2012 – the way to take over the world in 5 days</title>
		<link>http://blog.zabbix.com/cebit-2012-%e2%80%93-the-way-to-take-over-the-world-in-5-days/667/</link>
		<comments>http://blog.zabbix.com/cebit-2012-%e2%80%93-the-way-to-take-over-the-world-in-5-days/667/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 09:51:14 +0000</pubDate>
		<dc:creator>Jenya</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://blog.zabbix.com/?p=667</guid>
		<description><![CDATA[Everything happens for the first time. This statement comes true with Zabbix rather often lately. Could be due to a rapid growth. So to make our life even more interesting, we decided to take over the world – IT world. &#8230; <a href="http://blog.zabbix.com/cebit-2012-%e2%80%93-the-way-to-take-over-the-world-in-5-days/667/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://creativecommons.org/licenses/by-nc-nd/2.0/deed.en"><img class="alignright" src="http://farm1.staticflickr.com/5/4600287_1c150e181e_o.gif" alt="" width="327" height="330" /></a>Everything happens for the first time. This statement comes true with Zabbix rather often lately. Could be due to a rapid growth.</p>
<p><span id="more-667"></span></p>
<p>So to make our life even more interesting, we decided to take over the world – IT world. Not the whole world, but rather specific destination. To be more accurate, city of Hanover in Germany.</p>
<p>This city is famous for hosting digital industry’s largest and most international exhibition –CeBIT.  Last year more than 4,200 companies like Zabbix, maybe some of bigger size, from more than 70 countries tried to conquer the Earth. And some of them really did so.</p>
<p>So this year Zabbix decided to rule. If you are among those who plan to join the event, you will be able to find us at Hall No. 6, Stand D08 of CeBIT pro section. We plan to surprise you with a demonstration of the very latest version of Zabbix by showing around the newest features and talking about upcoming developments. We plan to devote a special presentation to a long awaited release of Zabbix 2.0 version, revealing to general public all those benefits and advantages that makes it so different from previous versions.</p>
<p>Our special force during this event will be represented by Alexei – Mega-Mind, Jelena – Open-Mind, and Rich – Master-Mind.</p>
<p><!--more--><br />
<!--more--></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zabbix.com/cebit-2012-%e2%80%93-the-way-to-take-over-the-world-in-5-days/667/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When Alexei isn&#8217;t looking&#8230;</title>
		<link>http://blog.zabbix.com/when-alexei-isnt-looking/632/</link>
		<comments>http://blog.zabbix.com/when-alexei-isnt-looking/632/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 14:35:39 +0000</pubDate>
		<dc:creator>Aleksandrs Saveljevs</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[memory]]></category>

		<guid isPermaLink="false">http://blog.zabbix.com/?p=632</guid>
		<description><![CDATA[Normally, Alexei is the one that directs Zabbix development: which bugs are meant to be fixed and which features are meant to be implemented. However, sometimes Alexei is too busy to pay enough attention to what developers are doing, and &#8230; <a href="http://blog.zabbix.com/when-alexei-isnt-looking/632/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Normally, Alexei is the one that directs Zabbix development: which bugs are meant to be fixed and which features are meant to be implemented. However, sometimes Alexei is too busy to pay enough attention to what developers are doing, and that is a chance to do some hacking. Here is one of them.</p>
<p><span id="more-632"></span></p>
<p>It all started out when Pavel Timofeev pointed out a problem with <tt>vm.memory.size</tt> checks on FreeBSD: some of the memory checks on FreeBSD as supported by Zabbix 1.8 agent are not very meaningful (see <a href="https://support.zabbix.com/browse/ZBXNEXT-1024">ZBXNEXT-1024</a> for more details). So we started looking into the issue and discovered that some memory checks on other operating systems are not very meaningful either. One of these operating systems was Mac OS X. Since it is not a common guest in our office, developers decided to take the opportunity and take a look at Zabbix code for Mac OS X. Among other things, support for Mac OS X lacked network checks. So we started looking at network checks for other platforms and so it went&#8230;</p>
<h1>Mac OS X</h1>
<p>Since we do not see Mac OS X very often, the <a href="http://www.zabbix.com/documentation/1.8/manual/config/items#supported_by_platform">documentation page for 1.8</a> has a bunch of question marks to indicate that we did not know which checks are supported. During this development we have added some and documented all checks supported for Mac OS X on the <a href="http://www.zabbix.com/documentation/2.0/manual/appendix/items/supported_by_platform">documentation page for 2.0</a>.</p>
<p>Here is a summary of new items supported on Mac OS X:</p>
<ul>
<li><tt>system.boottime</tt></li>
<li><tt>system.cpu.num[max]</tt></li>
<li><tt>net.if.collisions</tt></li>
<li><tt>net.if.in</tt></li>
<li><tt>net.if.out</tt></li>
<li><tt>net.if.total</tt></li>
<li><tt>vfs.fs.discovery</tt></li>
</ul>
<p>In 1.8, item <tt>system.cpu.num[online]</tt> actually returns the number of available CPUs. This has been fixed and support for <tt>system.cpu.num[max]</tt> was added. There is now also a possibilty to monitor network traffic and discover file systems!</p>
<h1>net.tcp.listen and net.udp.listen</h1>
<p>As the development when along, item <tt>net.tcp.listen</tt> has been added on Mac OS X and item <tt>net.udp.listen</tt> has been added on FreeBSD, Mac OS X, and Solaris.</p>
<h1><a name="vm.memory.size">vm.memory.size</a></h1>
<p>The main part of development was related to a single memory check: <tt>vm.memory.size</tt>. The problem pointed out by Pavel was that, for instance, <tt>vm.memory.size[used]</tt> on FreeBSD did not return very useful information and there was no way to monitor FreeBSD-specific types of memory: <em>active</em>, <em>inactive</em>, <em>wired</em>. Other platforms turned out to have the same problem and it was clear that <tt>vm.memory.size</tt> had to be redesigned a bit.</p>
<p>Clearly, it is necessary to monitor platform-specific types of memory, so item <tt>vm.memory.size</tt> now provides access to most of them. For instance, Zabbix can now monitor <em>pinned</em> and <em>free</em> memories on AIX, as well as <em>active</em>, <em>inactive</em>, <em>wired</em>, <em>anon</em>, <em>exec</em>, <em>file</em>, <em>free</em> memories on NetBSD. The complete list for all platforms is available at the <a href="http://www.zabbix.com/documentation/2.0/manual/appendix/items/supported_by_platform">documentation page for 2.0</a>.</p>
<p>It is also apparent that monitoring platform-specific types of memory is not always necessary. What is required is a user-level estimate on how much memory is used and how much memory is available. Items <tt>vm.memory.size[used]</tt>, <tt>vm.memory.size[pused]</tt> and <tt>vm.memory.size[available]</tt>, <tt>vm.memory.size[pavailable]</tt> are intended to provide these estimates &#8211; in bytes and in percentages from total.</p>
<p>Note that <tt>vm.memory.size[used]</tt> plus <tt>vm.memory.size[available]</tt> do not necessarily equal total amount of memory. For instance, on FreeBSD <em>active</em>, <em>inactive</em>, <em>wired</em>, <em>cached</em> memories are considered used, because they store some useful information. At the same time <em>inactive</em>, <em>cached</em>, <em>free</em> memories are considered available, because these kinds of memories can be given instantly to processes that request more memory. So, for example, <em>inactive</em> memory is both used and available simultaneously. Because of this, item <tt>vm.memory.size[used]</tt> is designed for informational purposes only, while item <tt>vm.memory.size[available]</tt> is designed to be used in triggers. These user-level estimate items are available for all platforms. More information is available on the page describing <a title="vm.memory.size parameters" href="http://www.zabbix.com/documentation/2.0/manual/appendix/items/vm.memory.size_params">vm.memory.size parameters</a>.</p>
<p>One notable consequence of these changes is that we have removed item <tt>vm.memory.size[pfree]</tt>. Since <em>free</em> is a platform-specific memory type, getting its percentage from total is not very useful. Item <tt>vm.memory.size[pavailable]</tt> now provides the necessary functionality.</p>
<p>A final small note is that <tt>vm.memory.size[shared]</tt> has been dropped for Linux 2.6, because it always returned 0. It is still supported for Linux 2.4 and corresponds to &#8220;shrd&#8221; memory in <tt>top(1)</tt> output.</p>
<p>That&#8217;s what happens when management isn&#8217;t looking. Beware. <img src='http://blog.zabbix.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zabbix.com/when-alexei-isnt-looking/632/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Shark attack</title>
		<link>http://blog.zabbix.com/shark-attack/606/</link>
		<comments>http://blog.zabbix.com/shark-attack/606/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 14:24:48 +0000</pubDate>
		<dc:creator>Richlv</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[graphs]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[shark]]></category>
		<category><![CDATA[temperature]]></category>

		<guid isPermaLink="false">http://blog.zabbix.com/?p=606</guid>
		<description><![CDATA[Zabbix is used to monitor many of the world&#8217;s biggest environments. But it also monitors its own (albeit small) environment. And this environment recently saw a shark attack. One early Friday morning arriving in the Zabbix office revealed suspicious sounds &#8230; <a href="http://blog.zabbix.com/shark-attack/606/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="attachment_621" class="wp-caption alignright" style="width: 260px"><a href="http://blog.zabbix.com/wp-content/uploads/2011/11/shark_scaled1.jpg"><img class="alignright size-full wp-image-624" title="shark_scaled" src="http://blog.zabbix.com/wp-content/uploads/2011/11/shark_scaled1.jpg" alt="" width="250" height="166" /></a><br />
<p class="wp-caption-text">Picture by Ed Schipul</p></div>
<p>Zabbix is used to monitor many of the world&#8217;s biggest environments. But it also monitors its own (albeit small) environment. And this environment recently saw a shark attack.</p>
<p><span id="more-606"></span><br />
One early Friday morning arriving in the Zabbix office revealed suspicious sounds from the server room. It sounded a bit as if a plane was locked up in there and tried to break free. Opening the door resulted in&#8230; no, not <a href="http://www.youtube.com/watch?v=py86Pouutpg#t=1m">this sound</a> as the title might have made you guess, and not even in <a href="http://www.wireshark.org/">Wiresharks</a>. Instead it resulted in a significant heat wave, which also immediately explained the reason for that plane-like sound &#8211; with such temperature all fans were trying real hard to prevent hardware from frying.<br />
Turned out, electricity supply for the conditioning unit had died off, and the devices, busily serving various Zabbix resources, were fighting for fresh air.</p>
<p>Here we can see a 3 day ambient temperature (temperatures for CPU and disks were higher) for one server. Temperature starts rising before midnight until a sharp decrease several hours later.<br />
<a href="http://blog.zabbix.com/wp-content/uploads/2011/11/sql_3_days.png"><img class="alignnone size-full wp-image-616" title="sql_3_days" src="http://blog.zabbix.com/wp-content/uploads/2011/11/sql_3_days.png" alt="" width="853" height="390" /></a><br />
We can see how before the incident temperature was very stable at 21 degree, barely deviating from this value. During the non-global warming it jumped up to 36 degrees, followed by a very rapid drop for about one hour. Temperature drop stops around 6 in the morning and here it doesn&#8217;t go back to the previous level of 21, instead sticking to ~23 degrees. While not significant, there&#8217;s a small rise around 9 o&#8217;clock to about 24 degrees.</p>
<p>If we also look at a graph for one of the virtualisation servers for one week, we can see the same rise of temperature, here to 37 degrees (with a very steady 21 before that, same as for the previous server).<br />
<a href="http://blog.zabbix.com/wp-content/uploads/2011/11/vmware-1_week.png"><img class="alignnone size-full wp-image-617" title="vmware-1_week" src="http://blog.zabbix.com/wp-content/uploads/2011/11/vmware-1_week.png" alt="" width="853" height="376" /></a><br />
This graph does show one weird thing, though &#8211; a decent guess would be that during the temperature rise fan RPM goes up as well. Here it&#8217;s not like that &#8211; fan RPM drops instead from about 3485 RPM to 3465 RPM. If anybody has insight into this unexpected response, please share that with us.</p>
<p>Let&#8217;s look at another graph. This one shows UPS data for one day, including output voltage and UPS load. While other values don&#8217;t change in response to the temperature increase, UPS load does, and does notably. It goes from 76% to 85% during the temperature increase period, with the same sharp drop afterwards.<br />
<a href="http://blog.zabbix.com/wp-content/uploads/2011/11/ups-1_day.png"><img class="alignnone size-full wp-image-618" title="ups-1_day" src="http://blog.zabbix.com/wp-content/uploads/2011/11/ups-1_day.png" alt="" width="853" height="418" /></a><br />
While some of that can be attributed to increased fan RPM (except for that virtualisation system), there might be something else &#8211; again, if you have some experience with power draw monitoring at different temperatures, please, share it.</p>
<p>While graphs are interesting visually, they also do show some useful data, like times when temperature started to increase and when it dropped. The puzzle of one system fan RPM going down during temperature increase is very interesting as well. Additionally, this incident gave some ideas on what additional values could be monitored in the Zabbix environment &#8211; maybe that also gave some new ideas to you?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zabbix.com/shark-attack/606/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>After the Zabbix conference</title>
		<link>http://blog.zabbix.com/after-the-zabbix-conference/599/</link>
		<comments>http://blog.zabbix.com/after-the-zabbix-conference/599/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 10:45:00 +0000</pubDate>
		<dc:creator>Richlv</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[10 year anniversary]]></category>

		<guid isPermaLink="false">http://blog.zabbix.com/?p=599</guid>
		<description><![CDATA[There was not much time for blog articles during the conference. Or after that. But from the on-site experience and feedback it seems that the very first Zabbix conference was just a bit short of amazing. Talking about Zabbix We &#8230; <a href="http://blog.zabbix.com/after-the-zabbix-conference/599/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.zabbix.com/wp-content/uploads/2011/11/DSC_0084_250.jpg"><img class="alignright size-full wp-image-601" title="DSC_0084_250" src="http://blog.zabbix.com/wp-content/uploads/2011/11/DSC_0084_250.jpg" alt="" width="250" height="168" /></a>There was not much time for blog articles during the conference. Or after that. But from the on-site experience and feedback it seems that the very first Zabbix conference was just a bit short of amazing.</p>
<p><span id="more-599"></span></p>
<h2>Talking about Zabbix</h2>
<p>We had two days of Zabbix talks about various topics, including Zabbix in safety critical environments, scaling in huge enterprises, performance and API usage &#8211; and lots of others. In between the talks heated discussions took place about various practical topics. What we learned &#8211; breaks were not long enough, at least the first ones. Everybody seemed to be so very excited to meet others whom they could discuss secrets of monitoring with, that it was hard to get in the mood for another talk. Given the extreme variety of industries and environments that participants represented, it was indeed a unique chance to catch that person who implemented something you just started looking into.</p>
<p>It was amusing to see some speaker show how concerned they were with a specific problem with triggers going into UNKNOWN state &#8211; which in their environment was represented by blue icons  &#8211; by saying &#8220;red and blue lights&#8221; (while intending to say &#8220;red and green&#8221;, of course). Or, after some discussion with our USA friends on how &#8220;nobody says <em>from USA</em>&#8221; the previous night, hear the European slant of the event with &#8220;I&#8217;d like to introduce our next speaker from the USA&#8221;&#8230;</p>
<h2>Who was there</h2>
<p>More than 100 people participated in the conference from many countries from as far as Brazil and Japan. The biggest amount of visitors was from Russia, while Estonia grabbed the second place. Third place was tied between Japan, Lithuania and The Netherlands.</p>
<h2>&#8230;not just Zabbix</h2>
<p>Of course, it wasn&#8217;t just strictly Zabbix that was being discussed. There was quite a lot of other activities, like several nights of various Riga specialties, including the welcoming Riga Old Town, beer and <a href="http://en.wikipedia.org/wiki/Riga_Black_Balsam">Riga Black Balsam</a> (which seemed to earn a special place in hearts and clothes of some participants). You can see both official and less official events in <a href="http://www.zabbix.com/conf2011_gallery.php">the picture gallery</a>. If you have your own stories about the Zabbix conference, feel free to share them in the comments here.</p>
<p>Oh, and if you have your own pictures of the event, send them over to the <a href="mailto:conference@zabbix.com">Zabbix conference e-mail</a> (if you have more than a few, just let us know &#8211; we&#8217;re all technical people here, we surely can figure out better means to transmit images).</p>
<p>Have any other feedback? Post that in the <a href="http://www.zabbix.com/forum/showthread.php?t=23596">conference forum thread</a>.</p>
<h2>Couldn&#8217;t attend?</h2>
<p>For those who couldn&#8217;t attend or would like to refresh their memories most of the slides are available for download on the <a href="http://www.zabbix.com/conf2011_agenda.php">conference agenda page</a>. While that won&#8217;t have most of the content that was given during the talk itself, it might at least give some indication of the topics covered during the conference.</p>
<h2>See you next year</h2>
<p>We also heard that many people could not come because they found out about the event too late &#8211; to prevent that from happening next year (we just <em>have</em> to have this event again&#8230;), we would like to start planning a bit sooner. To keep up with the news you can follow the usual community channels (forum, IRC channel), and you can also subscribe to the Zabbix newsletter &#8211; see left hand side on the <a href="http://www.zabbix.com/">Zabbix homepage</a>.</p>
<p>Suggested dates for the next year event will be announced shortly &#8211; stay tuned. In the meanwhile we could promise to tell you next year in-person how one of the conference memes started.</p>
<blockquote><p>&#8230;no Wi-Fi</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.zabbix.com/after-the-zabbix-conference/599/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Before the Zabbix conference</title>
		<link>http://blog.zabbix.com/before-the-zabbix-conference/572/</link>
		<comments>http://blog.zabbix.com/before-the-zabbix-conference/572/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 20:30:26 +0000</pubDate>
		<dc:creator>Richlv</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Social]]></category>
		<category><![CDATA[10 year anniversary]]></category>

		<guid isPermaLink="false">http://blog.zabbix.com/?p=572</guid>
		<description><![CDATA[Zabbix conference starts tomorrow. But many guests have already arrived, and preparation works are happening. Here&#8217;s a small insight with images into various processes. Preparing for the conference Last things are checked and prepared in the conference venue: Preparing in &#8230; <a href="http://blog.zabbix.com/before-the-zabbix-conference/572/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Zabbix conference starts tomorrow. But many guests have already arrived, and preparation works are happening. Here&#8217;s a small insight with images into various processes.<span id="more-572"></span></p>
<h2>Preparing for the conference</h2>
<p>Last things are checked and prepared in the conference venue:</p>
<table>
<tbody>
<tr>
<td><a href="http://blog.zabbix.com/wp-content/uploads/2011/09/IMG_0850.jpg"><img class="alignleft size-medium wp-image-574" title="IMG_0850" src="http://blog.zabbix.com/wp-content/uploads/2011/09/IMG_0850-300x225.jpg" alt="" width="300" height="225" /></a></td>
<td><a href="http://blog.zabbix.com/wp-content/uploads/2011/09/IMG_0851.jpg"><img class="alignleft size-medium wp-image-575" title="IMG_0851" src="http://blog.zabbix.com/wp-content/uploads/2011/09/IMG_0851-300x225.jpg" alt="" width="300" height="225" /></a></td>
</tr>
<tr>
<td><a href="http://blog.zabbix.com/wp-content/uploads/2011/09/IMG_0849.jpg"><img class="alignleft size-medium wp-image-573" title="IMG_0849" src="http://blog.zabbix.com/wp-content/uploads/2011/09/IMG_0849-300x225.jpg" alt="" width="300" height="225" /></a></td>
</tr>
</tbody>
</table>
<h2>Preparing in a different way</h2>
<p>In the meanwhile, some of the participants are preparing in a different way, making sure they have the required strength:</p>
<table>
<tbody>
<tr>
<td><a href="http://blog.zabbix.com/wp-content/uploads/2011/09/IMG_0847.jpg"><img class="alignleft size-medium wp-image-577" title="IMG_0847" src="http://blog.zabbix.com/wp-content/uploads/2011/09/IMG_0847-300x225.jpg" alt="" width="300" height="225" /></a></td>
<td><a href="http://blog.zabbix.com/wp-content/uploads/2011/09/IMG_0846.jpg"></a><img class="alignleft size-medium wp-image-578" title="IMG_0846" src="http://blog.zabbix.com/wp-content/uploads/2011/09/IMG_0846-300x225.jpg" alt="" width="300" height="225" /></td>
</tr>
<tr>
<td><a href="http://blog.zabbix.com/wp-content/uploads/2011/09/IMG_0848.jpg"><img class="alignleft size-medium wp-image-579" title="IMG_0848" src="http://blog.zabbix.com/wp-content/uploads/2011/09/IMG_0848-300x225.jpg" alt="" width="300" height="225" /></a></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://blog.zabbix.com/before-the-zabbix-conference/572/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Storing images in the Zabbix database</title>
		<link>http://blog.zabbix.com/storing-images-in-the-zabbix-database/563/</link>
		<comments>http://blog.zabbix.com/storing-images-in-the-zabbix-database/563/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 16:43:49 +0000</pubDate>
		<dc:creator>Richlv</dc:creator>
				<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://blog.zabbix.com/?p=563</guid>
		<description><![CDATA[The encoding, database and the dog Zabbix provides a network map feature, where images may represent triggers, hosts, host groups etc. They may show current status, problem count and lots of other data. There are some default images that may &#8230; <a href="http://blog.zabbix.com/storing-images-in-the-zabbix-database/563/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>The encoding, database and the dog</h2>
<p>Zabbix provides a network map feature, where images may represent triggers, hosts, host groups etc. They may show current status, problem count and lots of other data. There are some default images that may be used in the maps, and users may also upload their own. This uploading has been a problem in the past.<span id="more-563"></span></p>
<p>These images are stored in the database. The problem is, Zabbix supports 5 different databases, and they store binary data in different formats. And that resulted in users having <a href="https://support.zabbix.com/browse/ZBX-417">different</a> <a href="https://support.zabbix.com/browse/ZBX-1494">problems</a> when database encoding was incorrect. Of course, maintaining data in multiple different formats is also not that easy, and updating icon set is harder than it should be.</p>
<h2>Re-base the images</h2>
<p>Thus the idea is to unify image storing and keep them in base64 for all databases. While that would increase the amount of space images take, it would solve lots of problems and make life easier for Zabbix users. The problem is upgrading.</p>
<p>Users would want to keep their existing images, probably. So upgrade should convert them to base64 (keeping support for old format would be duplicate work, and there would be no way to phase this support out later anyway. Doing this for all supported databases does not seem to be possible at this time with the upgrade process Zabbix currently uses &#8211; Zabbix database patches for going to the next major version are in SQL. Involving a separate process outside the database at this time is not considered, and storing images in the filesystem wouldn&#8217;t work because of the distributed monitoring.</p>
<p>So the question to the Zabbix community would be &#8211; how would you handle this problem?</p>
<p>And, by the way, we are looking for great PHP programmers&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zabbix.com/storing-images-in-the-zabbix-database/563/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Representative of ZABBIX-JP going to Latvia</title>
		<link>http://blog.zabbix.com/representative-of-zabbix-jp-going-to-latvia/515/</link>
		<comments>http://blog.zabbix.com/representative-of-zabbix-jp-going-to-latvia/515/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 07:21:37 +0000</pubDate>
		<dc:creator>kodai</dc:creator>
				<category><![CDATA[Social]]></category>

		<guid isPermaLink="false">http://blog.zabbix.com/?p=515</guid>
		<description><![CDATA["Community activities changed everything" - The only Japanese engineer working in Latvian company.
This article is a translation from an interview with Kodai Terashima in @IT in Japan. <a href="http://blog.zabbix.com/representative-of-zabbix-jp-going-to-latvia/515/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>﻿﻿﻿﻿<a href="http://blog.zabbix.com/wp-content/uploads/2011/09/04.jpg"><img class="alignright size-full wp-image-556" title="04" src="http://blog.zabbix.com/wp-content/uploads/2011/09/04.jpg" alt="" width="250" height="157" /></a>This article is a translation from an interview with Kodai Terashima in <a href="http://www.atmarkit.co.jp/news/201104/27/zabbix.html">@IT in Japan</a>. Please do not hesitate to comment if you notice any mistakes or anything strange!</p>
<p>This article has already been translated into Brasilian Portuguese &#8211; <a href="http://andredeo.blogspot.com/2011/06/representante-do-zabbix-jp-esta-indo.html">Representante do ZABBIX-JP está indo para a Letónia</a>.</p>
<p><span id="more-515"></span></p>
<h2>&#8220;Community activities changed everything&#8221; &#8211; The only Japanese engineer working in Latvian company</h2>
<p>2011/04/27</p>
<p>Latvia is a country by the Baltic Sea. The country is one sixth of Japan, official language is Latvian, and there are many people who speak Russian. The capital is Riga, which is a beautiful port city, called &#8220;Pearl of the Baltic&#8221;. Zabbix SIA, which is developing Zabbix, an open source monitoring software, is located here.</p>
<p>&#8220;I had never dreamed that I might work abroad, moreover in Latvia,&#8221;</p>
<p><a href="http://blog.zabbix.com/wp-content/uploads/2011/09/01.jpg"><img class="alignnone size-full wp-image-553" title="01" src="http://blog.zabbix.com/wp-content/uploads/2011/09/01.jpg" alt="" width="480" height="383" /></a><br />
<span>Republic of Latvia, Riga</span></p>
<p>says Kodai Terashima, who is a representative of ZABBIX-JP (Zabbix community in Japan) and the only Japanese engineer working in Latvia. He had been working for MIRACLE LINUX CORPORATION, but quit the company in April 2011. Soon after that, he went to Latvia and now he works for Zabbix SIA.</p>
<p>Going to Latvia &#8211; it was a very big decision for his career. Why does he work in a foreign country in which there are only 20 Japanese people? His answer is very simple. &#8220;It&#8217;s the community activities of Zabbix.&#8221;</p>
<h3>The encounter with Zabbix has changed everything</h3>
<p>He first encountered Zabbix in 2005. At that time, he worked for a System Integrator company as an infrastructure engineer who manages and constructs networks and servers for IT systems.</p>
<p><a href="http://blog.zabbix.com/wp-content/uploads/2011/09/02.jpg"><img class="alignnone size-full wp-image-554" title="SAMSUNG" src="http://blog.zabbix.com/wp-content/uploads/2011/09/02.jpg" alt="" width="250" height="324" /></a><br />
<span>Mr. Kodai Terashima, Zabbix SIA</span></p>
<p>&#8220;Our system is down often, so we would like you to construct a monitoring system,  but we don&#8217;t have enough budget.&#8221; It was one of those projects that would change his career.</p>
<p>&#8220;My work was &#8220;looking for a good and free monitoring software.&#8221; I searched and compared some open source monitoring software. So, I had my eye on Zabbix.&#8221;</p>
<p>At that time, Nagios was the most famous software as an open source monitoring tool. There were many installations of Nagios in Japanese companies, and translated Japanese documents. On the other hand, Zabbix was a totally unknown software. In his words, there was not one Japanese document related to Zabbix as a result of Google search in 2005.</p>
<p>However, features of Zabbix were an equal match for Nagios. As a result of comparing some open source monitoring software, Zabbix was adopted in the project. &#8220;The project might be a very early installation of Zabbix in Japan,&#8221;  says Kodai.</p>
<h3>Only one in community</h3>
<p>In August 2005, a few months after the project completion. Mr. Terashima launched <a href="http://www.zabbix.jp/">ZABBIX-JP</a> site, as a community of Zabbix in Japan.</p>
<p><a href="http://blog.zabbix.com/wp-content/uploads/2011/09/03.jpg"><img class="alignnone size-full wp-image-555" title="03" src="http://blog.zabbix.com/wp-content/uploads/2011/09/03.jpg" alt="" width="480" height="352" /></a><br />
<span>Forum on ZABBIX-JP</span></p>
<p>&#8220;I posted a patch which was Japanese translation of Zabbix web interface at the same time. That was the start of exchanging some e-mails.&#8221;</p>
<p>The main activities of ZABBIX-JP are translation of web interface and documents, sharing of information on the forum, creating and sending patches. Currently ZABBIX-JP has hundreds of users in the mailing list and 8 person staff, but it was only himself in the community in 2005.</p>
<p>There were many tasks for him alone. The translations were especially troublesome. He hadn&#8217;t used English in his life and work before launching ZABBIX-JP. He had only read some English technical documents. He continued to gather and translate Zabbix information after work for several years.</p>
<p>Launching and managing the site of the software which he encountered in the project alone &#8212; not only doing some tasks but also keeping his motivation going seems hard. However, Mr. Terashima says, &#8220;I became an infrastructure engineer because I was interested in Linux, so I had a dream of launching a open source community.&#8221; Moreover, &#8220;If a forum is opened, I have to answer the posts,&#8221;  he smiles quite openly.</p>
<h3>Zabbix at work not only in community</h3>
<p>Mr. Terashima thought &#8220;I would like to get into the open source world&#8221;, so he changed his job to MIRACLE LINUX CORPORATION. At first, his work was related to Linux, and then he launched a Zabbix business in the company because of a request for &#8220;good monitoring software&#8221; by his customer in 2008.</p>
<p>He planned and did consultations, support for third-party software of Zabbix, and has grown the business. The business has grown to 4 full-time engineers in Zabbix team. As a result, the team has achieved the completion of about 20-30 Zabbix projects in about 3 years.</p>
<p>Zabbix began to spread in Japan with the expansion of the business. There were not many posts on the forum of ZABBIX-JP at the beginning, but the number of posts increased after a while. As Zabbix-related information was placed in some media in 2008, the posts in the forum increased to 10 posts per day.</p>
<h3>&#8220;I must get wide knowledge as an engineer&#8221;</h3>
<p>Mr. Terashima got into Zabbix not only with the community but also work. He is thankful to his company which accepted his community work and gave him the opportunity to launch the Zabbix business, but he started thinking about a job change.</p>
<p>&#8220;I wanted to know more things. I have been using Zabbix for 6 years, and I have worked for MIRACLE LINUX for 5 years. If someone works for one company, their knowledge and work style tends to fix. I want to know other technologies and companies, and to get more knowledge.&#8221;</p>
<p>Infrastructure engineers should have wide knowledge including servers, networks, applications, etc. He says &#8220;I am an infrastructure engineer,&#8221; again and again. His words, &#8220;An engineer should want to acquire varied knowledge, not stick to one technology,&#8221; reveal his goal as an infrastructure engineer.</p>
<h3>Why don&#8217;t you work in Latvia?</h3>
<p>November 2010. The turning point came suddenly from across the sea.</p>
<p>&#8220;If you are going to change your job, why don&#8217;t you work in Latvia?&#8221;</p>
<p><a href="http://blog.zabbix.com/wp-content/uploads/2011/09/04.jpg"><img class="alignnone size-full wp-image-556" title="04" src="http://blog.zabbix.com/wp-content/uploads/2011/09/04.jpg" alt="" width="250" height="157" /></a><br />
<span>Mr. Terashima and Mr. Alexei Vladishev, in Tokyo.</span></p>
<p>He told Mr. Alexei Vladishev who is the president of Zabbix SIA and his friend from 2005 about the job change and he was offered this, &#8220;First of all, why don&#8217;t you work for Zabbix SIA as an engineer for one year.&#8221; The offer surprised him, but he accepted it readily.</p>
<p>&#8220;For a man who had been in the community, it would be a pleasure to read and touch software codes in the original company. And I&#8217;m looking forward to seeing the engineers in Zabbix SIA who I have communicated with only by e-mail,&#8221; he says with a smile.</p>
<p>Zabbix is not like general OSS, developed by a company. So, all of the contributors could work for Zabbix SIA. In Latvia, a new land and environment, a possibility to join the development team of the software can be suitable for anyone who wants to do &#8220;challenging a new things.&#8221;</p>
<p>He asked his company about it, and got &#8220;Please come a big in Latvia&#8221; as response, with encouragement. Six months later, he would set foot in Latvia.</p>
<h3>Relationships with people are bred by community activity</h3>
<p>Mr. Terashima&#8217;s role in Latvia is to be a &#8220;Bridge between Japan and Latvia&#8221;, supporting Zabbix users and Zabbix partner companies, and marketing for Zabbix in Japan. He says &#8220;I want to join the development of Zabbix in the future.&#8221;</p>
<p>On the other hand, he still worries about language communication. He has only used English with ZABBIX-JP community work, not on business. In addition, engineers of Zabbix SIA speak English in Zabbix SIA, but the official language is Latvian in Latvia. The distance of Japan and Latvia is revealed by his words &#8220;There is only one Latvian language book in Japan&#8221;. &#8220;But&#8221;, he added.</p>
<p>&#8220;If I was alone, I wouldn&#8217;t have enough courage to go to Latvia. But I have a relationship which was cultivated through ZABBIX-JP. I think that engineers in Zabbix SIA, Alexei and many people will help me, so I could decide to go there.&#8221;</p>
<p>And, the relationships with people in Japan also give him confidence.</p>
<p>&#8220;I have joined the Open Source Conference and study meetings of infrastructure engineers from 2010. I&#8217;m glad that I could get a chance to have relationships with many people and I am called &#8220;Terashima-san, specialist of Zabbix&#8221; in this community.&#8221;</p>
<h3>Translation of OSS into Japanese will extend your activity</h3>
<p>&#8220;Why don&#8217;t you try to do a community activity?&#8221; he emphasizes.</p>
<p>Community activities create a good chance to build relationships, especially for an engineer who wants to work abroad. He especially recommends trying an OSS which has not been translated into Japanese yet. There are many things to do like translations and creating patches, then engineers from abroad will get to know your name while talking about these tasks in the mailing list.</p>
<p>He also mentions English communication which most of engineers might worry about &#8220;Even if you have not used English before, you can translate or write e-mails in English because most Japanese can read and write in English well. You don&#8217;t have to speak English. You can write an e-mail in English, it&#8217;s a good starting point,&#8221; he encourages.</p>
<p>&#8220;I think that it is hard to keep your motivation going if you are doing the translation tasks alone. You will get greater confidence if you can communicate with foreign engineers in English by e-mail if you are not good at English.&#8221;</p>
<h3>The activity started alone goes over the sea</h3>
<p>We asked him what he would like to experience in Latvia, and how he would like to grow as engineer. He answered, &#8220;I want to become an engineer who knows the entire IT technology widely and generally and then knows specific points deeply.&#8221;</p>
<p>Most of &#8220;Great engineers&#8221; who he has met at the Open Source Conference or study meetings for infrastructure engineers are that type, he thinks.</p>
<p>&#8220;Well, it&#8217;s difficult if you are not so. If you have specific technical knowledge deeply, everyone remembers you as a specialist of something in community or study meeting. It&#8217;s important.&#8221;</p>
<p>Zabbix is an integrated monitoring software, it can monitor many type of devices, so it is necessary to have a wide knowledge of applications and infrastructure. Exactly, Mr. Terashima is an engineer who &#8220;knows the entire IT technology widely and knows more than just anyone about Zabbix.&#8221;</p>
<p>The community activities started alone became a business, made relationships and have gone over the sea. &#8220;Now, I am glad that I have one more pleasure in seeing the map of the world.&#8221;</p>
<p><a href="http://blog.zabbix.com/wp-content/uploads/2011/09/05.jpg"><img class="alignnone size-full wp-image-557" title="05" src="http://blog.zabbix.com/wp-content/uploads/2011/09/05.jpg" alt="" width="480" height="386" /></a><br />
<span>Baltic sea</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zabbix.com/representative-of-zabbix-jp-going-to-latvia/515/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reloading configuration cache</title>
		<link>http://blog.zabbix.com/reloading-configuration-cache/528/</link>
		<comments>http://blog.zabbix.com/reloading-configuration-cache/528/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 14:38:38 +0000</pubDate>
		<dc:creator>Richlv</dc:creator>
				<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://blog.zabbix.com/?p=528</guid>
		<description><![CDATA[Zabbix daemons use various approaches to improve performance. One such measure, introduced in Zabbix 1.8, is configuration cache. It resulted in massive performance improvements (up to 10 times), mostly because of a significantly reduced database access (that we looked at &#8230; <a href="http://blog.zabbix.com/reloading-configuration-cache/528/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Zabbix daemons use various approaches to improve performance. One such measure, introduced in Zabbix 1.8, is configuration cache. It resulted in massive performance improvements (up to 10 times), mostly because of a significantly reduced database access (that we looked at in previous <a href="http://blog.zabbix.com/performance-improvements-in-zabbix-1-8-part-1">blog posts</a>). This cache slightly changes how Zabbix operates, though, and can introduce some delays in configuration information processing. Zabbix 1.8.6 provides a new feature to help with configuration cache management.<span id="more-528"></span></p>
<h2>What is Zabbix configuration cache</h2>
<p>Zabbix server generates configuration cache, mostly containing information on hosts and items to be monitored. It re-creates this cache by default every 60 seconds. This period can be customised by configuration parameter <em>CacheUpdateFrequency</em>.<br />
The cache size itself may be set with configuration parameter <em>CacheSize</em> and by default is 8MB.</p>
<p>This means that at any given time Zabbix server sees a snapshot of the configuration. If you make changes in the frontend, they are written to the database &#8211; but not immediately seen by the server.</p>
<h2>Be in control of it</h2>
<p>Now, if you are not making constant changes to the Zabbix configuration, reloading this cache every minute is not really necessary, and can be a bit resource intensive on large installations. In those cases it would be useful to increase this interval. But then any changes to the configuration would be noticed much later, which is not that nice either. How could this be solved?</p>
<p>Potential solution &#8211; some way to initiate reloading of configuration cache without restarting server daemon. Which is what got implemented for Zabbix 1.8.6.</p>
<p>Previously, no solution existed for modifying any Zabbix daemon characteristics while they are running, so there was a new generic decision to make &#8211; how to do that, because there might be further, similar functionality in the future. Eventually, this was implemented as a generic &#8220;runtime control&#8221; flag that gets an option passed to it. To quote &#8220;man zabbix_server&#8221;:</p>
<pre> -R, --runtime-control &lt;option&gt;
Perform administrative functions according to option.</pre>
<p>So it would accept additional option. Currently only one is supported &#8211; <em>config_cache_reload</em>. When using this option, server process looks at the configuration file and tries to find the PID file, as defined there. If found, signal is sent to the process, specified in the PID file.</p>
<pre># zabbix_server -R config_cache_reload
command sent successfully</pre>
<p>Upon receiving this signal, server reads configuration from the database and rebuilds the cache. It logs receiving of the signal in the logfile as well:</p>
<pre>forced reloading of the configuration cache</pre>
<p>If configuration is being read already at that time (either previously initiated by real time control or just a scheduled run), on the commandline success is still reported and entry is added to the logfile, but signal itself is ignored.</p>
<h2>Configuration cache and proxies</h2>
<p>Now, that was mostly about Zabbix server. The wonderful remote data collector, Zabbix proxy also keeps the configuration cache &#8211; what about it? Of course, it was not forgotten.<br />
There are two types of Zabbix proxies &#8211; passive one is contacted by the server, active one connects to the server.</p>
<p>Active proxy loads all its configuration data from the server upon startup and then repeats this process every hour by default. This period can be customised by configuration parameter <em>ConfigFrequency</em>. Configuration data is then stored in the local database on the proxy.<br />
Thus, if one would make any configuration changes on the server, it might take up to one hour for these changes to propagate to the proxy (and then potentially a bit more time to reach active Zabbix agents).</p>
<p>It is desirable to have some way to signal proxy that it should re-read this configuration data, especially when doing the initial configuration or testing &#8211; but re-reading it from the local database, like server does it, would be no good &#8211; it&#8217;s synchronisation from the server that matters. The great news is that active Zabbix proxy, upon receiving configuration cache reload request, is smart engouh to actually ask for this configuration from the server first.</p>
<p>Sending the configuration cache reload signal to an active proxy would result in log entries like these:</p>
<pre>forced reloading of the configuration cache
Received configuration data from server. Datalen 6629</pre>
<p>Passive Zabbix proxy is different &#8211; there the server connects to the proxy and sends the configuration data. When configuration cache reload signal is sent to a passive proxy, success is reported, logged &#8211; but ignored. It is not possible yet to signal server to re-send configuration information to passive proxies.</p>
<p>Happy reloading.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zabbix.com/reloading-configuration-cache/528/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spelling mistakes no more&#8230;</title>
		<link>http://blog.zabbix.com/spelling-mistakes-no-more/498/</link>
		<comments>http://blog.zabbix.com/spelling-mistakes-no-more/498/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 09:36:18 +0000</pubDate>
		<dc:creator>Richlv</dc:creator>
				<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://blog.zabbix.com/?p=498</guid>
		<description><![CDATA[&#8230;in the configuration files, that is. For a long time, if you made a mistake in a configuration parameter&#8217;s name, Zabbix processes would not really tell you about that. This is finally changing with Zabbix 1.8.6. The dark past Up &#8230; <a href="http://blog.zabbix.com/spelling-mistakes-no-more/498/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.zabbix.com/wp-content/uploads/2011/06/config_params.png"><img class="alignright size-full wp-image-505" title="config_params" src="http://blog.zabbix.com/wp-content/uploads/2011/06/config_params.png" alt="" width="351" height="134" /></a>&#8230;in the configuration files, that is. For a long time, if you made a mistake in a configuration parameter&#8217;s name, Zabbix processes would not really tell you about that. This is finally changing with Zabbix 1.8.6.<span id="more-498"></span></p>
<h2>The dark past</h2>
<p>Up to now, Zabbix daemons would do something nasty when they encountered an unknown parameter in configuration files &#8211; for example, if one made a typo and instead of <em>DBName</em> option wrote <em>DBNaame</em>, Zabbix server would read configuration file up to that entry, fail&#8230; and still try to start up. What would this mean? That not only the misspelt configuration parameter would be ignored, but also everything after it, possibly without any warning at all.</p>
<p>Does that sound painful enough? Rightfully so, it has been a bane for both novice and experienced users. For example, writing <em>TrendSizeCache</em> instead of the correct version, <em>TrendCacheSize</em>, would not only use default trend cache value (4 MB), but also skip all the parameters that would follow it.</p>
<p>Now, this might get worse. Configuration parameters are case sensitive. Did you write <em>Startpollers</em>? There we go, you&#8217;re not getting the value specified, your server will run with the default amount of pollers, which is 5. And remember that it will also ignore all other parameters after this misspelt one.</p>
<h2>The bright future</h2>
<p>Zabbix 1.8.6 gets tough. It gets rough. It checks your parameter spelling and teaches you a hard lesson. Right, right, not really &#8211; it actually keeps a gentleman calm as if receiving an insult in a pub and refusing to fight. <a href="http://www.zabbix.com/documentation/1.8/manual/about/what_s_new_1.8.6#zabbix_daemon_improvements">Zabbix daemons will refuse to start up</a> if incorrect parameters will be detected in the corresponding configuration file.</p>
<p>While for most people that will be a wonderful thing that will allow to catch spelling mistakes early, it also means that your Zabbix daemons might not start up after upgrading to 1.8.6. It should be easy to solve &#8211; just be careful with the upgrade and test your configuration files before doing a full roll-out in production.</p>
<p>This is especially relevant for people with long-living Zabbix installations that have been upgraded and upgraded, possibly since Zabbix 1.0, thus accumulating all kind of cruft in the configuration files. Whether it&#8217;s the <a href="http://www.zabbix.com/forum/showthread.php?t=1696">amusingly named poller parameter</a> in older versions or anything else, Zabbix might not start up after the upgrade, if you were careless with the configuration files.</p>
<p>It should be noted that specifying a parameter more than once will still result in later values overriding all the previous definitions &#8211; that is not changed from previous versions.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zabbix.com/spelling-mistakes-no-more/498/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitoring community</title>
		<link>http://blog.zabbix.com/monitoring-community/487/</link>
		<comments>http://blog.zabbix.com/monitoring-community/487/#comments</comments>
		<pubDate>Mon, 30 May 2011 13:47:07 +0000</pubDate>
		<dc:creator>Richlv</dc:creator>
				<category><![CDATA[Social]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://blog.zabbix.com/?p=487</guid>
		<description><![CDATA[One of the promises of Zabbix is an ability to monitor pretty much anything. That is possible using various extending capabilities on the Zabbix server, binary agent and elsewhere. Maybe we can monitor some aspects of Zabbix community using Zabbix &#8230; <a href="http://blog.zabbix.com/monitoring-community/487/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of the promises of Zabbix is an ability to monitor pretty much anything. That is possible using various extending capabilities on the Zabbix server, binary agent and elsewhere. Maybe we can monitor some aspects of Zabbix community using Zabbix itself?</p>
<p><span id="more-487"></span>There have been a few unorthodox things being monitored that we have looked at already &#8211; <a href="http://blog.zabbix.com/zabbix-web-monitoring-in-20-steps/278">monitoring Zabbix documentation</a> and <a href="http://blog.zabbix.com/monitoring-weather-with-zabbix/48">monitoring weather forecast</a>. But what could we monitor to determine the size of Zabbix community?</p>
<h1>The archaeological dig</h1>
<p>One of the standard communication methods for open source projects is <a href="http://en.wikipedia.org/wiki/Internet_Relay_Chat">IRC</a>. For Zabbix users, place to communicate is channel #zabbix on IRC network <a href="http://freenode.net/">Freenode</a>. While precise records of the beginning of this channel are not available, some preserved logfiles show 13 users at June 1st, 2006. The same set of logfiles holds information about user count till today, mostly from channel join messages and manually invoked user list command. While more precise user count fluctuations could be deduced coupling user join/part records with this information, that&#8217;s probably not that crucial to have.</p>
<h1>Analysing the records</h1>
<p>Of course, to get some nice result we will try to use Zabbix itself. This is a quite non-common monitoring need, thus Zabbix does not have a built-in item to gather such information &#8211; yet. After a few kludgy scripts, concatenated files and format conversions (while all the logs luckily were from the same IRC client &#8211; <a href="http://www.irssi.org/">Irssi</a> &#8211; naming scheme and formatting had changed several times over this 5-year span) a list of timestamps and corresponding amount of users was obtained. Original logfiles had entry times in local time. To keep things simple, they were converted to Unix timestamps ignoring summer time offset. At the scale we will be looking at this data that shouldn&#8217;t cause any issues (and messing with the clock is silly anyway).</p>
<p>Once we have a list like that, we should somehow get that in Zabbix &#8211; and proficient Zabbix users probably have guessed by now that we will use a very nice commandline utility called <a href="http://www.zabbix.com/documentation/1.8/manual/processes/zabbix_sender ">zabbix_sender</a> to do that. This utility allows to send any values to a specific Zabbix item type &#8211; <em>Zabbix trapper</em> items. Before sending the values, care was taken to set trend retention period (<em>Keep trends</em> option in item properties) to 10 years, because we would like to gather and keep this information for a long period of time. If that was not done, the internal Zabbix process that is responsible for old information cleanup, housekeeper, would come over and delete old values soon after we had imported them.</p>
<h1>Getting the result</h1>
<p>With the values imported it was time to look at a nice long term graph. But&#8230; by default Zabbix graphs are limited to 2 years. Our timespan was almost 5 years (to be more specific, 5 years minus one day). What to do? Luckily, this limit can easily be changed. As documented in the <a href="http://www.zabbix.com/documentation/1.8/manual/config/defines">Zabbix manual</a>, we had to change <strong>ZBX_MAX_PERIOD</strong> in the <em>include/defines.inc.php</em> file. After setting this to some larger value, a long term graph was available.</p>
<p><a href="http://blog.zabbix.com/wp-content/uploads/2011/05/irc_users_5_years.png"><img class="alignnone size-medium wp-image-488" title="irc_users_5_years" src="http://blog.zabbix.com/wp-content/uploads/2011/05/irc_users_5_years-300x130.png" alt="" width="300" height="130" /></a></p>
<p>The great thing is that user count has increased over all this time. Other interesting things include pretty slow uptake during the first few years, with steady increase kicking in around&#8230; yeah, what year is that? Apparently, Zabbix graphs could be slightly improved when looking at longer period of data, otherwise no year information is shown. Digging a bit deeper and looking at data we can see the increase starting around first half of 2009. While x axis labels could be improved, at least the graph was generated pretty much instantly.</p>
<p>We can also see some periods of missing data (indicated by unlikely straight lines), but they don&#8217;t seem to hide significant trending information. Examining the legend we can see that maximum amount of users in the channel (at least as caught by the logfiles) has been 126 &#8211; not too shabby. Minimum has been only 7, though&#8230; and that seems to be caused by one of the significant drops much later in the channel history. That can probably be attributed to a <a href="http://en.wikipedia.org/wiki/Netsplit">netsplit</a>, or maybe to some real life event (like celebrations in December).</p>
<p>Another interesting bit about the generated graph itself is it&#8217;s title &#8211; it shows &#8220;4y 12m&#8221;. While that might seem somewhat weird, we may try to recall the data range we have &#8211; and that&#8217;s 5 years one day short.</p>
<p>But preparing this long term report was motivating to keep such data gathered in the future as well, and maybe even with better granularity. Thus amount of users in the channel has been recorded for the last week hourly. Looking at the graph for approximately one week, we can see expected daily fluctuations (&#8220;working time&#8221; highlighting is based on GMT+3).</p>
<p><a href="http://blog.zabbix.com/wp-content/uploads/2011/05/irc_users_1_week.png"><img class="alignnone size-medium wp-image-489" title="irc_users_1_week" src="http://blog.zabbix.com/wp-content/uploads/2011/05/irc_users_1_week-300x130.png" alt="" width="300" height="130" /></a></p>
<p>User count increases around 09:00 in the morning for that timezone and drops more or less steadily afterwards, indicating slight preference of European working time. There&#8217;s a significant but short drop on Friday &#8211; without further investigation we could again blame netsplit or another technical issue on the IRC server side. Of course, when comparing this drop with previous chart we have to take y axis scaling into account &#8211; note that the first graph started at 0 while this one has been autoscaled by Zabbix to start at 70. The drop would be barely noticeable if we would set the y axis scale to start at 0.</p>
<p>With the channel seeing a healthy increase we welcome you all to discuss (mostly) Zabbix related things in there right now.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zabbix.com/monitoring-community/487/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

