<div>Hey Jon,</div>
<div>&nbsp;</div>
<div>You are asking something too specific.</div>
<div>If you want to monitor your PRI, its not so difficult to script.</div>
<div>&nbsp;</div>
<div>&lt;?</div>
<div>$checkPRI = exec(&quot;asterisk -rx &#39;pri show spans&#39;&quot;);</div>
<div>if (ereg(&#39;/^Down/&#39;, $checkPRI, $match) {</div>
<div>echo &quot;OMG, someone call the ambulance\r\n&quot;;</div>
<div>echo $match;</div>
<div>} else {</div>
<div>echo &quot;working...&quot;;</div>
<div>}</div>
<div>?&gt;<br></div>
<div>See?</div>
<div>It doesnt need write something huge.</div>
<div>Hope it helps.</div>
<div>Thanks.<br></div>
<div class="gmail_quote">On Wed, Nov 19, 2008 at 2:29 PM, Jon Weisman <span dir="ltr">&lt;<a href="mailto:jweisman@ibell.net">jweisman@ibell.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div bgcolor="#ffffff">
<div><font face="Arial" size="2">Thanks Hakan,</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">I was kind of hoping I wouldn&#39;t have to &quot;write&quot; anything. Anybody else got something I could just use? </font></div>
<blockquote style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<div>
<div></div>
<div class="Wj3C7c">
<div style="FONT: 10pt arial">----- Original Message ----- </div>
<div style="BACKGROUND: #e4e4e4; FONT: 10pt arial"><b>From:</b> <a title="ella4ever@gmail.com" href="mailto:ella4ever@gmail.com" target="_blank">Hakan C</a> </div>
<div style="FONT: 10pt arial"><b>To:</b> <a title="asterisk-users@lists.digium.com" href="mailto:asterisk-users@lists.digium.com" target="_blank">Asterisk Users Mailing List - Non-Commercial Discussion</a> </div>
<div style="FONT: 10pt arial"><b>Sent:</b> Wednesday, November 19, 2008 7:07 AM</div>
<div style="FONT: 10pt arial"><b>Subject:</b> Re: [asterisk-users] Monitoring</div>
<div><br></div>
<div>Hello Jon,</div>
<div>&nbsp;</div>
<div>Maybe you can think about SNMP support in Asterisk.</div>
<div>Also you can develop custom applications in many languages or take a look to Nagios (<a href="http://www.nagios.org/" target="_blank">http://www.nagios.org/</a>)</div>
<div>&nbsp;</div>
<div>Try that command on your Asterisk box:</div>
<div>asterisk -rx &#39;pri show spans&#39;, it returns PRI status.</div>
<div>&nbsp;</div>
<div>Good lucks</div>
<div><br><br>&nbsp;</div>
<div class="gmail_quote">On Wed, Nov 19, 2008 at 1:57 PM, Jon Weisman <span dir="ltr">&lt;<a href="mailto:jweisman@ibell.net" target="_blank">jweisman@ibell.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello all -<br><br>We are trying to implement some monitoring systems for our production<br>asterisk boxes. We use whats up gold for all our other stuff. I&#39;d like to be<br>
able to monitor the status of PRI&#39;s. For example if a PRI is in alarm, i&#39;d<br>like to get an e-mail notification. How are others accomplishing this?<br><br>Thanks,<br>Jon<br><br><br><br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br></div></div>
<p>
<hr>

<div class="Ih2E3d">
<p></p>_______________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br><br>asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></div>
<p></p></p></blockquote></div><br>_______________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br><br>
asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br>