<div>Hey Jon,</div>
<div> </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> </div>
<div><?</div>
<div>$checkPRI = exec("asterisk -rx 'pri show spans'");</div>
<div>if (ereg('/^Down/', $checkPRI, $match) {</div>
<div>echo "OMG, someone call the ambulance\r\n";</div>
<div>echo $match;</div>
<div>} else {</div>
<div>echo "working...";</div>
<div>}</div>
<div>?><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"><<a href="mailto:jweisman@ibell.net">jweisman@ibell.net</a>></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> </div>
<div><font face="Arial" size="2">I was kind of hoping I wouldn't have to "write" 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> </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> </div>
<div>Try that command on your Asterisk box:</div>
<div>asterisk -rx 'pri show spans', it returns PRI status.</div>
<div> </div>
<div>Good lucks</div>
<div><br><br> </div>
<div class="gmail_quote">On Wed, Nov 19, 2008 at 1:57 PM, Jon Weisman <span dir="ltr"><<a href="mailto:jweisman@ibell.net" target="_blank">jweisman@ibell.net</a>></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'd like to be<br>
able to monitor the status of PRI's. For example if a PRI is in alarm, i'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> <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> <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> <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>