<?xml version="1.0" encoding="iso-8859-1"?><!-- generator="b2evolution/4.1.6" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Notes, Solutions, and Rants - Category: BSD</title>
		<link>http://tech.mikeal.com/blog1.php</link>
		<atom:link rel="self" type="application/rss+xml" href="http://tech.mikeal.com/blog1.php?tempskin=_rss2" />
		<description></description>
		<language>en-US</language>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=4.1.6"/>
		<ttl>60</ttl>
				<item>
			<title>MySQL Backup script</title>
			<link>http://tech.mikeal.com/blog1.php/mysql-backups-script</link>
			<pubDate>Thu, 08 Sep 2011 02:19:00 +0000</pubDate>			<dc:creator>Mikeal</dc:creator>
			<category domain="alt">scripts</category>
<category domain="main">BSD</category>			<guid isPermaLink="false">31@http://tech.mikeal.com/</guid>
						<description>&lt;p&gt;Doing this on FreeBSD so you might need to modify the bash location for other OS choices&lt;/p&gt;
&lt;p&gt;#!/usr/local/bin/bash&lt;br /&gt;backupdir=/home/backup/&lt;br /&gt;backupfile=`date +backup-%d-%m-%y_%H.sql`&lt;br /&gt;tarfile=mysqlbackup.tar&lt;br /&gt;cd $backupdir&lt;br /&gt;mysqldump --opt -A -h localhost --password=***** -u root &amp;gt; $backupfile&lt;br /&gt;gunzip &quot;$tarfile&quot;.gz&lt;br /&gt;tar rf $tarfile $backupfile &amp;amp;&amp;gt; /dev/null&lt;br /&gt;gzip $tarfile&lt;br /&gt;rm $backupfile&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://tech.mikeal.com/blog1.php/mysql-backups-script&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>Doing this on FreeBSD so you might need to modify the bash location for other OS choices</p>
<p>#!/usr/local/bin/bash<br />backupdir=/home/backup/<br />backupfile=`date +backup-%d-%m-%y_%H.sql`<br />tarfile=mysqlbackup.tar<br />cd $backupdir<br />mysqldump --opt -A -h localhost --password=***** -u root &gt; $backupfile<br />gunzip "$tarfile".gz<br />tar rf $tarfile $backupfile &amp;&gt; /dev/null<br />gzip $tarfile<br />rm $backupfile</p><div class="item_footer"><p><small><a href="http://tech.mikeal.com/blog1.php/mysql-backups-script">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://tech.mikeal.com/blog1.php/mysql-backups-script#comments</comments>
			<wfw:commentRss>http://tech.mikeal.com/blog1.php?tempskin=_rss2&#38;disp=comments&#38;p=31</wfw:commentRss>
		</item>
				<item>
			<title>Wireshark on OS X</title>
			<link>http://tech.mikeal.com/blog1.php/wireshark-on-os-x</link>
			<pubDate>Wed, 16 Mar 2011 21:01:16 +0000</pubDate>			<dc:creator>Mikeal</dc:creator>
			<category domain="alt">BSD</category>
<category domain="main">OS X</category>			<guid isPermaLink="false">22@http://tech.mikeal.com/</guid>
						<description>&lt;p&gt;By default you get an error that no interfaces are available when you try to capture traffic. This is because you don&#039;t have access to the necessary parts of /dev/&lt;/p&gt;

&lt;p&gt;To fix it:&lt;/p&gt;

&lt;p&gt;sudo chown username /dev/bpf*&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://tech.mikeal.com/blog1.php/wireshark-on-os-x&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>By default you get an error that no interfaces are available when you try to capture traffic. This is because you don't have access to the necessary parts of /dev/</p>

<p>To fix it:</p>

<p>sudo chown username /dev/bpf*</p><div class="item_footer"><p><small><a href="http://tech.mikeal.com/blog1.php/wireshark-on-os-x">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://tech.mikeal.com/blog1.php/wireshark-on-os-x#comments</comments>
			<wfw:commentRss>http://tech.mikeal.com/blog1.php?tempskin=_rss2&#38;disp=comments&#38;p=22</wfw:commentRss>
		</item>
				<item>
			<title>Monitoring Dell Perc Controllers, OpenManage, and VMware ESX with Nagios on FreeBSD</title>
			<link>http://tech.mikeal.com/blog1.php/monitoring-dell-perc-controllers-openman</link>
			<pubDate>Thu, 22 Jan 2009 13:49:39 +0000</pubDate>			<dc:creator>Mikeal</dc:creator>
			<category domain="main">vmware</category>
<category domain="alt">BSD</category>			<guid isPermaLink="false">8@http://tech.mikeal.com/</guid>
						<description>&lt;p&gt;The environment I work in now is large enough that simply looking for the flashing orange lights, and hoping I notice it before we have multiple drive failures, is no longer sufficient.  &lt;a href=&quot;http://www.nagiosexchange.org&quot;&gt;NagiosExchange&lt;/a&gt; has several pluggins that will report back from Dell&#039;s OpenManage software.  I tried several and settled on &lt;a href=&quot;http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed/2658.html;d=1&quot;&gt;this one&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I&#039;m working in FreeBSD so your mileage may very a little on Linux.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Extract the check_openmanage-3.1.1.tar.gz&lt;/strong&gt;&lt;br /&gt;
