<?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 to Check the Status of PRI Lines in Asterisk</title>
	<atom:link href="http://www.barryodonovan.com/index.php/2007/11/02/asterisk-pri-nagios/feed" rel="self" type="application/rss+xml" />
	<link>http://www.barryodonovan.com/index.php/2007/11/02/asterisk-pri-nagios</link>
	<description>Thoughts, ramblings and rants...</description>
	<lastBuildDate>Fri, 27 Aug 2010 12:22:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Ron Davis</title>
		<link>http://www.barryodonovan.com/index.php/2007/11/02/asterisk-pri-nagios/comment-page-1#comment-12955</link>
		<dc:creator>Ron Davis</dc:creator>
		<pubDate>Wed, 17 Jun 2009 14:55:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.barryodonovan.com/index.php/2007/11/02/nagios-plugin-to-check-the-status-of-pri-lines-in-asterisk/#comment-12955</guid>
		<description>Very helpful with one I was writing (non-Asterisk). Thanks for sharing. 

My problem was that I was doing a &quot;return&quot; instead of an &quot;exit&quot; so Nagios wasn&#039;t seeing the status changes. I guess that would be obvious to a real programmer...I&#039;m just a systems guy. :)

Thanks again.</description>
		<content:encoded><![CDATA[<p>Very helpful with one I was writing (non-Asterisk). Thanks for sharing. </p>
<p>My problem was that I was doing a &#8220;return&#8221; instead of an &#8220;exit&#8221; so Nagios wasn&#8217;t seeing the status changes. I guess that would be obvious to a real programmer&#8230;I&#8217;m just a systems guy. <img src='http://www.barryodonovan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joe</title>
		<link>http://www.barryodonovan.com/index.php/2007/11/02/asterisk-pri-nagios/comment-page-1#comment-12627</link>
		<dc:creator>joe</dc:creator>
		<pubDate>Tue, 12 May 2009 16:01:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.barryodonovan.com/index.php/2007/11/02/nagios-plugin-to-check-the-status-of-pri-lines-in-asterisk/#comment-12627</guid>
		<description>i keep getting a
	(Return code of 127 is out of bounds - plugin may be missing) 

define service{
        use                             generic-service
        host_name                       20427 
        service_description             Asterisk PRI1
        check_command                   check_asterisk_pri!admin!pass!2!1!4
	}

define command{
        command_name    check_asterisk_pri
        command_line    $USER1$/check_asterisk_pri -H $HOSTADDRESS$ -U $ARG1$ -P $ARG2$ -w $ARG3$ -c $ARG4$ -n $ARG5$
	}

any ideas?</description>
		<content:encoded><![CDATA[<p>i keep getting a<br />
	(Return code of 127 is out of bounds &#8211; plugin may be missing) </p>
<p>define service{<br />
        use                             generic-service<br />
        host_name                       20427<br />
        service_description             Asterisk PRI1<br />
        check_command                   check_asterisk_pri!admin!pass!2!1!4<br />
	}</p>
<p>define command{<br />
        command_name    check_asterisk_pri<br />
        command_line    $USER1$/check_asterisk_pri -H $HOSTADDRESS$ -U $ARG1$ -P $ARG2$ -w $ARG3$ -c $ARG4$ -n $ARG5$<br />
	}</p>
<p>any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barry O'Donovan</title>
		<link>http://www.barryodonovan.com/index.php/2007/11/02/asterisk-pri-nagios/comment-page-1#comment-9530</link>
		<dc:creator>Barry O'Donovan</dc:creator>
		<pubDate>Sat, 15 Mar 2008 11:26:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.barryodonovan.com/index.php/2007/11/02/nagios-plugin-to-check-the-status-of-pri-lines-in-asterisk/#comment-9530</guid>
		<description>Thanks Allen.

The &quot;&lt;code&gt;Content type: text/html&lt;/code&gt;&quot; indicates that you are using the CGI SAPI or an older version of php. See &lt;a href=&quot;http://www.php.net/manual/en/features.commandline.php&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/manual/en/features.commandline.php&lt;/a&gt; for a discussion.

In any case, it&#039;s a good point. I&#039;ll edit the script above and add &lt;code&gt;-q&lt;/code&gt; to ensure backward compatibility.

Thanks,
Barry.</description>
		<content:encoded><![CDATA[<p>Thanks Allen.</p>
<p>The &#8220;<code>Content type: text/html</code>&#8221; indicates that you are using the CGI SAPI or an older version of php. See <a href="http://www.php.net/manual/en/features.commandline.php" rel="nofollow">http://www.php.net/manual/en/features.commandline.php</a> for a discussion.</p>
<p>In any case, it&#8217;s a good point. I&#8217;ll edit the script above and add <code>-q</code> to ensure backward compatibility.</p>
<p>Thanks,<br />
Barry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Allen</title>
		<link>http://www.barryodonovan.com/index.php/2007/11/02/asterisk-pri-nagios/comment-page-1#comment-9521</link>
		<dc:creator>Allen</dc:creator>
		<pubDate>Fri, 14 Mar 2008 19:03:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.barryodonovan.com/index.php/2007/11/02/nagios-plugin-to-check-the-status-of-pri-lines-in-asterisk/#comment-9521</guid>
		<description>Thanks for publishing the script.  I have found it useful.  It works well with Nagios 2.9.

For my setup, the Status Information reported by nagios showed &quot;Content type: text/html&quot; instead of useful results. I did change the top line of the script from &quot;#! /usr/bin/php&quot; to &quot;#! /usr/bin/php -q&quot; to suppress the header.  Status Information in Nagios now shows &quot;All 1 PRI(s) found are up and provisioned.&quot;

Allen</description>
		<content:encoded><![CDATA[<p>Thanks for publishing the script.  I have found it useful.  It works well with Nagios 2.9.</p>
<p>For my setup, the Status Information reported by nagios showed &#8220;Content type: text/html&#8221; instead of useful results. I did change the top line of the script from &#8220;#! /usr/bin/php&#8221; to &#8220;#! /usr/bin/php -q&#8221; to suppress the header.  Status Information in Nagios now shows &#8220;All 1 PRI(s) found are up and provisioned.&#8221;</p>
<p>Allen</p>
]]></content:encoded>
	</item>
</channel>
</rss>
