<?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>Brettic.us &#187; Linux</title>
	<atom:link href="http://brettic.us/category/tech/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://brettic.us</link>
	<description>Web devlopment and life in general</description>
	<lastBuildDate>Fri, 23 Mar 2012 16:58:25 +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>PHP 5.2 and 5.3 side-by-side on Apache and Ubuntu 10.10</title>
		<link>http://brettic.us/2010/10/31/php-5-2-and-5-3-on-apache/</link>
		<comments>http://brettic.us/2010/10/31/php-5-2-and-5-3-on-apache/#comments</comments>
		<pubDate>Sun, 31 Oct 2010 07:14:37 +0000</pubDate>
		<dc:creator>Brett</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://brettic.us/?p=510</guid>
		<description><![CDATA[<br/>Painlessly run version 5.2.x and 5.3.x on the same apache port simultaneously. Several persons have indicated that they could not get this working per my instructions below. For a more thorough explanation, see Chris Breidert&#8217; s follow-up blog post. One of these days, when I get more time, I&#8217;ll go through a vanilla installation and add any additional [...]]]></description>
			<content:encoded><![CDATA[<br/><h4>Painlessly run version 5.2.x and 5.3.x on the same apache port simultaneously.</h4>
<blockquote><p>Several persons have indicated that they could not get this working per my instructions below. For a more thorough explanation, see <a href="http://blog.breidert.net/php-5-2-and-php-5-3-for-drupal-applications-under-apache-on-ubuntu-10-04-lts/" target="_blank">Chris Breidert&#8217; s follow-up blog post</a>. One of these days, when I get more time, I&#8217;ll go through a vanilla installation and add any additional instructions, etc.</p></blockquote>
<p>I&#8217;d just upgraded to Ubuntu 10.10 on my PC. However, the default PHP package was version 5.3.x and I needed 5.2.x. Some projects needed the newest version, others would be crippled by it. While looking for a way to have two versions of PHP running simultaneously on Ubuntu 10.10, I struck success.</p>
<p>In this post, I&#8217;ll explain step-by-step how you too can  build a development platform where you can work on PHP 5.2.x and 5.3.x projects simultaneously&#8211;without <em>ever</em> having to restart Apache.<span id="more-510"></span></p>
<h2>Why?</h2>
<p>My primary development computer is a Macbook Pro, but sometimes I like to change things up and work from my PC installed with the latest version of Ubuntu (10.10 at the time of writing.) Ubuntu 10.10 (A.K.A Maverick Meerkat) comes with PHP 5.3.x (currently 5.3.3.)</p>
<p>While using version 5.3.x, I noticed that some of my development projects were broken (like my website that needs curl!) On the other hand, I have another development project that is &#8220;cutting-edge&#8221; and must run PHP 5.3.x. I couldn&#8217;t just downgrade to PHP 5.2.x (which seemed to be the bulk of solutions offered for my predicament.)</p>
<p>Switching versions is easy on my Mac, thanks to MAMP. I just swap versions through the MAMP control panel. However, I really wanted the same flexibility on Ubuntu. Not only did I find a solution, I found one that I prefer to MAMP because I can run either version <strong>simultaneously</strong>. Here&#8217;s how I did it.</p>
<h2>Step 1: Get PHP source code.</h2>
<p>Download the most current version of PHP 5.2.x (5.2.14 at the time of writing.)</p>
<p><a href="http://us3.php.net/downloads.php" target="_blank">http://us.php.net/downloads.php</a></p>
<p>You can download this to anywhere like ~/src or wherever. Extract it with tar xzvf php-file (for .tar.gz variant) or tar xjvf php-file  (for .tar.bz variant) depending on which version you downloaded. Change directories into the folder you just extracted.</p>
<h2>Step 2: Install PHP development libraries.</h2>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://brettic.us/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash"><span class="kw2">sudo</span> <span class="kw2">apt-get</span> <span class="kw2">install</span> libxml2-dev libmysqlclient-dev libcurl4-gnutls-dev libcurl4-openssl-dev libpng12-dev libjpeg62-dev</pre></div></div>
<p>Credit to <a href="http://webpagedeveloper.me/blog/ubuntu-1004-lucid-lamp-server-running-php-52-and-53" target="_blank">Dave Parrish</a> for the dev packages and configure options, plus most of the other information here.</p>
<h2>Step 3: Configure and make.</h2>
<div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdt_2" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_2"></a><a id="wpshat_2" class="wp-synhighlighter-title" href="#codesyntax_2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_2" onClick="javascript:wpsh_code(2)" title="Show code only"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_print(2)" title="Print code"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://brettic.us/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash">.<span class="sy0">/</span>configure <span class="re5">--prefix</span>=<span class="sy0">/</span>opt<span class="sy0">/</span>php5.2 \
<span class="re5">--with-config-file-path</span>=<span class="sy0">/</span>opt<span class="sy0">/</span>php5.2 \
<span class="re5">--with-mysqli</span> \
<span class="re5">--with-mysql</span> \
<span class="re5">--with-curl</span> \
<span class="re5">--with-gd</span> \
<span class="re5">--with-jpeg</span> \
<span class="re5">--with-jpeg-dir</span> \
<span class="re5">--enable-cli</span> \
<span class="re5">--enable-fastcgi</span> \
<span class="re5">--enable-discard-path</span> \
<span class="re5">--enable-force-cgi-redirect</span></pre></div></div>
<div>If everything works, go ahead and make the file.</div>
<div id="wpshdo_3" class="wp-synhighlighter-outer"><div id="wpshdt_3" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_3"></a><a id="wpshat_3" class="wp-synhighlighter-title" href="#codesyntax_3"  onClick="javascript:wpsh_toggleBlock(3)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_3" onClick="javascript:wpsh_code(3)" title="Show code only"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_3" onClick="javascript:wpsh_print(3)" title="Print code"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://brettic.us/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_3" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash"><span class="kw2">make</span> <span class="sy0">&amp;&amp;</span> <span class="kw2">sudo</span> <span class="kw2">make</span> <span class="kw2">install</span></pre></div></div>
<div>You should end up with php files in /opt/php5.2 if everything went without errors.</div>
<h2>Step 4: Setup fast-cgi.</h2>
<p>Just install the Debian package.</p>
<div id="wpshdo_4" class="wp-synhighlighter-outer"><div id="wpshdt_4" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_4"></a><a id="wpshat_4" class="wp-synhighlighter-title" href="#codesyntax_4"  onClick="javascript:wpsh_toggleBlock(4)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_4" onClick="javascript:wpsh_code(4)" title="Show code only"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_4" onClick="javascript:wpsh_print(4)" title="Print code"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://brettic.us/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_4" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash"><span class="kw2">sudo</span> <span class="kw2">apt-get</span> <span class="kw2">install</span> libapache2-mod-fastcgi</pre></div></div>
<p>To enable the module, run:</p>
<div id="wpshdo_5" class="wp-synhighlighter-outer"><div id="wpshdt_5" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_5"></a><a id="wpshat_5" class="wp-synhighlighter-title" href="#codesyntax_5"  onClick="javascript:wpsh_toggleBlock(5)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_5" onClick="javascript:wpsh_code(5)" title="Show code only"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_5" onClick="javascript:wpsh_print(5)" title="Print code"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://brettic.us/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_5" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash"><span class="kw2">sudo</span> a2enmod fastcgi</pre></div></div>
<p>Restart Apache.</p>
<p><strong> </strong></p>
<h2>Step 5: Enable mod_actions.</h2>
<p>mod_actions was already available for me to use. I simply had to enable it:</p>
<div id="wpshdo_6" class="wp-synhighlighter-outer"><div id="wpshdt_6" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_6"></a><a id="wpshat_6" class="wp-synhighlighter-title" href="#codesyntax_6"  onClick="javascript:wpsh_toggleBlock(6)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_6" onClick="javascript:wpsh_code(6)" title="Show code only"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_6" onClick="javascript:wpsh_print(6)" title="Print code"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://brettic.us/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_6" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash"><span class="kw2">sudo</span> a2enmod actions</pre></div></div>
<p>Restart Apache.</p>
<h2>Step 6: Setup php5-cgi wrapper.</h2>
<p>Create a /usr/lib/cgi-bin/php5-cgi file:</p>
<div id="wpshdo_7" class="wp-synhighlighter-outer"><div id="wpshdt_7" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_7"></a><a id="wpshat_7" class="wp-synhighlighter-title" href="#codesyntax_7"  onClick="javascript:wpsh_toggleBlock(7)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_7" onClick="javascript:wpsh_code(7)" title="Show code only"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_7" onClick="javascript:wpsh_print(7)" title="Print code"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://brettic.us/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_7" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash"><span class="co0">#!/bin/sh</span>
<span class="re2">PHP_FCGI_CHILDREN</span>=<span class="nu0">1</span>
<span class="kw3">export</span> PHP_FCGI_CHILDREN
<span class="re2">PHP_FCGI_MAX_REQUESTS</span>=<span class="nu0">5000</span>
<span class="kw3">export</span> PHP_FCGI_MAX_REQUESTS
<span class="kw3">exec</span> <span class="sy0">/</span>opt<span class="sy0">/</span>php5.2<span class="sy0">/</span>bin<span class="sy0">/</span>php-cgi</pre></div></div>
<p>Also ripped off from <a href="http://webpagedeveloper.me/blog/ubuntu-1004-lucid-lamp-server-running-php-52-and-53" target="_blank">Dave Parrish</a>.</p>
<p>Make your wrapper executable:</p>
<div id="wpshdo_8" class="wp-synhighlighter-outer"><div id="wpshdt_8" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_8"></a><a id="wpshat_8" class="wp-synhighlighter-title" href="#codesyntax_8"  onClick="javascript:wpsh_toggleBlock(8)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_8" onClick="javascript:wpsh_code(8)" title="Show code only"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_8" onClick="javascript:wpsh_print(8)" title="Print code"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://brettic.us/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_8" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash"><span class="kw2">sudo</span> <span class="kw2">chmod</span> +x <span class="sy0">/</span>usr<span class="sy0">/</span>lib<span class="sy0">/</span>cgi-bin<span class="sy0">/</span>php5-cgi</pre></div></div>
<h2>Step 7: Make an Include file for VirtualHosts.</h2>
<p>I made a simple include file under /etc/apache2/ called php52.conf:</p>
<div id="wpshdo_9" class="wp-synhighlighter-outer"><div id="wpshdt_9" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_9"></a><a id="wpshat_9" class="wp-synhighlighter-title" href="#codesyntax_9"  onClick="javascript:wpsh_toggleBlock(9)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_9" onClick="javascript:wpsh_code(9)" title="Show code only"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_9" onClick="javascript:wpsh_print(9)" title="Print code"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://brettic.us/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_9" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash"><span class="co0">#include for sites that still need to run at php 5.2.x</span>
&nbsp;
ScriptAlias <span class="sy0">/</span>php5-cgi <span class="sy0">/</span>usr<span class="sy0">/</span>lib<span class="sy0">/</span>cgi-bin<span class="sy0">/</span>php5-cgi
&nbsp;
Action application<span class="sy0">/</span>x-httpd-php5 <span class="sy0">/</span>php5-cgi
AddHandler application<span class="sy0">/</span>x-httpd-php5 .php .php5 .php4 .php3 .phtml</pre></div></div>
<p>Credit to <a href="http://ubuntuforums.org/showthread.php?t=159301&amp;page=2#td_post_2625095" target="_blank">jameso</a> for this pearl.</p>
<h2>Step 8: Include php52.conf in all VirtualHosts where PHP 5.2.x is needed.</h2>
<div id="wpshdo_10" class="wp-synhighlighter-outer"><div id="wpshdt_10" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_10"></a><a id="wpshat_10" class="wp-synhighlighter-title" href="#codesyntax_10"  onClick="javascript:wpsh_toggleBlock(10)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_10" onClick="javascript:wpsh_code(10)" title="Show code only"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_10" onClick="javascript:wpsh_print(10)" title="Print code"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://brettic.us/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://brettic.us/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_10" class="wp-synhighlighter-inner" style="display: block;"><pre class="apache">&lt;<span class="kw3">VirtualHost</span> *.80&gt;
&nbsp;
<span class="co1"># ...</span>
&nbsp;
<span class="co1">#needs to run version 5.2.x of PHP</span>
<span class="kw1">Include</span> php52.conf
&nbsp;
&lt;/<span class="kw3">VirtualHost</span>&gt;</pre></div></div>
<p>That&#8217;s it! Now I can simply insert my Include directive for any websites that I&#8217;m developing that are not ready for PHP 5.3.</p>
<blockquote><p><strong>Important</strong>. I am using VirtualHost configurations. This allows me to leave PHP 5.3.x enabled globally via the Apache module and turn on PHP 5.2.x specifically for each vhost. If you develop in the typical way of accessing a website via http://localhost/someproject, consider using the Apache Directory directive instead. It should work, but I haven&#8217;t tested.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://brettic.us/2010/10/31/php-5-2-and-5-3-on-apache/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Zenoss: IT Monitoring for the overworked</title>
		<link>http://brettic.us/2010/06/24/zenoss-it-monitoring-for-the-overworked/</link>
		<comments>http://brettic.us/2010/06/24/zenoss-it-monitoring-for-the-overworked/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 19:19:15 +0000</pubDate>
		<dc:creator>Brett</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://brettic.us/?p=321</guid>
		<description><![CDATA[<br/>I&#8217;ve been with my current company for 10+ years (at the time of writing.) It&#8217;s been a roller-coaster ride with ownership changing hands several times. But I&#8217;ve managed to hang on and I&#8217;m still riding even after the most recent change in drivers. Unfortunately, many have fallen out over the years and that leaves me [...]]]></description>
			<content:encoded><![CDATA[<br/><p><a href="http://brettic.us/wp-content/uploads/2010/06/zenoss-network-monitoring.png"><img class="alignleft size-full wp-image-323" title="zenoss-network-monitoring" src="http://brettic.us/wp-content/uploads/2010/06/zenoss-network-monitoring.png" alt="zenoss network monitoring" width="73" height="73" /></a>I&#8217;ve been with my current company for 10+ years (at the time of writing.) It&#8217;s been a roller-coaster ride with ownership changing hands several times. But I&#8217;ve managed to hang on and I&#8217;m still riding even after the most recent change in drivers. Unfortunately, many have fallen out over the years and that leaves me to do two jobs: Web programmer and IT Administrator. Finding time to do both jobs well can be a problem to say the least.<span id="more-321"></span></p>
<h3>Nagios is for IT Teams only</h3>
<p>The last network cut-over I did was back in November of 2009 (and lasted through December.) After getting all of our services set up, I did some research and decided to give nagios a spin. What I found is that it&#8217;s very time consuming to install and configure. Furthermore, I ran out of time and had to leave much of the network monitoring incomplete. I just didn&#8217;t have the time to configure each machine with all those wonderful plugins, etc.</p>
<h3>Desperation is the Mother of Necessity</h3>
<p>Last week, a relatively significant Website that a partner company hosts in our network went down (well, it&#8217;s their network also,  but I&#8217;m kinda the head overseer since they too are very small now. This is an odd relationship really.) After dusting off my ruby-on-rails deployment skills to attempt to find out why rails had fails (bad pun!) I found that a postgres database had stopped responding because its server&#8217;s /var partition had filled up. Had I had the time to totally incorporate nagios, I would have gotten a timely email or SMS stating that a partition was nearly full. It&#8217;s been several months since i dabbled with nagios, but it seems like configurations like this took some time to get up and running. So, this time, I went searching for a new IT monitoring solution. As luck would have it, I was recently listening to a podcast on the TWiT networked called <a title="FLOSS Weekly" href="http://twit.tv/floss" target="_blank">FLOSS Weekly</a>. As a guest, they had the community manager for <a title="Zenoss" href="http://community.zenoss.org/docs/DOC-2614" target="_blank">zenoss</a> on that episode. He mentioned that zenoss is easy to configure, so I took a look. I also took a look at others (opennms, zabbix to name a few.) In the end, there were two things I liked about the prospect of zenoss that swayed me in that direction:</p>
<ol>
<li>Python/Zope (in case I ever needed to look at the source. I know python to an extent.)</li>
<li>No client software to install just native snmp.</li>
</ol>
<p>The latter one was the clincher. Remember that I said time was not a luxury I had? So far zenoss has performed this role amazingly well.</p>
<h3>Zenoss to the Rescue</h3>
<p>Zenoss has a pretty recent<a title="zenoss vmware appliance" href="http://www.zenoss.com/download/links#softwareappliance" target="_blank"> </a><a title="zenoss vmware appliance" href="http://www.zenoss.com/download/links#softwareappliance" target="_blank">vmware player appliance</a> that includes a linux OS with zenoss installed and configured. I just happened to have a vmware ESXi server. I did a little research, and all you need to do to convert from vmware player to vmware ESX(i) is to use a single command (this requires turning on ssh on your ESXi box in case you have the free version like us. Otherwise there&#8217;s vCli or something else with a name I can&#8217;t recall ):</p>
<p><code>vmkfstools -i zenoss_player_file.vmdk zenoss_new.vmdk</code></p>
<p>Make sure you change the filenames accordingly. After that, I created a virtual server (Redhat 32bit.) I gave it  1 GB of RAM and a couple of processors. Be sure to select the option to use an existing disk from the datastore (I got mine in there in the first place using  wget via SSH console in case you wondered.)</p>
<p>Finally, I booted the new server and changed the defaults. I now had a fully-functioning zenoss core server with minimal effort on my part.</p>
<h3>SNMP Client Configurations</h3>
<p>This part was easy to implement but I struggled to find the best way to go about it. Ultimately, I ended up using the config file from a screencast tutorial. <a title="Zenos Server monitoring" href="http://castix.wordpress.com/2009/03/02/installing-zenoss-and-monitoring-server-via-snmp/">This screencast from Castix was a big help</a>. I made a slight change to &#8220;lock down&#8221; SNMP a bit better so just my zenoss server can access SNMP data:</p>
<p><code>## sec.name source community<br />
com2sec notConfigUser 10.77.1.29 public<br />
com2sec notConfigUser localhost public</code></p>
<p>&#8230;where 10.77.1.29 is the IP for my zenoss server.</p>
<p>On my Debian boxes I had to make a slight change to the /etc/defaults/snmp file to allow SNMP services to be exposed to remote hosts (see the screencast link above.) For my CentOS boxen, I noticed that I all had to do was replace the snmpd.conf file.</p>
<p>I did a simple Device Add and everything useful to know about the box is automatically gathered and displayed. From there you just setup your alert rules and you now have IT monitoring. Easy by comparison!</p>
<p>I&#8217;m still learning a thing or two in my spare time but so far, zenoss is just great! For now, I&#8217;m a new zenoss convert.</p>
]]></content:encoded>
			<wfw:commentRss>http://brettic.us/2010/06/24/zenoss-it-monitoring-for-the-overworked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Downloading WGA validated Microsoft Programs with Ubuntu, IE4Linux, and Wine.</title>
		<link>http://brettic.us/2007/06/29/downloading-wga-validated-microsoft-programs-with-ubuntu-ie4linux-and-wine/</link>
		<comments>http://brettic.us/2007/06/29/downloading-wga-validated-microsoft-programs-with-ubuntu-ie4linux-and-wine/#comments</comments>
		<pubDate>Fri, 29 Jun 2007 17:43:43 +0000</pubDate>
		<dc:creator>Brett</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<br/>Here's a screencast video I made to demonstrate downloading the ie7 installer (the installer still does a WGA check but once you have the file, you can try and hack it.) I used firefox so I could pretend to be a browser running ie in windows to get past the first check. This is hard to see (I should have set my resolution higher.) By the way, I did not discover this. I heard it on a TWiT podcast and wanted to confirm this. So much for WGA checking.

Note: I should have increased my screen resolution. If you want to read what I did, following the embedded youtube link.

]]></description>
			<content:encoded><![CDATA[<br/><p>Here&#8217;s a screencast video I made to demonstrate downloading the ie7 installer (the installer still does a WGA check but once you have the file, you can try and hack it.) I used firefox so I could pretend to be a browser running ie in windows to get past the first check. This is hard to see (I should have set my resolution higher.) By the way, I did not discover this. I heard it on a TWiT podcast and wanted to confirm this. So much for WGA checking.</p>
<p>Note: I should have increased my screen resolution. If you want to read what I did, follow the embedded youtube link.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="wmode" value="transparent" /><param name="src" value="http://www.youtube.com/v/vcVDs0Lhsik" /><embed type="application/x-shockwave-flash" width="425" height="350" src="http://www.youtube.com/v/vcVDs0Lhsik" wmode="transparent"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://brettic.us/2007/06/29/downloading-wga-validated-microsoft-programs-with-ubuntu-ie4linux-and-wine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 31/43 queries in 0.026 seconds using memcached

Served from: brettic.us @ 2012-05-20 01:27:38 -->