&lt;em&gt;tar -zxvf check_openmanage-3.1.1.tar.gz&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Place check_openmanage in /usr/local/libexec/nagios&lt;/strong&gt;&lt;br /&gt;
&lt;em&gt;cd check_openmanage-3.1.1 &lt;br /&gt;
cp check_openmanage /usr/local/libexec/nagios&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Might have to make it executable as well&lt;/strong&gt;&lt;br /&gt;
&lt;em&gt;chmod +x /usr/local/libexec/nagios/check_openmanage&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Define your OpenManage command in commands.cfg&lt;/strong&gt;&lt;br /&gt;
&lt;em&gt;# &#039;check_openmanage&#039; command definition&lt;br /&gt;
define command{&lt;br /&gt;
        command_name    check_openmanage&lt;br /&gt;
        command_line    $USER1$/check_openmanage -s -H $HOSTADDRESS$ -i -C public&lt;br /&gt;
        }&lt;br /&gt;
&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Define your service in your server.cfg&lt;/strong&gt;&lt;br /&gt;
&lt;em&gt;define service{&lt;br /&gt;
        use                             local-service         ; Name of service template to use&lt;br /&gt;
        host_name                       servername&lt;br /&gt;
        service_description             Perc RAID&lt;br /&gt;
        check_command                   check_openmanage!&lt;br /&gt;
        }&lt;br /&gt;
&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You should end up with notices that look like this&lt;br /&gt;
&lt;img src=&quot;http://www.mikeal.com/images/check_openmanage.jpg&quot; alt=&quot;&quot; title=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;For Monitoring ESX/ESXi I had to find another route.  The VMware toolkit is made for linux, and searching around it didn&#039;t look promising on FreeBSD.  Luckily for me someone else had already figured this out. See  &lt;a href=&quot;http://www.ubergeek.co.uk/blog/2008/11/monitoring-hardware-through-vmware-esxi-and-nagios/&quot;&gt;Ubergeek Technical Howtos&#039;&lt;/a&gt; for details.&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://tech.mikeal.com/blog1.php/monitoring-dell-perc-controllers-openman&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>The environment I work in now is large enough that simply looking for the flashing orange lights, and hoping I notice it before we have multiple drive failures, is no longer sufficient.  <a href="http://www.nagiosexchange.org">NagiosExchange</a> has several pluggins that will report back from Dell's OpenManage software.  I tried several and settled on <a href="http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed/2658.html;d=1">this one</a>.</p>

<p>I'm working in FreeBSD so your mileage may very a little on Linux.  </p>

<p><strong>Extract the check_openmanage-3.1.1.tar.gz</strong><br />
<em>tar -zxvf check_openmanage-3.1.1.tar.gz</em></p>

<p><strong>Place check_openmanage in /usr/local/libexec/nagios</strong><br />
<em>cd check_openmanage-3.1.1 <br />
cp check_openmanage /usr/local/libexec/nagios</em></p>

<p><strong>Might have to make it executable as well</strong><br />
<em>chmod +x /usr/local/libexec/nagios/check_openmanage</em></p>

<p><strong>Define your OpenManage command in commands.cfg</strong><br />
<em># 'check_openmanage' command definition<br />
define command{<br />
        command_name    check_openmanage<br />
        command_line    $USER1$/check_openmanage -s -H $HOSTADDRESS$ -i -C public<br />
        }<br />
</em></p>

<p><strong>Define your service in your server.cfg</strong><br />
<em>define service{<br />
        use                             local-service         ; Name of service template to use<br />
        host_name                       servername<br />
        service_description             Perc RAID<br />
        check_command                   check_openmanage!<br />
        }<br />
</em></p>

<p>You should end up with notices that look like this<br />
<img src="http://www.mikeal.com/images/check_openmanage.jpg" alt="" title="" /></p>

<p>For Monitoring ESX/ESXi I had to find another route.  The VMware toolkit is made for linux, and searching around it didn't look promising on FreeBSD.  Luckily for me someone else had already figured this out. See  <a href="http://www.ubergeek.co.uk/blog/2008/11/monitoring-hardware-through-vmware-esxi-and-nagios/">Ubergeek Technical Howtos'</a> for details.</p><div class="item_footer"><p><small><a href="http://tech.mikeal.com/blog1.php/monitoring-dell-perc-controllers-openman">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://tech.mikeal.com/blog1.php/monitoring-dell-perc-controllers-openman#comments</comments>
			<wfw:commentRss>http://tech.mikeal.com/blog1.php?tempskin=_rss2&#38;disp=comments&#38;p=8</wfw:commentRss>
		</item>
			</channel>
</rss>
