<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=671351219-19092005><FONT face=Arial
color=#0000ff size=2>I personally use Zabbix, and custom scripts that call
asterisk -rx or the manager API and return numeric digits. For instance, I use
"asterisk -rx 'sip show peers' | grep --text -i 'OK' | wc -l" to show me how
many users are connected at once, and test for no data return after 60 seconds
for deadlock catching. (Asterisk does not always play nice and return the data
you expect). </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=671351219-19092005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=671351219-19092005><FONT face=Arial
color=#0000ff size=2>Another example: "asterisk -rx 'show channels' | grep
--text -i 'active call' | awk '{print $1}' " (if I remember correctly) gives me
my number of active calls. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=671351219-19092005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=671351219-19092005><FONT face=Arial
color=#0000ff size=2>Hope this was somewhat helpful.....</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <B>On Behalf Of </B>Sig
Lange<BR><B>Sent:</B> Monday, September 19, 2005 2:58 PM<BR><B>To:</B>
Asterisk Users Mailing List - Non-Commercial Discussion<BR><B>Subject:</B>
[Asterisk-Users] Asterisk monitoring availability<BR></FONT><BR></DIV>
<DIV></DIV>I'm attempting to implement an acceptable asterisk monitoring
program. One method is with a simple program i've written (Adapted from the
perl one in the wiki).<BR><BR>One problem with this solution is the timeout I
expect a packet response. Currently it's set to 1 second, and I still
sometimes miss an IAX ping response. Which throws false alarms to my other
programs, SMS's, etc. What have others done to monitor asterisks
availability?<BR><BR>Thanks<BR><BR>-- <BR>Sig Lange<BR><A
href="http://www.signuts.net/">http://www.signuts.net/</A>
</BLOCKQUOTE></BODY></HTML>