<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Nagios Plugin for Barracuda Spam Firewalls</title>
	<atom:link href="http://seigafuse.com/2007/10/19/nagios-plugin-for-barracuda-spam-firewalls/feed/" rel="self" type="application/rss+xml" />
	<link>http://seigafuse.com/2007/10/19/nagios-plugin-for-barracuda-spam-firewalls/</link>
	<description>Mike Seigafuse&#039;s Technology and IT Security Blog</description>
	<lastBuildDate>Mon, 05 Mar 2012 17:37:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Mike</title>
		<link>http://seigafuse.com/2007/10/19/nagios-plugin-for-barracuda-spam-firewalls/comment-page-1/#comment-18716</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 11 Aug 2010 14:18:04 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=38#comment-18716</guid>
		<description>Thanks Ray for point out this issue and for testing the new version.  Anyone else looking to resolve this issue should visit the updated version at http://seigafuse.com/2010/08/11/barracuda-plugin-for-nagios-v3/</description>
		<content:encoded><![CDATA[<p>Thanks Ray for point out this issue and for testing the new version.  Anyone else looking to resolve this issue should visit the updated version at <a href="http://seigafuse.com/2010/08/11/barracuda-plugin-for-nagios-v3/" rel="nofollow">http://seigafuse.com/2010/08/11/barracuda-plugin-for-nagios-v3/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray</title>
		<link>http://seigafuse.com/2007/10/19/nagios-plugin-for-barracuda-spam-firewalls/comment-page-1/#comment-18669</link>
		<dc:creator>Ray</dc:creator>
		<pubDate>Mon, 02 Aug 2010 02:20:47 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=38#comment-18669</guid>
		<description>Hi Mike,

Its Ray again! hope things are well.

I am having problems with my current Nagios configuration.

I am not sure what went wrong... when I type in check_cuda5 xxxx.xxx.xxxx.xxxx public in 10 30 it displays 
IN Critical - 0 messages queued &#124;MailINQueue=0;10;30root@CHILMELLX01:

I&#039;ve checked the SNMP connection with SNMP tools - I cant figure out this issue! can you please help! does the newer barracuda firmware affect this script? 

Thanks!

-Ray</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>Its Ray again! hope things are well.</p>
<p>I am having problems with my current Nagios configuration.</p>
<p>I am not sure what went wrong&#8230; when I type in check_cuda5 xxxx.xxx.xxxx.xxxx public in 10 30 it displays<br />
IN Critical &#8211; 0 messages queued |MailINQueue=0;10;30root@CHILMELLX01:</p>
<p>I&#8217;ve checked the SNMP connection with SNMP tools &#8211; I cant figure out this issue! can you please help! does the newer barracuda firmware affect this script? </p>
<p>Thanks!</p>
<p>-Ray</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://seigafuse.com/2007/10/19/nagios-plugin-for-barracuda-spam-firewalls/comment-page-1/#comment-18401</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 09 Jun 2010 13:59:34 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=38#comment-18401</guid>
		<description>In #4 where you defined the service check command, did you just leave out the SNMP community string so you wouldn&#039;t disclose it, or is it actually not there in the service check definition.  You will need a community string passed or the SNMP check won&#039;t work.  

The plugin really should catch this and not give you a OK result... I will try to take a look at that when I get a few minutes.  But in the meantime if you resolve the lack of a community string that should resolve the issue.  If you really do have a community string in there, then I would suggest running the command from the command line as the account nagios runs under and seeing what you get.  Post results if that is the case and I will try to assist you.


Mike</description>
		<content:encoded><![CDATA[<p>In #4 where you defined the service check command, did you just leave out the SNMP community string so you wouldn&#8217;t disclose it, or is it actually not there in the service check definition.  You will need a community string passed or the SNMP check won&#8217;t work.  </p>
<p>The plugin really should catch this and not give you a OK result&#8230; I will try to take a look at that when I get a few minutes.  But in the meantime if you resolve the lack of a community string that should resolve the issue.  If you really do have a community string in there, then I would suggest running the command from the command line as the account nagios runs under and seeing what you get.  Post results if that is the case and I will try to assist you.</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kostapappas</title>
		<link>http://seigafuse.com/2007/10/19/nagios-plugin-for-barracuda-spam-firewalls/comment-page-1/#comment-18400</link>
		<dc:creator>kostapappas</dc:creator>
		<pubDate>Wed, 09 Jun 2010 07:34:59 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=38#comment-18400</guid>
		<description>thanks for the plugin... 
Worked for me with the follows
1. put all &quot;downloands&quot; files (2 php) at /usr/local/nagios/libexec 
2. change privilages on thoses 2 files for user nagios to read-write (and everyone!). Make sure that check_cuda5.php is executable. 
3. gedit /usr/local/nagios/etc/objects/commands.cfg and put at the end : 
define command {
command_name Check_Cuda_Queues
command_line $USER1$/check_cuda5  $HOSTADDRESS$ public $ARG1$ $ARG2$ $ARG3$
}
Note that i removed the .php. 
4. gedit /usr/local/nagios/etc/objects/localhost.cfg and put
define host{
        use        linux-server	 ; Inherit default values from a template
        host_name  baracuda  	; The name we’re giving to this host
        alias      baracuda	   ; A longer name associated with the host
        address    10.10.10.3      ; IP address of the host
}

define service {
service_description Check Barracuda Outbound Mail Queue
use generic-service
host_name baracuda
check_command Check_Cuda_Queues!in!350!500
}

5. check if all is ok.
 /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

6. restart nagios.
The problem i have now is that
Current Status:	  OK  
(No output returned from plugin)
Warning: snmpget(): No response from 10.10.10.3 in /usr/local/nagios/libexec/check_cuda5 on line 22
IN OK - 0 messages queued

is normal the No output returned.. but it&#039;s says In OK -0 messages queed
(isn&#039;t that an output)?</description>
		<content:encoded><![CDATA[<p>thanks for the plugin&#8230;<br />
Worked for me with the follows<br />
1. put all &#8220;downloands&#8221; files (2 php) at /usr/local/nagios/libexec<br />
2. change privilages on thoses 2 files for user nagios to read-write (and everyone!). Make sure that check_cuda5.php is executable.<br />
3. gedit /usr/local/nagios/etc/objects/commands.cfg and put at the end :<br />
define command {<br />
command_name Check_Cuda_Queues<br />
command_line $USER1$/check_cuda5  $HOSTADDRESS$ public $ARG1$ $ARG2$ $ARG3$<br />
}<br />
Note that i removed the .php.<br />
4. gedit /usr/local/nagios/etc/objects/localhost.cfg and put<br />
define host{<br />
        use        linux-server	 ; Inherit default values from a template<br />
        host_name  baracuda  	; The name we’re giving to this host<br />
        alias      baracuda	   ; A longer name associated with the host<br />
        address    10.10.10.3      ; IP address of the host<br />
}</p>
<p>define service {<br />
service_description Check Barracuda Outbound Mail Queue<br />
use generic-service<br />
host_name baracuda<br />
check_command Check_Cuda_Queues!in!350!500<br />
}</p>
<p>5. check if all is ok.<br />
 /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg</p>
<p>6. restart nagios.<br />
The problem i have now is that<br />
Current Status:	  OK<br />
(No output returned from plugin)<br />
Warning: snmpget(): No response from 10.10.10.3 in /usr/local/nagios/libexec/check_cuda5 on line 22<br />
IN OK &#8211; 0 messages queued</p>
<p>is normal the No output returned.. but it&#8217;s says In OK -0 messages queed<br />
(isn&#8217;t that an output)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Uncle Lumpy</title>
		<link>http://seigafuse.com/2007/10/19/nagios-plugin-for-barracuda-spam-firewalls/comment-page-1/#comment-18376</link>
		<dc:creator>Uncle Lumpy</dc:creator>
		<pubDate>Thu, 03 Jun 2010 10:45:19 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=38#comment-18376</guid>
		<description>Top Plugin - works a treat
For Ubuntu, i needed to install php5-cli and php5-snmp, copy teh plugin to /usr/local/nagios/libexec and make sure that i define the plugin something like: 

define command {
command_name Check_Cuda_Queues
command_line $USER1$/check_cuda.php $HOSTADDRESS$ public $ARG1$ $ARG2$ $ARG3$
}

make sure that it is check_cuda.php!
I can then call the check as:

define service {
service_description 	Check Barracuda Outbound Mail Queue
use 			generic-service
host_name		Barracuda-In,Barracuda-Out
check_command 		Check_Cuda_Queues!in!350!500
}</description>
		<content:encoded><![CDATA[<p>Top Plugin &#8211; works a treat<br />
For Ubuntu, i needed to install php5-cli and php5-snmp, copy teh plugin to /usr/local/nagios/libexec and make sure that i define the plugin something like: </p>
<p>define command {<br />
command_name Check_Cuda_Queues<br />
command_line $USER1$/check_cuda.php $HOSTADDRESS$ public $ARG1$ $ARG2$ $ARG3$<br />
}</p>
<p>make sure that it is check_cuda.php!<br />
I can then call the check as:</p>
<p>define service {<br />
service_description 	Check Barracuda Outbound Mail Queue<br />
use 			generic-service<br />
host_name		Barracuda-In,Barracuda-Out<br />
check_command 		Check_Cuda_Queues!in!350!500<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray</title>
		<link>http://seigafuse.com/2007/10/19/nagios-plugin-for-barracuda-spam-firewalls/comment-page-1/#comment-17862</link>
		<dc:creator>Ray</dc:creator>
		<pubDate>Wed, 17 Mar 2010 01:54:01 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=38#comment-17862</guid>
		<description>I can confirm that this update does work on php5 and php5-snmp

Anyone that uses the barracuda and nagios must have this.

Thanks again Mike</description>
		<content:encoded><![CDATA[<p>I can confirm that this update does work on php5 and php5-snmp</p>
<p>Anyone that uses the barracuda and nagios must have this.</p>
<p>Thanks again Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://seigafuse.com/2007/10/19/nagios-plugin-for-barracuda-spam-firewalls/comment-page-1/#comment-17859</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 17 Mar 2010 00:02:48 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=38#comment-17859</guid>
		<description>The link is fixed now and I did send it to Ray via email as well.  My apologies for the problems Ray!

Mike</description>
		<content:encoded><![CDATA[<p>The link is fixed now and I did send it to Ray via email as well.  My apologies for the problems Ray!</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray</title>
		<link>http://seigafuse.com/2007/10/19/nagios-plugin-for-barracuda-spam-firewalls/comment-page-1/#comment-17858</link>
		<dc:creator>Ray</dc:creator>
		<pubDate>Tue, 16 Mar 2010 23:43:43 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=38#comment-17858</guid>
		<description>Hi Mike,

I am trying to download the link, but the link is down, I am hanging to download this!!</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>I am trying to download the link, but the link is down, I am hanging to download this!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The check_cuda plugin for Nagios has been updated &#124; seigafuse.com</title>
		<link>http://seigafuse.com/2007/10/19/nagios-plugin-for-barracuda-spam-firewalls/comment-page-1/#comment-17855</link>
		<dc:creator>The check_cuda plugin for Nagios has been updated &#124; seigafuse.com</dc:creator>
		<pubDate>Tue, 16 Mar 2010 13:38:09 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=38#comment-17855</guid>
		<description>[...] of the plugin now includes a version that functions under PHP5, it can be found on this site here.    Posted March 16, 2010 by Mike. Comments and trackbacks are open. Follow the comments feed.   [...]</description>
		<content:encoded><![CDATA[<p>[...] of the plugin now includes a version that functions under PHP5, it can be found on this site here.    Posted March 16, 2010 by Mike. Comments and trackbacks are open. Follow the comments feed.   [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://seigafuse.com/2007/10/19/nagios-plugin-for-barracuda-spam-firewalls/comment-page-1/#comment-17854</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 16 Mar 2010 13:23:18 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=38#comment-17854</guid>
		<description>Ray,

Sorry it took me a while to do this, but I did just actually test the script under PHP5.  I don&#039;t currently have access to Barracuda firewalls, so I could only replicate and resolve the issue you were seeing, not fully test.  Strictly speaking the script SHOULD have worked under PHP5 without any modifications.  But, I got the same results you did when I ran it from the command line under PHP5.  After a bit of testing and experimentation all I basically did was create a new file with a working shebang line and a stupid little hello world to just confirm the shebang line was the source of the problem.  Then I pasted in the other portion of the script without any other changes and I got the expected results.  The download link in the post above now points to a new zip file with a new file called check_cuda5.  Thanks for letting me know and being patient/persistent.

Mike</description>
		<content:encoded><![CDATA[<p>Ray,</p>
<p>Sorry it took me a while to do this, but I did just actually test the script under PHP5.  I don&#8217;t currently have access to Barracuda firewalls, so I could only replicate and resolve the issue you were seeing, not fully test.  Strictly speaking the script SHOULD have worked under PHP5 without any modifications.  But, I got the same results you did when I ran it from the command line under PHP5.  After a bit of testing and experimentation all I basically did was create a new file with a working shebang line and a stupid little hello world to just confirm the shebang line was the source of the problem.  Then I pasted in the other portion of the script without any other changes and I got the expected results.  The download link in the post above now points to a new zip file with a new file called check_cuda5.  Thanks for letting me know and being patient/persistent.</p>
<p>Mike</p>
]]></content:encoded>
	</item>
</channel>
</rss>

