<?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>Fri, 25 Jun 2010 02:16:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<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>
	<item>
		<title>By: Ray</title>
		<link>http://seigafuse.com/2007/10/19/nagios-plugin-for-barracuda-spam-firewalls/comment-page-1/#comment-17851</link>
		<dc:creator>Ray</dc:creator>
		<pubDate>Tue, 16 Mar 2010 06:17:57 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=38#comment-17851</guid>
		<description>Hi Mike,

Yes this matches the location,

I think the issue is that I installed php5 and php5snmp

I think this script is designed for php4, is there a link I can use to install php4, I have ubuntu installed and cant find it anywhere in the synaptic manager, unless you think its something else?

Is there anything else I need to install on this system, the nagios plugins are installed also...</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>Yes this matches the location,</p>
<p>I think the issue is that I installed php5 and php5snmp</p>
<p>I think this script is designed for php4, is there a link I can use to install php4, I have ubuntu installed and cant find it anywhere in the synaptic manager, unless you think its something else?</p>
<p>Is there anything else I need to install on this system, the nagios plugins are installed also&#8230;</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-17849</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 15 Mar 2010 12:00:46 +0000</pubDate>
		<guid isPermaLink="false">http://seigafuse.com/?p=38#comment-17849</guid>
		<description>For some reason it seems to be trying to execute what should be considered a passed parameter.  The first line of the check scripts is:

#!/usr/bin/php -q


Does this match the location of your php binary/executable?  Perhaps your installation of php is in a different location?  If so you will need to edit the script to point to your php install.</description>
		<content:encoded><![CDATA[<p>For some reason it seems to be trying to execute what should be considered a passed parameter.  The first line of the check scripts is:</p>
<p>#!/usr/bin/php -q</p>
<p>Does this match the location of your php binary/executable?  Perhaps your installation of php is in a different location?  If so you will need to edit the script to point to your php install.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
