<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6001.18148" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Thanks! </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'll give this a try</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=ella4ever@gmail.com href="mailto:ella4ever@gmail.com">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">Asterisk Users Mailing List -
Non-Commercial Discussion</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, November 19, 2008 8:17
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [asterisk-users]
Monitoring</DIV>
<DIV><BR></DIV>
<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></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>
<P>
<HR>
<P></P>_______________________________________________<BR>-- Bandwidth and
Colocation Provided by http://www.api-digital.com --<BR><BR>asterisk-users
mailing list<BR>To UNSUBSCRIBE or update options visit:<BR>
http://lists.digium.com/mailman/listinfo/asterisk-users</BLOCKQUOTE></BODY></HTML>