<?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>seigafuse.com</title>
	<atom:link href="http://seigafuse.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://seigafuse.com</link>
	<description>Mike Seigafuse&#039;s Technology and IT Security Blog</description>
	<lastBuildDate>Wed, 03 Feb 2010 15:09:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Site Updated</title>
		<link>http://seigafuse.com/2010/02/02/site-updated/</link>
		<comments>http://seigafuse.com/2010/02/02/site-updated/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 23:58:55 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://seigafuse.com/?p=220</guid>
		<description><![CDATA[I updated the site to focus strictly on technology.  All of my personal and photography related content has been moved to http://www.seigafuse.net.  I also installed a new theme to freshen the layout and colors a bit.
]]></description>
			<content:encoded><![CDATA[<p>I updated the site to focus strictly on technology.  All of my personal and photography related content has been moved to <a href="http://www.seigafuse.net" target="_blank">http://www.seigafuse.net</a>.  I also installed a new theme to freshen the layout and colors a bit.</p>
]]></content:encoded>
			<wfw:commentRss>http://seigafuse.com/2010/02/02/site-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7 Upgrade</title>
		<link>http://seigafuse.com/2009/12/19/windows-7-upgrade/</link>
		<comments>http://seigafuse.com/2009/12/19/windows-7-upgrade/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 15:31:08 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://seigafuse.com/?p=189</guid>
		<description><![CDATA[I upgraded my home PC to Windows 7 this week.  Vista was giving me issues (what else is new), so I decided to do the Windows 7 upgrade sooner rather than later.  I don&#8217;t usually adopt a new OS this quickly, but given I was on Vista it seemed like a good idea.
The upgrade process [...]]]></description>
			<content:encoded><![CDATA[<p>I upgraded my home PC to Windows 7 this week.  Vista was giving me issues (what else is new), so I decided to do the Windows 7 upgrade sooner rather than later.  I don&#8217;t usually adopt a new OS this quickly, but given I was on Vista it seemed like a good idea.</p>
<p>The upgrade process was pretty simple, and other than a few annoying items (having to deauthorize the computer in iTunes prior to the upgrade, and having to deinstall ATI drivers) it was mostly painless.  The upgrade did take several hours for me, as I do have a good amount of data (around 130GB).</p>
<p>I had to reinstall Roxio Easy Media Creator suite afterwards to get rid of an annoying messages about the Roxio Cine Player Media Decoder being missing.  Also, the screen seems odd.  The resolution setting is set the same as it was under Vista at 1440&#215;900, but it looks like it has an odd aspect ratio.  I was hoping to install new ATI drivers, but it appears Gateway has NO drivers at all for Windows 7 yet (see screenshot below).</p>
<p><div id="attachment_193" class="wp-caption alignleft" style="width: 310px"><a href="wp-content/uploads/gwwin7.jpg"><img class="size-medium wp-image-193" title="gwwin7" src="wp-content/uploads/gwwin7-300x209.jpg" alt="" width="300" height="209" /></a><p class="wp-caption-text">No Windows 7 Drivers</p></div></p>
<p>So far the upgrade has been fine other than the look of the screen.  New features are nice, I like the sticky and the fact that sleep mode works, peeking at the desktop, and the photo support for the desktop background and screensaver, but I like stability and reliability even better.  Time will tell if Windows 7 delivers, but so far so good.</p>
]]></content:encoded>
			<wfw:commentRss>http://seigafuse.com/2009/12/19/windows-7-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An update to OCS Diff Scripts</title>
		<link>http://seigafuse.com/2009/12/04/an-update-to-ocs-diff-scripts/</link>
		<comments>http://seigafuse.com/2009/12/04/an-update-to-ocs-diff-scripts/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 19:22:08 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://seigafuse.com/?p=177</guid>
		<description><![CDATA[Here is an update to the OCS Diff Scripts courtesy of Dioni Vidal.  Dioni is from Brazil and speaks Portuguese, so some of the messages are in Portuguese.  If someone takes the time to translate, let me know and I will post the translations as well.
The installation remains the same as the original version, and [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an update to the OCS Diff Scripts courtesy of Dioni Vidal.  Dioni is from Brazil and speaks Portuguese, so some of the messages are in Portuguese.  If someone takes the time to translate, let me know and I will post the translations as well.</p>
<p>The installation remains the same as the original version, and you can find the details <a href="http://seigafuse.com/2008/12/19/ocs-diff-script/">here</a>. Dioni&#8217;s version adds reporting of sound and video changes to the hardware script, and adds software change reporting (added or removed) via ocssoftware.php.</p>
<p>Don&#8217;t forget to change the email addresses in ocshardware.php and ocssoftware.php on lines 15,16 and 17.</p>
<p>Once you are done the related cron jobs are likely to look something like this:</p>
<p><span style="background-color: #ffffff;" title="10 */1 * * * apache php /usr/share/ocsinventory-reports/ocsreports/ocssoftware.php">10 * / 1 * * php * apache / usr / share / ocsinventory-reports / ocsreports / ocssoftware.php<br />
</span><span style="background-color: #ffffff;" title="10 */1 * * * apache php /usr/share/ocsinventory-reports/ocsreports/ocshardware.php">10 * / 1 * * php * apache / usr / share / ocsinventory-reports / ocsreports / ocshardware.php</span></p>
<p><span style="background-color: #ffffff;" title="10 */1 * * * apache php /usr/share/ocsinventory-reports/ocsreports/ocshardware.php"><a href="http://seigafuse.com/wp-content/plugins/download-monitor/download.php?id=7" title="OCS Diff 2" - An update to OCS Diff by Dionni Vidal<img src="http://seigafuse.com/wp-content/plugins/download-monitor/img/download.gif"></a><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://seigafuse.com/2009/12/04/an-update-to-ocs-diff-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problems displaying source code</title>
		<link>http://seigafuse.com/2009/10/22/problems-displaying-source-code/</link>
		<comments>http://seigafuse.com/2009/10/22/problems-displaying-source-code/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 12:13:04 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://seigafuse.com/2009/10/22/problems-displaying-source-code/</guid>
		<description><![CDATA[I had a few issues with displaying source code using the All Your Source plugin, but they are now resolved.  Source code is visible on the site again.
]]></description>
			<content:encoded><![CDATA[<p>I had a few issues with displaying source code using the All Your Source plugin, but they are now resolved.  Source code is visible on the site again.</p>
]]></content:encoded>
			<wfw:commentRss>http://seigafuse.com/2009/10/22/problems-displaying-source-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use your cell phone as a PDA without the PDA price</title>
		<link>http://seigafuse.com/2009/09/08/use-your-cell-phone-as-a-pda-without-the-pda-price/</link>
		<comments>http://seigafuse.com/2009/09/08/use-your-cell-phone-as-a-pda-without-the-pda-price/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 18:23:35 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://seigafuse.com/?p=165</guid>
		<description><![CDATA[I used to use a Palm Pilot (a long time ago) as my PDA and I really liked it.  But I really didn&#8217;t want to carry a PDA and a cell phone.  I&#8217;ve always wanted to be able to use my cell phone&#8217;s calendar applicaiton to keep track of my appointments, but I didn&#8217;t want [...]]]></description>
			<content:encoded><![CDATA[<p>I used to use a Palm Pilot (a long time ago) as my PDA and I really liked it.  But I really didn&#8217;t want to carry a PDA and a cell phone.  I&#8217;ve always wanted to be able to use my cell phone&#8217;s calendar applicaiton to keep track of my appointments, but I didn&#8217;t want to go the Blackberry route and since I use <a href="http://www.mozillamessaging.com/en-US/thunderbird/" target="_blank">Thunderbird </a>for my home email my options were limited.  At least they were until I found <a href="http://www.synccell.com/" target="_blank">SyncCell</a>.  SynCell works great with my Verizon LG ENV3 and Thunderbird 2.  I am using the Lightning 0.9 extension to add calendaring functions to Thunderbird and this combination is perfect for me.  I can add my appointments on my PC or on my phone and SyncCell keeps them synchronized for me with just the click of a button.  I just connect my phone to the PC with the USB cable, click on the One Sync shortcut in the quick launch bar and away it goes.  I had tried to do this previously with my Razor and Motorola Phone Tools (MPT), but that never worked out since MPT didn&#8217;t support Thunderbird.  I don&#8217;t have all the bells and whistles of a full PDA or a Blackberry, but that works for me since I don&#8217;t really need all those things and I didn&#8217;t want to have the platform dictate which email system I had to use.  Check SyncCell out it might work for you as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://seigafuse.com/2009/09/08/use-your-cell-phone-as-a-pda-without-the-pda-price/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Publishing websites and image galleries from Lightroom</title>
		<link>http://seigafuse.com/2009/09/08/publishing-websites-and-image-galleries-from-lightroom/</link>
		<comments>http://seigafuse.com/2009/09/08/publishing-websites-and-image-galleries-from-lightroom/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 18:03:17 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://seigafuse.com/?p=161</guid>
		<description><![CDATA[I worked with a friend of mine to get his website and image galleries online.  Since he is a Lightroom user and wanted to run his own website (as opposed to using something like SmugMug) I researched what his options were.  I ran across a series of tools that fit his needs perfectly. [...]]]></description>
			<content:encoded><![CDATA[<p>I worked with a friend of mine to get his website and image galleries online.  Since he is a Lightroom user and wanted to run his own website (as opposed to using something like SmugMug) I researched what his options were.  I ran across a series of tools that fit his needs perfectly.  The tools can be found <a href="http://lightroom.theturninggate.net/" target="_blank">here</a> and all operate within Lightroom.  My friend has Lightroom 2.4 and used the TTG LR Pages module to create his static pages such as Home, About and Contact.  Then we setup TTG Highslide Gallery Pro and TTG Auto Index for the image galleries.  Theses addons to Lightroom are great for a photographer who isn&#8217;t also a webmaster and just wants to publish pages and galleries from a tool he or she is already familiar with.  TTG Highslide Gallery also allows a gallery to operate in &#8220;proofing/selection&#8221; mode to allow online client proofing and print selection.  Check these tools out, the price is very good and it just might be what you were looking for.  The site I helped my friend put together can be found <a href="http://www.mitphotographic.com/" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://seigafuse.com/2009/09/08/publishing-websites-and-image-galleries-from-lightroom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update: Passed the CISSP exam!</title>
		<link>http://seigafuse.com/2009/04/06/passed-the-cissp-exam/</link>
		<comments>http://seigafuse.com/2009/04/06/passed-the-cissp-exam/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 14:38:39 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://seigafuse.com/2009/04/06/passed-the-cissp-exam/</guid>
		<description><![CDATA[Just a quick entry to note that I did pass the CISSP exam!  I still have to get endorsed by an existing CISSP (done) and get my years of experience proven (paperwork submitted).  Now I am just waiting for ISC2 to complete the process so I can officially say I am a CISSP!
Update:  [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick entry to note that I did pass the CISSP exam!  I still have to get endorsed by an existing CISSP (done) and get my years of experience proven (paperwork submitted).  Now I am just waiting for ISC2 to complete the process so I can officially say I am a CISSP!</p>
<p>Update:  I got confirmation today (April 9th, 2009) that my endorsement and certification were approved.  So, I am now officially a CISSP!</p>
]]></content:encoded>
			<wfw:commentRss>http://seigafuse.com/2009/04/06/passed-the-cissp-exam/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Studying for CISSP exam</title>
		<link>http://seigafuse.com/2009/03/09/studying-for-cissp-exam/</link>
		<comments>http://seigafuse.com/2009/03/09/studying-for-cissp-exam/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 13:44:04 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://seigafuse.com/?p=143</guid>
		<description><![CDATA[I have been studying to take the CISSP examination.  You can read about the CISSP exam here. Since this has kept me pretty busy, but I did not want to fall behind on my Fifty Two project I combined the two and ended up with the shot below.  I think it turned out [...]]]></description>
			<content:encoded><![CDATA[<p>I have been studying to take the CISSP examination.  You can read about the CISSP exam <a href="http://www.isc2.org/cissp/default.aspx">here.</a> Since this has kept me pretty busy, but I did not want to fall behind on my Fifty Two project I combined the two and ended up with the shot below.  I think it turned out pretty well <img src='http://seigafuse.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a class="tt-flickr tt-flickr-Medium" title="Source of enlightenment" href="http://www.flickr.com/photos/mseigafuse/3322950791/"><img class="alignnone" src="http://farm4.static.flickr.com/3623/3322950791_105b635c2b.jpg" alt="Source of enlightenment" width="500" height="333" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://seigafuse.com/2009/03/09/studying-for-cissp-exam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OCS Diff script</title>
		<link>http://seigafuse.com/2008/12/19/ocs-diff-script/</link>
		<comments>http://seigafuse.com/2008/12/19/ocs-diff-script/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 16:10:52 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[OCS-NG]]></category>

		<guid isPermaLink="false">http://seigafuse.com/?p=108</guid>
		<description><![CDATA[Here is the script I used to generate hardware change reports from the OCS NG database.  This script is implemented much like the daily disk reports from OCS (see this).  Sorry there is no better documentation for this, I just have not had the time and soon will no longer have access to test or [...]]]></description>
			<content:encoded><![CDATA[<p>Here is the script I used to generate hardware change reports from the OCS NG database.  This script is implemented much like the daily disk reports from OCS (see <a href="http://seigafuse.com/2007/07/26/daily-diskspace-alerts-using-ocs-inventory-ng/">this</a>).  Sorry there is no better documentation for this, I just have not had the time and soon will no longer have access to test or refine this.  If you post a comment here I will try to help as best I can and as time allows.</p>
<p><a class="downloadlink dlimg" href="http://seigafuse.com/wp-content/plugins/download-monitor/download.php?id=6" title="Version 1.0 downloaded 220 times" ><img src="http://seigafuse.com/wp-content/plugins/download-monitor/img/download.gif" alt="Download OCS Diff Version 1.0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://seigafuse.com/2008/12/19/ocs-diff-script/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Nagios Plugin for Barracuda Spam Firewalls</title>
		<link>http://seigafuse.com/2007/10/19/nagios-plugin-for-barracuda-spam-firewalls/</link>
		<comments>http://seigafuse.com/2007/10/19/nagios-plugin-for-barracuda-spam-firewalls/#comments</comments>
		<pubDate>Fri, 19 Oct 2007 18:53:38 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Network Monitoring]]></category>

		<guid isPermaLink="false">http://seigafuse.com/?p=38</guid>
		<description><![CDATA[In our environment we use Barracuda Spam Firewalls to handle in and outbound mail delivery.  Wanting to keep an eye on the in and outbound queues to make sure we are not seeing any delays with delivery I went looking for ways to monitor the queues and alert when they are above certain thresholds. [...]]]></description>
			<content:encoded><![CDATA[<p>In our environment we use Barracuda Spam Firewalls to handle in and outbound mail delivery.  Wanting to keep an eye on the in and outbound queues to make sure we are not seeing any delays with delivery I went looking for ways to monitor the queues and alert when they are above certain thresholds.  Barracuda exposes the queue lengths in a number of ways (CGI/API, web interface and SNMP) and since we wanted this automated and we already use Nagios I chose to use SNMP.  I tried some of the other SNMP plugins to try to use those, but after a bit of struggling without success I decided to write my own in PHP (mainly because that is what is easiest for me).  Use the download link below to download a zip file of the plugin.</p>
<p><a class="downloadlink dlimg" href="http://seigafuse.com/wp-content/plugins/download-monitor/download.php?id=4" title="Version 1.0 downloaded 723 times" ><img src="http://seigafuse.com/wp-content/plugins/download-monitor/img/download.gif" alt="Download Barracuda Plugin Version 1.0" /></a></p>
<p>Or click on this link to see the code within this post.</p>
<p><a href="javascript:showme('1446_1');"> <b>> check_cuda</b></a>
<div style="display: none; background:white;" id=1446_1>
<pre class="php"><span style="color: #808080; font-style: italic;">#!/usr/bin/php -q</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># check_cuda - nagios plugin</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># Copyright (C) 2007 Mike Seigafuse</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># This program is free software; you can redistribute it and/or</span>
<span style="color: #808080; font-style: italic;"># modify it under the terms of the GNU General Public License</span>
<span style="color: #808080; font-style: italic;"># as published by the Free Software Foundation; either version 2</span>
<span style="color: #808080; font-style: italic;"># of the License, or (at your option) any later version.</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># This program is distributed in the hope that it will be useful,</span>
<span style="color: #808080; font-style: italic;"># but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<span style="color: #808080; font-style: italic;"># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<span style="color: #808080; font-style: italic;"># GNU General Public License for more details.</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># You should have received a copy of the GNU General Public License</span>
<span style="color: #808080; font-style: italic;"># along with this program; if not, write to the Free Software</span>
<span style="color: #808080; font-style: italic;"># Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># Report bugs to: mike@seigafuse.net</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># This script will check counters of a Barracuda Spam Firewall using PHP SNMP functions</span>
<span style="color: #808080; font-style: italic;"># and return them along with the status.</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #0000ff;">$numbparams</span> = <a href="http://www.php.net/sizeof"><span style="color: #000066;">sizeof</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$argv</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;"># should be 5</span>
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$numbparams</span> &lt; <span style="color: #cc66cc;">5</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">"Usage: check_cuda &lt;host ip&gt; &lt;community string&gt; &lt;queue&gt; &lt;warn&gt; &lt;crit&gt;<span style="color: #000099; font-weight: bold;">\\n</span>"</span>;
	<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">"     Queue can be either in, out or bounce<span style="color: #000099; font-weight: bold;">\\n</span>"</span>;
	<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">"     Warning and Critical values should be positive integers<span style="color: #000099; font-weight: bold;">\\n</span>"</span>;
	<a href="http://www.php.net/exit"><span style="color: #000066;">exit</span></a>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #0000ff;">$host</span> = <span style="color: #0000ff;">$argv</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span>;
<span style="color: #0000ff;">$cstring</span> = <span style="color: #0000ff;">$argv</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#93;</span>;
<span style="color: #0000ff;">$checkqueue</span> = <a href="http://www.php.net/strtoupper"><span style="color: #000066;">strtoupper</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$argv</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$warn</span> = <span style="color: #0000ff;">$argv</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#93;</span>;
<span style="color: #0000ff;">$crit</span> = <span style="color: #0000ff;">$argv</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">5</span><span style="color: #66cc66;">&#93;</span>;
&nbsp;
<span style="color: #0000ff;">$mailinqueue</span> = <span style="color: #ff0000;">"1.3.6.1.4.1.2021.8.1.101.1"</span>;
<span style="color: #0000ff;">$mailoutqueue</span> = <span style="color: #ff0000;">"1.3.6.1.4.1.2021.8.1.101.2"</span>;
<span style="color: #0000ff;">$mailbouncequeue</span> = <span style="color: #ff0000;">"1.3.6.1.4.1.2021.8.1.101.3"</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> getsnmpvalue<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$host</span>, <span style="color: #0000ff;">$cstring</span>, <span style="color: #0000ff;">$oid</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
     <span style="color: #0000ff;">$valuestring</span> = snmpget<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$host</span>, <span style="color: #0000ff;">$cstring</span>, <span style="color: #0000ff;">$oid</span><span style="color: #66cc66;">&#41;</span>;
     <span style="color: #0000ff;">$colpos</span> = <a href="http://www.php.net/strpos"><span style="color: #000066;">strpos</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$valuestring</span>, <span style="color: #ff0000;">":"</span><span style="color: #66cc66;">&#41;</span>;
     <span style="color: #0000ff;">$subvalue</span> = <a href="http://www.php.net/trim"><span style="color: #000066;">trim</span></a><span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/substr"><span style="color: #000066;">substr</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$valuestring</span>, <span style="color: #0000ff;">$colpos</span><span style="color: #cc66cc;">+1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
     <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">$subvalue</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Ready set go, time to do the real work</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$checkqueue</span> == <span style="color: #ff0000;">"IN"</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0000ff;">$queuelen</span> = getsnmpvalue<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$host</span>, <span style="color: #0000ff;">$cstring</span>, <span style="color: #0000ff;">$mailinqueue</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$checkqueue</span> == <span style="color: #ff0000;">"OUT"</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
         <span style="color: #0000ff;">$queuelen</span> = getsnmpvalue<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$host</span>, <span style="color: #0000ff;">$cstring</span>, <span style="color: #0000ff;">$mailoutqueue</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$checkqueue</span> == <span style="color: #ff0000;">"BOUNCE"</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
         <span style="color: #0000ff;">$queuelen</span> = getsnmpvalue<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$host</span>, <span style="color: #0000ff;">$cstring</span>, <span style="color: #0000ff;">$mailbouncequeue</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$queuelen</span> &lt; <span style="color: #0000ff;">$warn</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0000ff;">$format</span> = <span style="color: #ff0000;">'%s OK - %d messages queued |Mail%sQueue=%d;%d;%d'</span>;
	<a href="http://www.php.net/printf"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$format</span>, <span style="color: #0000ff;">$checkqueue</span>, <span style="color: #0000ff;">$queuelen</span>, <span style="color: #0000ff;">$checkqueue</span>, <span style="color: #0000ff;">$queuelen</span>, <span style="color: #0000ff;">$warn</span>, <span style="color: #0000ff;">$crit</span><span style="color: #66cc66;">&#41;</span>;
	<a href="http://www.php.net/exit"><span style="color: #000066;">exit</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$queuelen</span> &gt; <span style="color: #0000ff;">$warn</span><span style="color: #66cc66;">&#41;</span> &amp;&amp; <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$queuelen</span> &lt; <span style="color: #0000ff;">$crit</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0000ff;">$format</span> = <span style="color: #ff0000;">'%s Warning - %d messages queued |Mail%sQueue=%d;%d;%d'</span>;
	<a href="http://www.php.net/printf"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$format</span>, <span style="color: #0000ff;">$checkqueue</span>, <span style="color: #0000ff;">$queuelen</span>, <span style="color: #0000ff;">$checkqueue</span>, <span style="color: #0000ff;">$queuelen</span>, <span style="color: #0000ff;">$warn</span>, <span style="color: #0000ff;">$crit</span><span style="color: #66cc66;">&#41;</span>;
	<a href="http://www.php.net/exit"><span style="color: #000066;">exit</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$queuelen</span> &gt; <span style="color: #0000ff;">$crit</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0000ff;">$format</span> = <span style="color: #ff0000;">'%s Critical - %d messages queued |Mail%sQueue=%d;%d;%d'</span>;
	<a href="http://www.php.net/printf"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$format</span>, <span style="color: #0000ff;">$checkqueue</span>, <span style="color: #0000ff;">$queuelen</span>, <span style="color: #0000ff;">$checkqueue</span>, <span style="color: #0000ff;">$queuelen</span>, <span style="color: #0000ff;">$warn</span>, <span style="color: #0000ff;">$crit</span><span style="color: #66cc66;">&#41;</span>;
	<a href="http://www.php.net/exit"><span style="color: #000066;">exit</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre>
</div>
<h1>Usage</h1>
<p>Usage: <em>check_cuda host-ip community-string queue warning-threshold critical-threshold</em></p>
<p>Queue can be either in, out or bounce<br />
Warning and Critical values should be positive integers</p>
<h1>Prerequisites</h1>
<p>This plugin requires php_snmp support</p>
<h1>Nagios Configuration</h1>
<h2>Commands</h2>
<p>Define commands as shown below:</p>
<p>define command {<br />
command_name                    Check Barracuda Inbound Mail Queue<br />
command_line                    $USER1$/check_cuda $HOSTADDRESS$ public in 500 1000<br />
}</p>
<p>define command {<br />
command_name                    Check Barracuda Outbound Mail Queue<br />
command_line                    $USER1$/check_cuda $HOSTADDRESS$ public out 500 1000<br />
}</p>
<p>Obviously you will need to change the SNMP community string from public to match your community string.  If you wish you could also add a check command to track the bounce queue.  You may also want to use different warning and critical threshold than I did (500 and 1000 respectively).  These numbers may not be right for your situation.</p>
<h2>Contact Groups</h2>
<p>Add a service group like the one below (customizing for your site of course):</p>
<p># contactgroups Cuda Admins<br />
define contactgroup {<br />
contactgroup_name               Cuda_Admins<br />
alias                                    Cuda_Admins<br />
members                        joe,sally,fred<br />
}</p>
<h2>Service Templates</h2>
<p>define service {<br />
name                            Check Barracuda Mail Queue Template<br />
use                             generic-service<br />
contact_groups                  Cuda_Admins<br />
register                        0<br />
}</p>
<h2>Services</h2>
<p>Add the service as needed to your hosts, sample shown below:</p>
<p>define service {<br />
service_description             Check Barracuda Inbound Mail Queue<br />
use                             Check Barracuda Mail Queue Template<br />
host_name                       yourcuda<br />
check_command                   Check Barracuda Inbound Mail Queue<br />
}</p>
<p>define service {<br />
service_description             Check Barracuda Outbound Mail Queue<br />
use                             Check Barracuda Mail Queue Template<br />
host_name                       yourcuda<br />
check_command                   Check Barracuda Outbound Mail Queue<br />
}</p>
<p>If you have any questions, comments or problems then just post a comment on this post and I&#8217;ll get back to you.</p>
<p><strong>Update (January 2008) </strong></p>
<p>There are now some additional plug-ins available to perform the same functions written in PERL and with hooks to graphing solutions.  You can find them <a href="http://www.nagiosexchange.org/Search_Projects.43.0.html?tx_netnagext_pi1%5Bphrase%5D=barracuda&amp;tx_netnagext_pi1%5Bsubmit%5D=search&amp;tx_netnagext_pi1%5Boptions%5D%5Bshort%5D=1&amp;tx_netnagext_pi1%5Boptions%5D%5Bdescription%5D=1&amp;tx_netnagext_pi1%5Bsearch%5D=1">here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://seigafuse.com/2007/10/19/nagios-plugin-for-barracuda-spam-firewalls/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
