<?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>MuckNet</title>
	<atom:link href="http://www.muck.net/feed" rel="self" type="application/rss+xml" />
	<link>http://www.muck.net</link>
	<description>Sysadmin, Production Datacenter, Food :)</description>
	<lastBuildDate>Tue, 13 Mar 2012 23:49:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>DirecTV DECA for Home LAN expansion</title>
		<link>http://www.muck.net/91/directv-deca-for-home-lan-expansion</link>
		<comments>http://www.muck.net/91/directv-deca-for-home-lan-expansion#comments</comments>
		<pubDate>Tue, 06 Mar 2012 22:42:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.muck.net/?p=91</guid>
		<description><![CDATA[I wanted Ethernet in my living room. Under the best of circumstances, I was lucky to be able to stream 720p HD movies over wireless, but streaming 1080p was out of the question. Running ethernet to the living room was my first choice, but not convenient. DECA to the rescue! DirecTV Ethernet over Coax Adapter. [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted Ethernet in my living room. Under the best of circumstances, I was lucky to be able to stream 720p HD movies over wireless, but streaming 1080p was out of the question. Running ethernet to the living room was my first choice, but not convenient. DECA to the rescue! <strong>D</strong>irecTV <strong>E</strong>thernet over <strong>C</strong>oax <strong>A</strong>dapter. Its exactly what it sounds like. It allows you to run Ethernet over the existing coax in your house. It&#8217;s very similar to MoCA ( <strong>M</strong>ultimedia <strong>O</strong>ver <strong>C</strong>oax <strong>A</strong>dapter). I had been looking at the Netgear MCAB1001, but at $90/pair , I started thinking about other options. I looked over at the network rack in my office, and saw a DirecTV provided box with coax on one end, and ethernet coming out the other! A few minutes of google-fu later, and it looks like my DirecTV DECA box is a lot like a MOCA box, but just uses a different frequency. And&#8230; They&#8217;re only $20 a piece on ebay! However, I couldn&#8217;t find a lot of statistics on the DECA. I wasn&#8217;t sure what kind of speeds I could expect, and I wasn&#8217;t sure if streaming movies would prevent me from using my whole home DVR.</p>
<p>I can now answer some of those questions!</p>
<p>Lets start with what my setup looks like:</p>
<p>* My whole house is wired with RG6</p>
<p>* I have a pretty recent SWM Dish. (Installed December 2010)</p>
<p>* I have 4 DirecTV receivers in the house. 2x HR24 HD DVR&#8217;s, and 2xH24 HD receivers (The HD Receivers can watch DVR content from either DVR&#8217;s via the Whole Home DVR solution).</p>
<p>* I started with a DECA broadband adapter (Part #DECABBIMRO-01), and then I bought another on ebay. They look like <a href="http://www.satpro.tv/decabb1mr0.aspx">this</a>, but less expensive when bought on ebay. I paid $19 for the first one I bought on ebay, and $12 for the second one.</p>
<p>* I added the new DECA Broadband adapter using a &#8220;green label&#8221; 2 way splitter. All of the other splitters in the house are also &#8220;green label&#8221;. If I recall correctly, these are about $5 each.</p>
<p>&nbsp;</p>
<p>Setup is pretty self explanatory. Disconnect the Coax from the back of your Receiver/DVR, and put the splitter inline. The splitter has two outputs. The one labelled &#8220;DC Power Pass&#8221; should go to your DECA Broadband Adapter, and the other should go back to your receiver. Plug the ethernet into a switch on both sides (or into whatever you want, doesn&#8217;t have to be a switch), Power on the DECA device, and you are ready to pass packets!</p>
<p>I then ran iperf across the connection.The short version is that I got 100Mbps performance, even when watching HD content streamed from one DVR to another. Latency is very very low also.</p>
<p>I wrote the above about ~4 months ago, and never posted it because I wanted to show my iperf results. Since then I moved my mac mini and no longer have anything on the other end to run iperf to, and keep forgetting to plug my laptop in to test it so I can copy/paste the results. So I&#8217;m posting it anyway <img src='http://www.muck.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  But, trust me, it works great. Latency is slightly higher than when running over standard cheapo switches &#8211; but only about 2ms higher. I&#8217;d call that a huge success.</p>
<p>Theres still a lot of unknowns here &#8212; I only know about my setup. I&#8217;m not sure how this would work with RG59 coax, nor do I know how it works with older dishes, or older equipment. But feel free to post in the comments with anything you learn.</p>
<p>Theres also security implications here &#8212; though IMHO, much less than with MOCA. In both cases you&#8217;re creating a bridge between their network and yours &#8212; in the case of MOCA you&#8217;re potentially opening up your LAN to the entire neighborhood unless you filter it. With DECA, you&#8217;re creating a bridge between your network, and the DirecTV satellite network, which won&#8217;t get beyond your satellite dish (since its a receiver only). I already had &#8220;their&#8221; Broadband adapter in my DMZ before I even realized everything it did. That does mean that I&#8217;m at a slight disadvantage in the way I do this, because I only have DMZ access wherever I use DECA&#8217;s to extend my LAN &#8212; but that&#8217;s ok with me.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.muck.net/91/directv-deca-for-home-lan-expansion/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iotop on RHEL 5.7 (CENTOS too)</title>
		<link>http://www.muck.net/77/iotop-on-rhel-5-7-centos-too</link>
		<comments>http://www.muck.net/77/iotop-on-rhel-5-7-centos-too#comments</comments>
		<pubDate>Tue, 06 Dec 2011 03:00:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.muck.net/?p=77</guid>
		<description><![CDATA[I spent some time googling around this afternoon, and kept reading that iotop requires kernel 2.6.20 and python 2.6, and therefore was a bit of a challenge to get running on RHEL/CENTOS 5.X. However, the requirements are actually pretty basic, and easy to get running on a somewhat recent update of RHEL 5. Redhat has [...]]]></description>
			<content:encoded><![CDATA[<p>I spent some time googling around this afternoon, and kept reading that iotop requires kernel 2.6.20 and python 2.6, and therefore was a bit of a challenge to get running on RHEL/CENTOS 5.X. However, the requirements are actually pretty basic, and easy to get running on a somewhat recent update of RHEL 5.</p>
<p>Redhat has backported the per process IO accounting feature to the 2.6.18-144 kernel. So if /proc/self/io exists, and you get results from /proc/&lt;PID #&gt;/io then iotop will work.</p>
<blockquote><p><code>[root@gateway /]# cat /proc/self/io<br />
rchar: 1900<br />
wchar: 0<br />
syscr: 7<br />
syscw: 0<br />
read_bytes: 0<br />
write_bytes: 0<br />
cancelled_write_bytes: 0</code></p>
<p>[root@gateway /]# cat /proc/3227/io<br />
rchar: 25970197<br />
wchar: 26186855<br />
syscr: 4859727<br />
syscw: 2516047<br />
read_bytes: 3854336<br />
write_bytes: 47595520<br />
cancelled_write_bytes: 274432<br />
[root@gateway self]#</p></blockquote>
<p>&nbsp;</p>
<p>Basic Steps for setting up iotop on RHEL 5.7 (And probably older versions as well, though I haven&#8217;t tested).</p>
<p>Update Kernel to 2.6.8-144 or higher.</p>
<blockquote><p>yum update kernel</p></blockquote>
<p>Install epel repository &#8211; There are plenty of instructions out there, but it will look something like this for x64 RHEL:</p>
<blockquote><p>rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm</p></blockquote>
<p>Then you just need Python 2.4, python-ctypes, and iotop packages:</p>
<blockquote><p>yum install python python-ctypes iotop</p></blockquote>
<p>Thats it! Pretty easy huh?</p>
<p>&nbsp;</p>
<p>Update 12/27/2011:</p>
<p>I had a case where iotop wouldn&#8217;t run on a linux 3.1 kernel, I believe because of mprotect() (Not sure though). In either case, I discovered that <a href="http://htop.sourceforge.net/">htop</a> gets you most of what iotop will get you , plus a lot more. Its a pretty neat tool. I suggest checking it out.  You still need a kernel that has IO statistics in /proc (as mentioned above).</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.muck.net/77/iotop-on-rhel-5-7-centos-too/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL Permissions for backup using mysqldump and/or ec2-consistent-snapshot</title>
		<link>http://www.muck.net/59/mysql-minimum-permissions-for-backup-using-mysqldump</link>
		<comments>http://www.muck.net/59/mysql-minimum-permissions-for-backup-using-mysqldump#comments</comments>
		<pubDate>Wed, 29 Dec 2010 02:38:15 +0000</pubDate>
		<dc:creator>Doug Peterson</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.muck.net/?p=59</guid>
		<description><![CDATA[Using root for your MySQL backups is a bad idea boys and girls. You should dedicate a user to doing your backups. Below are a few options for setting up minimum permissions for your dedicated mysql backup user: Using mysqldump with &#8211;opt (or anything else that locks tables) GRANT SELECT, LOCK TABLES ON *.* TO [...]]]></description>
			<content:encoded><![CDATA[<div>Using root for your MySQL backups is a bad idea boys and girls. You should dedicate a user to doing your backups. Below are a few options for setting up minimum permissions for your dedicated mysql backup user:</div>
<h3>Using mysqldump with &#8211;opt (or anything else that locks tables)</h3>
<blockquote>
<div>
<pre>GRANT SELECT, LOCK TABLES</pre>
</div>
<div>
<pre>ON *.*</pre>
</div>
<div>
<pre>TO  'MysqlBackupUser'@'localhost'</pre>
</div>
<div>
<pre>IDENTIFIED BY 'MySQLBackupUserPassword';</pre>
</div>
</blockquote>
<div>
<h3>Using mysqldump with &#8211;single-transaction</h3>
<blockquote>
<div>
<pre>GRANT SELECT</pre>
</div>
<div>
<pre>ON *.*</pre>
</div>
<div>
<pre>TO  'MysqlBackupUser'@'localhost'</pre>
</div>
<div>
<pre>IDENTIFIED BY 'MySQLBackupUserPassword'
</pre>
</div>
</blockquote>
<h3>Using mysqldump with &#8211;single-transaction (&#8211;flush-logs) &#8211;master-data=1</h3>
<h4>&#8211;flush-logs only requires RELOAD, &#8211;master-data requires RELOAD and REPLICATION CLIENT</h4>
<blockquote>
<div>
<pre>GRANT SELECT, RELOAD, REPLICATION CLIENT</pre>
</div>
<div>
<pre>ON *.*</pre>
</div>
<div>
<pre>TO  'MysqlBackupUser'@'localhost'</pre>
</div>
<div>
<pre>IDENTIFIED BY 'MySQLBackupUserPassword'
</pre>
</div>
</blockquote>
<h3>Using <a href="http://alestic.com/2009/09/ec2-consistent-snapshot" target="_blank">ec2-consistent-snapshot</a> &#8211; which freezes the file XFS filesystem, while issuing an Amazon EC2 API call to snapshot the EBS Volume. The pertinent commands from the script are:</h3>
<pre>FLUSH TABLES WITH READ LOCK;
SHOW MASTER STATUS;
SYSTEM xfs_freeze -f /vol
UNLOCK TABLES;
EXIT</pre>
<h4>Everything except the SHOW MASTER STATUS can be accomplished with RELOAD:</h4>
<blockquote>
<div>
<pre>GRANT RELOAD, REPLICATION CLIENT</pre>
</div>
<div>
<pre>ON *.*</pre>
</div>
<div>
<pre>TO  'MysqlBackupUser'@'localhost'</pre>
</div>
<div>
<pre>IDENTIFIED BY 'MySQLBackupUserPassword'
</pre>
</div>
</blockquote>
<h3>If you want to go completely hog wild, and do things like purge binary logs, or you&#8217;re concerned that you&#8217;ll run out of max_connections you can use SUPER. But be careful, because it also does things like allow you to write to a read_only set server.</h3>
<blockquote>
<div>
<pre>GRANT SELECT, LOCK TABLES, RELOAD, REPLICATION CLIENT, SUPER</pre>
</div>
<div>
<pre>ON *.*</pre>
</div>
<div>
<pre>TO  'MysqlBackupUser'@'localhost'</pre>
</div>
<div>
<pre>IDENTIFIED BY 'MySQLBackupUserPassword'
</pre>
</div>
</blockquote>
<p>And in All cases after you make GRANT changes you&#8217;ll need to:</p>
<blockquote>
<pre>FLUSH PRIVILEGES;
</pre>
</blockquote>
<p>I suggest taking a look at <a href="http://sourceforge.net/projects/automysqlbackup/" target="_blank">AutoMySQLBackup</a> for simple daily, weekly, and monthly mysql backup rotations. It is not the most complete system, but its easy, and works well. It can even email you logs every night if you want. I have mine setup to go to syslog-ng/SEC, where I watch for errors, or the lack of a success.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.muck.net/59/mysql-minimum-permissions-for-backup-using-mysqldump/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configure Daylight savings time (and NTP) on Cisco Routers</title>
		<link>http://www.muck.net/37/configure-the-new-daylight-savings-time-on-cisco-routers</link>
		<comments>http://www.muck.net/37/configure-the-new-daylight-savings-time-on-cisco-routers#comments</comments>
		<pubDate>Sat, 03 Oct 2009 19:57:32 +0000</pubDate>
		<dc:creator>Doug Peterson</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.muck.net/?p=37</guid>
		<description><![CDATA[Starting in 2007, daylight time begins in the United States on the second Sunday in March and ends on the first Sunday in November. On the second Sunday in March, clocks are set ahead one hour at 2:00 a.m. local standard time, which becomes 3:00 a.m. local daylight time. On the first Sunday in November, [...]]]></description>
			<content:encoded><![CDATA[<p>Starting in 2007, daylight time begins in the United States on the second Sunday in March and ends on the first Sunday in November. On the second Sunday in March, clocks are set ahead one hour at 2:00 a.m. local standard time, which becomes 3:00 a.m. local daylight time. On the first Sunday in November, clocks are set back one hour at 2:00 a.m. local daylight time, which becomes 1:00 a.m. local standard time. These dates were established by Congress in the <a href="http://frwebgate.access.gpo.gov/cgi-bin/getdoc.cgi?dbname=109_cong_public_laws&amp;docid=f:publ058.109" target="blank">Energy Policy Act of 2005, Pub. L. no. 109-58, 119 Stat 594 (2005)</a>.</p>
<p>Some older cisco IOS routers don&#8217;t have the new time zone information. Below is an example of my time related configuration, including NTP and logging options. Configure this and you will no longer be lost when looking at logs! <img src='http://www.muck.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>My timezone is obviously Pacific, but you can insert your own. CDT, EDT, CST, EST, etc <img src='http://www.muck.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>service timestamps debug datetime localtime<br />
service timestamps log datetime localtime<br />
clock timezone PST -8<br />
clock summer-time PDT recurring 2 Sun Mar 2:00 2 Sun Nov 2:00<br />
ntp logging<br />
ntp update-calendar<br />
ntp server 4.us.pool.ntp.org<br />
ntp server 2.us.pool.ntp.org<br />
ntp server 1.us.pool.ntp.org<br />
ntp server 3.us.pool.ntp.org<br />
ntp server 0.us.pool.ntp.org</p>
]]></content:encoded>
			<wfw:commentRss>http://www.muck.net/37/configure-the-new-daylight-savings-time-on-cisco-routers/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Howto: Reset a foundry ServerIron XL to factory defaults</title>
		<link>http://www.muck.net/31/reset-a-foundry-serveriron-xl-to-factory-defaults</link>
		<comments>http://www.muck.net/31/reset-a-foundry-serveriron-xl-to-factory-defaults#comments</comments>
		<pubDate>Wed, 05 Dec 2007 05:29:49 +0000</pubDate>
		<dc:creator>Doug Peterson</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[defaults]]></category>
		<category><![CDATA[factory]]></category>
		<category><![CDATA[foundry]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[reset]]></category>
		<category><![CDATA[serveriron]]></category>

		<guid isPermaLink="false">http://www.muck.net/?p=31</guid>
		<description><![CDATA[I needed to reset a Foundry Server Iron XL back to factory defaults, and surprisingly couldn&#8217;t find the instructions via my buddy google. Foundry is really stingy with with support documents, and knowledge portal acccess, and unless you have a valid support contract, you can&#8217;t find ANYTHING. Luckily I do, so I figured I&#8217;d share [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to reset a Foundry Server Iron XL back to factory defaults, and surprisingly couldn&#8217;t find the instructions via my buddy google. Foundry is really stingy with with support documents, and knowledge portal acccess, and unless you have a valid support contract, you can&#8217;t find ANYTHING. Luckily I do, so I figured I&#8217;d share this knowledge for the sake of future googlers.</p>
<p>First, remove the password:</p>
<p>1) Unplug the Switch</p>
<p>2) Plug the switch back in, and be immediately ready to:</p>
<p>3) Hit b, to enter into the boot monitor</p>
<p>4) Type:</p>
<blockquote><p><code>no password</code></p>
<p>boot system flash primary</p></blockquote>
<p>5) Foundry will boot up, and you can &#8216;enable&#8217; without being prompted for a password</p>
<p>To reset your ServerIronXL to factory defaults:</p>
<p>6) After enabling, type:</p>
<blockquote>
<pre>erase start</pre>
</blockquote>
<p>NOTE: This is permanent! There is no going back! Make sure this is what you want to do! You are resetting to factory defaults (nothing!)</p>
<p>7) Reboot, and enjoy your clean slate</p>
<p>As always, if you find this helpful, please let me know!<code></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.muck.net/31/reset-a-foundry-serveriron-xl-to-factory-defaults/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Zabbix: SSL Web Scenarios patch</title>
		<link>http://www.muck.net/29/zabbix-ssl-web-scenarios-patch</link>
		<comments>http://www.muck.net/29/zabbix-ssl-web-scenarios-patch#comments</comments>
		<pubDate>Wed, 14 Nov 2007 03:00:21 +0000</pubDate>
		<dc:creator>Doug Peterson</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Zabbix]]></category>
		<category><![CDATA[CN]]></category>
		<category><![CDATA[libcurl]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[web scenario]]></category>

		<guid isPermaLink="false">http://www.muck.net/?p=29</guid>
		<description><![CDATA[Zabbix uses libcurl (libraries, not binaries) to do its Web Scenarios. Web scenarios are very powerful, and allow you to emulate a user experience. Using a Zabbix web scenario, you can emulate logging into your site, accepting the cookie, clicking on something unique (Report showing 10 Last purchases for example), then verify that you get [...]]]></description>
			<content:encoded><![CDATA[<p>Zabbix uses libcurl (libraries, not binaries) to do its Web Scenarios. Web scenarios are very powerful, and allow you to emulate a user experience. Using a Zabbix web scenario, you can emulate logging into your site, accepting the cookie, clicking on something unique (Report showing 10 Last purchases for example), then verify that you get either a particular HTTP code, or that certain text shows up in the response. Way cool stuff. Its got a few kinks to be worked out, however. One very frustrating one is that these web scenarios are not template aware yet&#8230; But the zabbix team is working on it, and its going to be a part of a future release. One minor, but significant thing for several of my environments is that the web scenario will error out if the SSL certificate CN (www.yoursite.com) does not match the URL you accessed the web server with.</p>
<p>But Doug, thats bad practice for the CN to not match the url!</p>
<p>I know! However, in most environments its not uncommon for the internal DNS name to NOT match the external DNS name. For example, the CN name for your SSL cert will be www.yoursite.com, but internally you have 10 app servers responding as www. You refer to them as app1.sjc.yoursite.com, app2.phx.yoursite.com.</p>
<p>By default curl (and therefore zabbix) will error out. With the following:</p>
<blockquote><p><span class="disabled">Failed on &#8220;HTTPS TEST app1.sjc.yoursite.com&#8221; [1 of 1]  Error: SSL peer certificate was not ok</span></p></blockquote>
<p>I&#8217;ve written a patch for the zabbix_server binary, which will instruct libcurl to not error out, and life is peachy! You need to unpack the zabbix source, apply the patch, recompile, and install the new binary. The patch, and steps are below:</p>
<p>I&#8217;ve attached the patch to this post, I&#8217;d suggest <a href="http://www.muck.net/wp-content/uploads/2007/11/libcurl_disable_ssl_verifyhost.patch" title="libcurl disable ssl verifyhost">downloading it</a>, instead of copying and pasting, but if you&#8217;d like to here it is:</p>
<blockquote>
<pre>--- src/zabbix_server/httppoller/httptest.c     2007-08-20 12:22:22.000000000 -0700
 +++ src/zabbix_server/httppoller/httptest.c.dp  2007-11-13 17:53:54.000000000 -0800
 @@ -318,6 +318,15 @@ static void        process_httptest(DB_HTTPTEST
 return;
 }</pre>
<pre>+       /* Process certs whose hostnames do not match the queried hostname. */
 +       if(CURLE_OK != (err = curl_easy_setopt(easyhandle,CURLOPT_SSL_VERIFYHOST , 0)))
 +       {
 +               zabbix_log(LOG_LEVEL_ERR, "Cannot set CURLOPT_SSL_VERIFYHOST [%s]",
 +                       curl_easy_strerror(err));
 +               (void)curl_easy_cleanup(easyhandle);
 +               return;
 +       }
 +
 lastfailedstep=0;
 httptest-&gt;time = 0;
 result = DBselect("select httpstepid,httptestid,no,name,url,timeout,posts,required,status_codes from httpstep where httptest
 id=" ZBX_FS_UI64 " order by no",</pre>
</blockquote>
<p>Link to Patch: <a href="http://www.muck.net/wp-content/uploads/2007/11/libcurl_disable_ssl_verifyhost.patch" title="libcurl disable ssl verifyhost">libcurl disable ssl verifyhost</a></p>
<h4>Instructions for installing patch:</h4>
<p>Shut down zabbix_server process</p>
<blockquote><p>/etc/init.d/zabbix_server stop</p></blockquote>
<p>If you already have your zabbix source unpacked, you can skip the first tar step <img src='http://www.muck.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I&#8217;ve checked the patch with Zabbix 1.4.1 and 1.4.2</p>
<blockquote><p>tar -zxvf zabbix-1.4.2.tar.gz</p>
<p>cd zabbix-1.4.2</p>
<p>wget http://www.muck.net/wp-content/uploads/2007/11/libcurl_disable_ssl_verifyhost.patch</p>
<p>patch src/zabbix_server/httppoller/httptest.c libcurl_ssl_verifyhost.patch</p></blockquote>
<p>Then build zabbix_server as normal, for example:</p>
<blockquote><p> ./configure &#8211;enable-server &#8211;prefix=/usr/local/zabbix &#8211;with-mysql &#8211;with-net-snmp &#8211;with-libcurl</p>
<p>make install</p></blockquote>
<p>Restart zabbix_server</p>
<blockquote><p>/etc/init.d/zabbix_server start</p></blockquote>
<p>Your Internal SSL Web Scenarios should now work!  That was easy wasn&#8217;t it?</p>
<p>As always, I appreciate any feedback, and would love to hear if this helped you, or if you have any questions! <img src='http://www.muck.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.muck.net/29/zabbix-ssl-web-scenarios-patch/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Zabbix 1.4.2 demo online!</title>
		<link>http://www.muck.net/28/new-zabbix-142-demo-online</link>
		<comments>http://www.muck.net/28/new-zabbix-142-demo-online#comments</comments>
		<pubDate>Wed, 07 Nov 2007 06:11:07 +0000</pubDate>
		<dc:creator>Doug Peterson</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Zabbix]]></category>
		<category><![CDATA[datacenter]]></category>
		<category><![CDATA[demo]]></category>
		<category><![CDATA[monitoring]]></category>

		<guid isPermaLink="false">http://www.muck.net/?p=28</guid>
		<description><![CDATA[I&#8217;ve been saying I was going to do it for the last 6 months. I finally did it this weekend. I built a demo version of zabbix that I can give full admin rights to. If you&#8217;re not familiar with zabbix you can visit my zabbix page , or the zabbix website . The problem [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been saying I was going to do it for the last 6 months. I finally did it this weekend. I built a demo version of zabbix that I can give full admin rights to. If you&#8217;re not familiar with zabbix you can visit <a href="http://www.muck.net/?page_id=3">my zabbix page</a> , or the<a href="http://www.muck.net/wp-admin/www.zabbix.com" target="_blank"> zabbix website</a> .</p>
<p>The problem with the old zabbix demo was that it was the only copy. If someone messed it up, I had to manually go in and restore the DB. It didn&#8217;t have a self recovery method. In the end, it meant that I was limited to handing out read only access in most cases. That in turn meant it wasn&#8217;t used very often by folks, and because it wasn&#8217;t used very often, I neglected it.</p>
<p>However! I have now put zabbix into its own VM universe. I took a snapshot of a &#8220;clean&#8221; zabbix installation, which is known to be good. Every 24 hours, I wipe out the VM instance, put a new one in place, restore the Zabbix DB, and timeshift all the data so it looks like the data is contiguous, even though in all likelyhood its several weeks old.  The process results in about 10 minutes of downtime, and another 20 minutes of data processing in the background. Any data displayed from Midnight PST through Midnight PST the following night, is live, accurate, real data, not timeshifted data.</p>
<p>I&#8217;m pretty happy with it so far. I still want to add a lot more items and hosts to the demo, but I think its a great start. As far as I know this is the only Zabbix Demo, so I&#8217;d love to hear from you what you&#8217;d like to see in the demo. More graphs? Screens? Web Monitoring? oracle monitoring? mysql monitoring? Zabbix Tutorials? Walkthroughs? Clever uses for the Demo? Any and all comments appreciated.</p>
<p>Feel free to add new hosts, or even install a zabbix agent on your side and monitor your own server (until midnight that is, when the DB will be reset). I get a lot of hits on my site every day from people searching google for zabbix demo&#8217;s. Hopefully this will raise awareness of zabbix and get more people using this excellent tool.</p>
<p>Of course, I can also help you with your zabbix deployment. I can do a custom install for your environment, or I can ship you a pre configured zabbix box that you just plug in and go. If you&#8217;d like talk about my zabbix services, please indicate so on the Zabbix Demo form below. Hopefully the form you have to fill out to get access to the zabbix demo isn&#8217;t too painful. If you really dislike me for making you fill out a form to get the login credentials, feel free to call me names in every field except the email field. That one happens to be accurate in order to get the login credentials! <img src='http://www.muck.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Stay tuned over the next several weeks for updates and new features.</p>

		<p id="usermessage2a" class="info success" ></p>
		<form enctype="multipart/form-data" action="/feed#usermessage2a" method="post" class="cform" id="cforms2form">
		<fieldset class="cf-fs1">
		<legend>Zabbix Demo</legend>
		<ol class="cf-ol">
			<li><label  for="cf2_field_2"><span>Your Name</span></label><input  type="text" name="cf2_field_2" id="cf2_field_2" class="default fldrequired" value="Your Name" onfocus="clearField(this)" onblur="setField(this)"/><span class="reqtxt">&nbsp;(required)</span></li>
			<li><label  for="cf2_field_3"><span>Email</span></label><input  type="text" name="cf2_field_3" id="cf2_field_3" class="default fldemail" value=""/><span class="emailreqtxt">&nbsp;(valid email required)</span></li>
			<li><label  for="cf2_field_4"><span>Website</span></label><input  type="text" name="cf2_field_4" id="cf2_field_4" class="default fldrequired" value="http://"/><span class="reqtxt">&nbsp;(required)</span></li>
			<li><label  for="cf2_field_5"><span>Location (City,State,Country)</span></label><input  type="text" name="cf2_field_5" id="cf2_field_5" class="default fldrequired" value=""/><span class="reqtxt">&nbsp;(required)</span></li>
			<li><label  for="cf2_field_6"><span>Phone Number</span></label><input  type="text" name="cf2_field_6" id="cf2_field_6" class="default fldrequired" value=""/><span class="reqtxt">&nbsp;(required)</span></li>
			<li><label  for="cf2_field_7"><span>Zabbix Demo usage </span></label><select  name="cf2_field_7" id="cf2_field_7" class="cformselect default fldrequired"><option value="Please select one..." selected="selected">Please select one...</option><option value="Comparing to other products " >Comparing to other products </option><option value="Evaluating zabbix upgrade " >Evaluating zabbix upgrade </option><option value="Looking for ideas " >Looking for ideas </option><option value="Looking to replace current monitoring system " >Looking to replace current monitoring system </option><option value="Looking for first monitoring system " >Looking for first monitoring system </option><option value="Other " >Other </option><option value="Leave me alone and just let me get to the demo!" >Leave me alone and just let me get to the demo!</option></select><span class="reqtxt">&nbsp;(required)</span></li>
			<li class="cf-box-title">Please select any software packages you're currently using </li>
			<li class="cf-box-group">
				<input  type="checkbox" id="cf2_field_81" name="cf2_field_8[]" value="zabbix "  class="cf-box-b"/><label  for="cf2_field_81" class="cf-group-after"><span>zabbix </span></label><input  type="checkbox" id="cf2_field_82" name="cf2_field_8[]" value="mrtg "  class="cf-box-b"/><label  for="cf2_field_82" class="cf-group-after"><span>mrtg </span></label><input  type="checkbox" id="cf2_field_83" name="cf2_field_8[]" value="OpenNMS "  class="cf-box-b"/><label  for="cf2_field_83" class="cf-group-after"><span>OpenNMS </span></label><input  type="checkbox" id="cf2_field_84" name="cf2_field_8[]" value="Cacti "  class="cf-box-b"/><label  for="cf2_field_84" class="cf-group-after"><span>Cacti </span></label><input  type="checkbox" id="cf2_field_85" name="cf2_field_8[]" value="Nagios "  class="cf-box-b"/><label  for="cf2_field_85" class="cf-group-after"><span>Nagios </span></label><input  type="checkbox" id="cf2_field_86" name="cf2_field_8[]" value="BigBrother "  class="cf-box-b"/><label  for="cf2_field_86" class="cf-group-after"><span>BigBrother </span></label><input  type="checkbox" id="cf2_field_87" name="cf2_field_8[]" value="BigSister "  class="cf-box-b"/><label  for="cf2_field_87" class="cf-group-after"><span>BigSister </span></label><input  type="checkbox" id="cf2_field_88" name="cf2_field_8[]" value="Syslog-ng "  class="cf-box-b"/><label  for="cf2_field_88" class="cf-group-after"><span>Syslog-ng </span></label><input  type="checkbox" id="cf2_field_89" name="cf2_field_8[]" value="Other "  class="cf-box-b"/><label  for="cf2_field_89" class="cf-group-after"><span>Other </span></label><input  type="checkbox" id="cf2_field_810" name="cf2_field_8[]" value="Custom "  class="cf-box-b"/><label  for="cf2_field_810" class="cf-group-after"><span>Custom </span></label>
			</li>
			<li><label  for="cf2_field_9"><span>Would you like to be contacted by MuckNet?</span></label><select  name="cf2_field_9" id="cf2_field_9" class="cformselect default fldrequired"><option value="Please select one..." selected="selected">Please select one...</option><option value="Yes " >Yes </option><option value="No " >No </option><option value="Leave me alone, and let me get to the demo!" >Leave me alone, and let me get to the demo!</option></select><span class="reqtxt">&nbsp;(required)</span></li>
			<li><label  for="cf2_field_10"><span>Comments or questions?</span></label><textarea  cols="30" rows="8" name="cf2_field_10" id="cf2_field_10" class="default"></textarea></li>
		</ol>

		</fieldset>
		<fieldset class="cf_hidden">
			<input type="hidden" name="cf_working2" id="cf_working2" value="One%20moment%20please..."/>
			<input type="hidden" name="cf_failure2" id="cf_failure2" value="Please%20fill%20in%20all%20the%20required%20fields."/>
			<input type="hidden" name="cf_codeerr2" id="cf_codeerr2" value="Please%20double-check%20your%20verification%20code."/>
			<input type="hidden" name="cf_customerr2" id="cf_customerr2" value=""/>
			<input type="hidden" name="cf_popup2"   id="cf_popup2"   value="nn"/>
		</fieldset>
		<p class="cf-sb"><input type="submit" name="sendbutton2" id="sendbutton2" class="sendbutton" value="Submit"/></p>
		</form>
		<p class="linklove" id="ll2"><a href="http://www.deliciousdays.com/cforms-plugin"><em>cforms</em> contact form by delicious:days</a></p>
		<p id="usermessage2b" class="info success" ></p>

]]></content:encoded>
			<wfw:commentRss>http://www.muck.net/28/new-zabbix-142-demo-online/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>The war on the different&#8230;</title>
		<link>http://www.muck.net/25/the-war-on-the-different</link>
		<comments>http://www.muck.net/25/the-war-on-the-different#comments</comments>
		<pubDate>Thu, 01 Nov 2007 19:14:09 +0000</pubDate>
		<dc:creator>Doug Peterson</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.muck.net/?p=25</guid>
		<description><![CDATA[Here is an excellent article from Bruce Schneier about the day to day effects of the &#8220;War on Terror&#8221;. He points out the many many ridiculous suspected acts of terrorism, and the absolutely mind numbingly stupid act of rewarding those who over react. This not only is an incredible waste of time and resources, but [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an <a href="http://www.schneier.com/blog/archives/2007/11/the_war_on_the.html" target="_blank">excellent article</a> from Bruce Schneier about the day to day effects of the &#8220;War on Terror&#8221;. He points out the many many ridiculous suspected acts of terrorism, and the absolutely mind numbingly stupid act of rewarding those who over react. This not only is an incredible waste of time and resources, but it only serves to further install fear of the abnormal in the general populace. This has been one of my major frustrations for the last 3 or 4 years, and I hope that more people will see the absurdity of this kind of behavior, and chastise our public officials for acting like paranoid delusionals with a CYA mentality.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.muck.net/25/the-war-on-the-different/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fuse and encFS from source on CENTOS 5 or RHEL 5</title>
		<link>http://www.muck.net/24/fuse-and-encfs-from-source-on-centos-5-or-rhel-5</link>
		<comments>http://www.muck.net/24/fuse-and-encfs-from-source-on-centos-5-or-rhel-5#comments</comments>
		<pubDate>Tue, 23 Oct 2007 01:41:47 +0000</pubDate>
		<dc:creator>Doug Peterson</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[encfs]]></category>
		<category><![CDATA[fuse]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://www.muck.net/?p=24</guid>
		<description><![CDATA[Installing from source on RHEL5 and CENTOS5 is quite painless. Fuse needs to compile a kernel module for your kernel. I started from a minimal install, and did the following: Update 12/6/2007: There is a bug with more recent updates of RHEL5 (Similar or the same as this bug: https://bugzilla.redhat.com/show_bug.cgi?id=228430). The bug will cause the [...]]]></description>
			<content:encoded><![CDATA[<p>Installing from source on RHEL5 and CENTOS5 is quite painless. Fuse needs to compile a kernel module for your kernel.  I started from a minimal install, and did the following:</p>
<p>Update 12/6/2007:  There is a bug with more recent updates of RHEL5 (Similar or the same as this bug: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=228430" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=228430</a>). The bug will cause the original &#8220;yum install&#8221; command to fail with the following:</p>
<blockquote><p>Error: No Package Matching glibc.i686</p></blockquote>
<p>To prevent that, install glibc first, then install the rest of the stuff you want:</p>
<blockquote><p>yum install glibc</p>
<p>yum install kernel-devel gcc kernel-headers openssl  gcc-c++ openssl-devel boost-devel</p></blockquote>
<p>Update (2/5/2008): I added boost-devel to the install list, because of an error I encountered installing on CentOS 4.</p>
<blockquote><p><strong><em>checking boost/shared_ptr.hpp usability&#8230; no<br />
checking boost/shared_ptr.hpp presence&#8230; no<br />
checking for boost/shared_ptr.hpp&#8230; no<br />
configure: error:<br />
Can&#8217;t find boost/shared_.h &#8211; add the boost include dir to CPPFLAGS and<br />
rerun configure, eg:<br />
export CPPFLAGS=-I/usr/local/include  </em></strong></p></blockquote>
<p>Download latest fuse (2.7.1 at this time 10/2007)</p>
<blockquote><p>wget http://internap.dl.sourceforge.net/sourceforge/fuse/fuse-2.7.1.tar.gz</p></blockquote>
<p>Download latest rlog (1.3.7 at this time)</p>
<blockquote><p>wget http://freshmeat.net/redir/rlog/47815/url_tgz/rlog-1.3.7.tgz</p></blockquote>
<p>Download latest encFS (1.3.2-1 at this time)</p>
<blockquote><p>wget http://freshmeat.net/redir/encfs/45687/url_tgz/encfs-1.3.2-1.tgz</p></blockquote>
<p>Rlog:</p>
<blockquote><p>tar -xvzf rlog-1.3.7.tgz</p>
<p>cd rlog-1.3.7</p>
<p>./configure</p>
<p>make</p>
<p>make install</p></blockquote>
<p>Fuse:  lather, rinse</p>
<blockquote><p>tar -xvzf fuse-2.7.1.tar.gz</p>
<p>cd fuse-2.7.1</p>
<p>./configure</p>
<p>make</p>
<p>make install</p></blockquote>
<p>encF: and repeat</p>
<blockquote><p>tar -xzvf encfs-1.3.2-1.tgz</p>
<p>cd encfs-1.3.2</p>
<p>./configure</p>
<p>make</p>
<p>make install</p></blockquote>
<p>Start fuse:</p>
<blockquote><p>/etc/init.d/fuse start</p></blockquote>
<p>Fix init script for CentOS, replace the startup information at the top with:</p>
<blockquote><p><strong>### BEGIN INIT INFO<br />
# chkconfig: 2345 90 10<br />
# description:       Load the fuse module and mount the fuse control<br />
#       filesystem.<br />
### END INIT INFO</strong></p></blockquote>
<p>Run:</p>
<blockquote><p>chkconfig &#8211;add fuse</p></blockquote>
<p>Create an Encrypted Filesystem (Its not really a filesystem&#8230; but I digress)  as a test:</p>
<blockquote><p>encfs /usb/disk1/.crypt-raw /usb/disk1/crypt-mount</p></blockquote>
<p>It really is that easy. Good luck! <img src='http://www.muck.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.muck.net/24/fuse-and-encfs-from-source-on-centos-5-or-rhel-5/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing Zabbix 1.4 on CentOS 5</title>
		<link>http://www.muck.net/16/installing-zabbix-14-on-centos-5</link>
		<comments>http://www.muck.net/16/installing-zabbix-14-on-centos-5#comments</comments>
		<pubDate>Mon, 08 Oct 2007 17:41:38 +0000</pubDate>
		<dc:creator>Doug Peterson</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Zabbix]]></category>
		<category><![CDATA[centos5]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[RedHat Enterprise Linux]]></category>
		<category><![CDATA[rhel5]]></category>

		<guid isPermaLink="false">http://www.muck.net/?p=16</guid>
		<description><![CDATA[If you&#8217;re not familiar with linux or open source tools, finding all the dependencies, downloading the source, compiling source, creating the db, etc can be a daunting task. So I&#8217;ve created this cut and paste walk through to help you through those steps. Almost everything here is cut and paste, except for hostname, and password [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re not familiar with linux or open source tools, finding all the dependencies, downloading the source, compiling source, creating the db, etc can be a daunting task. So I&#8217;ve created this cut and paste walk through to help you through those steps. Almost everything here is cut and paste, except for hostname, and password information <img src='http://www.muck.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  You&#8217;ll need to provide those on your own. I&#8217;ve done my best  to make this as accurate as possible. I hate walkthroughs that just aren&#8217;t accurate! CentOS was installed choosing zero options, with as base of an installation as it would let me. I used the 2.6.18-8 kernel. If you have any questions, or find any errors, please let me know. And of course as usual, if you find it helpful, also, please let me know <img src='http://www.muck.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I wrote these instructions using 1.4.1 as the example, but theres no reason why 1.4.2 shouldn&#8217;t work the same way <img src='http://www.muck.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Update, 11/4/2007: 1.4.2 seems to install its binaries under prefix/sbin instead of prefix/bin, which is different than 1.4.1 which was used for this document. I&#8217;ve also noticed that when copying and pasting from this guide some of the whitespace, apostrophies, and dashes (&#8216; &#8211; ) seem to get distorted upon pasting. Its correct in the source, but when its displayed something is munged up. When I figure out what it is, I&#8217;ll fix it. In the meantime if you get a syntax error, try retyping what I&#8217;ve put on this page instead of copying and pasting. And if you know why its happening, let me know! <img src='http://www.muck.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Install all the necessary pieces. I started with a very base installation of CentOS 5.</p>
<blockquote><p>yum -y install ntp php php-bcmath php-gd php-mysql httpd mysql gcc mysql-server mysql-devel net-snmp net-snmp-utils net-snmp-devel net-snmp-libs curl-devel mak</p></blockquote>
<p>Start up the time server. its important for the time between your devices to be in sync.</p>
<blockquote></blockquote>
<blockquote><p>/etc/init.d/ntpd start</p></blockquote>
<p>Download fPing, and install it:</p>
<blockquote><p>wget http://dag.wieers.com/rpm/packages/fping/fping-2.4-1.b2.2.el5.rf.i386.rpm</p>
<p>rpm -Uvh  fping-2.4-1.b2.2.el5.rf.i386.rpm</p>
<p>chmod 7555 /usr/sbin/fping</p></blockquote>
<p>Create Zabbix user.</p>
<blockquote><p>useradd zabbix</p></blockquote>
<p>Download zabbix and untar it.</p>
<blockquote><p> wget http://superb-east.dl.sourceforge.net/sourceforge/zabbix/zabbix-1.4.1.tar.gz</p></blockquote>
<blockquote><p> tar -xzvf zabbix-1.4.1.tar.gz</p></blockquote>
<p>Start MySQL, and change the root password.</p>
<blockquote><p> /etc/init.d/mysqld start</p></blockquote>
<blockquote><p> /usr/bin/mysqladmin -u root password YourFancyNewRootPassword</p></blockquote>
<p>Connect to the DB using your newly created root password. Create the zabbix DB, and assign a new user (zabbixmysqluser) with privileges to that DB. You may want to change &#8220;zabbixmysqlpassword&#8221; to something else. But it should not be the same as any other &#8220;critical&#8221; password because it will be stored plain text in a config file.</p>
<blockquote><p>mysql -u root -p</p>
<p>mysql&gt; CREATE DATABASE zabbix;</p>
<p>mysql&gt; GRANT DROP,INDEX,CREATE,SELECT,INSERT,UPDATE,ALTER,DELETE ON zabbix.* TO zabbixmysqluser@localhost IDENTIFIED BY &#8216;zabbixmysqlpassword&#8217;;</p>
<p>mysql&gt; quit;</p></blockquote>
<p>Create the DB Schema</p>
<blockquote><p>cd zabbix-1.4.1</p>
<p>cat create/schema/mysql.sql  | mysql -u zabbixmysqluser -pzabbixmysqlpassword zabbix</p></blockquote>
<blockquote><p> cat create/data/data.sql  | mysql -u zabbixmysqluser -pzabbixmysqlpassword  zabbix</p></blockquote>
<blockquote><p> cat create/data/images_mysql.sql  | mysql -u zabbixmysqluser -pzabbixmysqlpassword  zabbix</p></blockquote>
<blockquote><p>./configure &#8211;enable-server &#8211;prefix=/usr/local/zabbix &#8211;with-mysql &#8211;with-net-snmp &#8211;with-libcurl</p></blockquote>
<blockquote><p> make install</p></blockquote>
<blockquote><p> make clean</p></blockquote>
<p>Compile the agent. I chose to compile it staticly, so it can be copied easily to other hosts.</p>
<blockquote><p> ./configure &#8211;enable-agent &#8211;prefix=/usr/local/zabbix &#8211;enable-static</p></blockquote>
<blockquote><p> make install</p></blockquote>
<p>Add the zabbix server and agent ports to your /etc/services file.</p>
<blockquote><p>echo &#8216;zabbix_agent 10050/tcp&#8217; &gt;&gt; /etc/services</p>
<p>echo &#8216;zabbix_trap 10051/tcp&#8217; &gt;&gt; /etc/services</p></blockquote>
<p>Copy the sample configs to /etc/zabbix for server and agentd.</p>
<blockquote><p> mkdir /etc/zabbix</p>
<p>cp misc/conf/zabbix_agentd.conf /etc/zabbix</p>
<p>cp misc/conf/zabbix_server.conf /etc/zabbix</p></blockquote>
<p>in /etc/zabbix/zabbix_server.conf, modify:</p>
<blockquote><p>DBUser=zabbixmysqluser</p>
<p>BPassword=zabbixmysqlpassword</p>
<p>DBSocket=/var/lib/mysql/mysql.sock</p>
<p>FpingLocation=/usr/sbin/fping</p></blockquote>
<p>in /etc/zabbix/zabbix_agentd.conf, modify:</p>
<blockquote><p>Server=127.0.0.1,Your.Zabbix.Server.IP</p>
<p>Hostname=EnterAUniqueHostNameForEachAgent</p></blockquote>
<blockquote><p>cp misc/init.d/redhat/zabbix_agentd_ctl /etc/init.d/zabbix_agentd<br />
cp misc/init.d/redhat/zabbix_server_ctl /etc/init.d/zabbix_server</p></blockquote>
<p>in /etc/init.d/zabbix_agentd AND /etc/init.d/zabbix_server:</p>
<blockquote><p>BASEDIR=/usr/local/zabbix</p></blockquote>
<p>in /etc/init.d/zabbix_agentd (Note the # hash marks, they are necessary), add near the top, just below #!/bin/sh:</p>
<blockquote><p># chkconfig: 345 95 95<br />
# description: Zabbix Agentd</p></blockquote>
<p>in /etc/init.d/zabbix_server (again, note the # Hash marks, they are required), add near the top, just below #!/bin/sh:</p>
<blockquote><p># chkconfig: 345 95 95<br />
# description: Zabbix Server</p></blockquote>
<p>Configure automatic starting and stopping of services.</p>
<blockquote><p> chkconfig &#8211;level 345 zabbix_server on</p>
<p>chkconfig &#8211;level 345 zabbix_agentd on</p>
<p>chkconfig &#8211;level 345 httpd on</p>
<p>chkconfig &#8211;level 345 mysqld on</p>
<p>chkconfig &#8211;level 0123456 iptables off</p>
<p>/etc/init.d/iptables stop</p></blockquote>
<p>Note: I turn the iptables firewall OFF because my  box is behind a firewall. You should consult with your network folks before turning off the firewall. At the very least you should poke holes for port 80, 10050, and 10051 in the firewall.</p>
<blockquote><p>cp -r frontends/php /var/www/html/zabbix</p></blockquote>
<p>in /etc/php.ini, modify:</p>
<blockquote><p>max_execution_time = 300</p>
<p>date.timezone = America/Los_Angeles</p></blockquote>
<p>Note: Obviously you should substitute your own time zone. For a list of all valid timezones, <a href="http://us2.php.net/manual/en/timezones.america.php" target="_blank">click here</a></p>
<blockquote><p> /etc/init.d/httpd start</p></blockquote>
<blockquote><p>chmod 777 /var/www/html/zabbix/conf</p></blockquote>
<p>Launch http://your.servers.name/zabbix inyour browser. You should be prompted with a setup screen. Click through the user agreement, and when you get to the Pre requisites screen, make sure you have a green OK next to everything.</p>
<p><a href="http://www.muck.net/wp-content/uploads/2007/10/zabbix_prereq_small.jpg" title="Zabbix pre req’s"><img src="http://www.muck.net/wp-content/uploads/2007/10/zabbix_prereq_small.jpg" alt="Zabbix pre req’s" /></a></p>
<p><a href="http://www.muck.net/wp-content/uploads/2007/10/zabbix_db_small.jpg" title="Zabbix DB config"><img src="http://www.muck.net/wp-content/uploads/2007/10/zabbix_db_small.jpg" alt="Zabbix DB config" /></a></p>
<p>When you&#8217;ve finished walking through the web interface setup:</p>
<blockquote><p>chmod 755 /var/www/html/zabbix/conf</p>
<p>mv /var/www/html/zabbix/setup.php  /var/www/html/zabbix/setup.php.bak</p></blockquote>
<blockquote><p> /etc/init.d/zabbix_agentd start</p>
<p>/etc/init.d/zabbix_server start</p></blockquote>
<p>You can now login to your zabbix installation by going to http://your.server.name/zabbix, using the username &#8220;admin&#8221;, with no password. To monitor your zabbix server, you can go to the Configuration Tab, and choose the &#8220;hosts&#8221; sub Tab. Select the &#8220;Zabbix Server&#8221; host, by putting a checkmark next to it. and choose the &#8220;Activate Selected&#8221; button below. Wait a minute or two, then select the &#8220;Monitoring&#8221; tab, and then the &#8220;latest data&#8221; sub tab. You should start seeing performance stats appear!</p>
<p>For Reference, your binaries are under /usr/local/zabbix/bin, and your configuration files are in /etc/zabbix.</p>
<p>I&#8217;m not a big fan of their default template, I think the naming sucks. Look for a future article talking about renaming zabbix items. But this should be enough to get you started! <img src='http://www.muck.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  You can find the answers to most of your questions in the Zabbix manual, available here: <a href="http://www.zabbix.com/documentation.php" target="_blank">http://www.zabbix.com/documentation.php .</a> You can also find lots of answers in the <a href="http://www.zabbix.com/forum/" target="_blank">zabbix forums</a> .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.muck.net/16/installing-zabbix-14-on-centos-5/feed</wfw:commentRss>
		<slash:comments>89</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: www.muck.net @ 2012-05-19 06:53:29 -->
