login | register
Wed 01 of Aug, 2007 [09:18 UTC]

voip-info.org

Search with Google
Search this site with Google. Results may not include recent changes.

Web www.voip-info.org
Shoutbox
  • Aykut, Wed 01 of Aug, 2007 [07:53 UTC]: Hi all, does anybody know about Thomson ST2030 SIP phone. I have upgraded it to latest version (1.56) but "Hold" and "Conf" features are not working after the upgrade ?? Do you know any solution or do you have Ver. 1.52 ?? Where can I find it?
  • Edward J Brown, Tue 31 of Jul, 2007 [23:33 UTC]: Has anybody experienced Choppy voice quality when using a Linksys SPA942 in an Asterisk Conference bridge? It works fine with my polycom and Cisco, but sucks with my Linksys.
  • www.astawerks.com, Fri 27 of Jul, 2007 [18:00 UTC]: does anyone use asterisk on top of clark connect? does it work good?
  • simon, Fri 27 of Jul, 2007 [14:16 UTC]: Hi All, Has anyone here managed to get the Cisco79x1 to successfully fail over to the backup proxy. I have 2 asterisk servers , handsets all register and function, except that backup proxy function doesn't work. Any working example would be very apprecia
  • Matthew Richmond, Thu 26 of Jul, 2007 [03:40 UTC]: using the page() application to page across our building...often the meetme conferences don't disconnect after the caller hangs up. Anyone else having this problem. (using Polycom phones)
  • Matthew Richmond, Wed 25 of Jul, 2007 [02:58 UTC]: thanks Nicholas Blasgen! I haven't worked with AGI before, but there's always a first! Thanks again!
  • Nicholas Blasgen, Tue 24 of Jul, 2007 [19:18 UTC]: Matthew Richmond, AGI will handle all that for you.
  • sam, Mon 23 of Jul, 2007 [16:39 UTC]: need help - certain voicemail extension will stop working and recording voicemail on asterisk - anyone know why and how to fix it? Thanks
  • john haji, Mon 23 of Jul, 2007 [14:55 UTC]: free calls to pakistan
  • bong, Sat 21 of Jul, 2007 [19:09 UTC]: hi good day to all can anyone help me how to configured the nortel sip to the signaling server and how to activate in mobile w/ sip compatible without mcs
Server Stats
  • Execution time: 0.36s
  • Memory usage: 2.23MB
  • Database queries: 33
  • GZIP: Disabled
  • Server load: 3.45

Asterisk monitoring

Asterisk monitoring


Now that you've built Asterisk around your entire life it might be a good idea to make sure it stays up!

Argus

The current version of Argus has builtin support for monitoring SIP and IAX2, as well as support for querying the asterisk manager interface. Argus can be configured to notify someone if a PRI goes down, or if asterisk goes off to la-la-land (etc).
Note: This doesn't appear to be supported in argus-3.3
2005/1/25 13:58:31 17314 ERROR: in file '/var/argus/config' on line 41 - Incomplete specification or unknown protocol for Service SIP
2005/1/25 13:58:31 17314 ERROR: in file '/var/argus/config' on line 40 - Incomplete specification or unknown protocol for Service IAX2
2005/1/25 13:58:31 17314 ERROR: in file '/var/argus/config' on line 39 - Incomplete specification or unknown protocol for Service Asterisk


ASTIX Webmonitor 2

ASTIX Webmonitor 2 is a Realtime Monitoring Tool for Asterisk Server, here you can see a ONLINE DEMO.

Cacti

Cacti is a general purpose monitoring application, one user has developed an Asterisk plugin. More information on this plugin can be found here.

Hobbit

Hobbit is a Big Brother compatible network monitor.

MRTG

  • A script and instructions on how to setup MRTG for graphing asterisk activity can be find here

Munin

  • Scripts for graphing Asterisk activity with Munin can be found here

Nagios

Notes documenting a simple Asterisk monitoring implementation utilizing Nagios:


  • Another Nagios plugin to test Asterisk via SIP using sipsak can be found here.

  • Official Nagios Plugins http://nagios.org/download/ have a plugin called contrib/check_asterisk.pl This does remote IAX2 checking as well as remote checking through the manager interface.


  • Yet another plugin to allow monitoring of concurrent calls for different protocols, or testing for IAX responsiveness can be found Here


  • Dev Nagios IAX2 plugin. Checks from remote, not the Manager Interface. Uses IAX2 POKE. Other options are there just commented out. This works but could be improved. http://odunix.org/pbx/

PacketIsland PacketSmart

Packet Island's PacketSmart http://www.packetisland.com provides an asterisk software agent, a VoIP sniffer micro-appliance and a web hosted management service that allows for detailed SIP, RTP, and call route performance monitoring for Asterisk VoIP calls. MSPs can do remote monitoring and analysis of asterisk client sites using this product.

SNMP

The Asterisk team has added SNMP support to Asterisk 1.4.





Other ideas

The manager interface sends events when a channel/span goes into alarm.
A simple app collecting this data should be easy to write

1. Installing a basic SNMP agent on each Linux box and using a central SNMP manager to monitor each node. This would give notice when a remote node became isolated from the monitoring network.

2. Rolling in Asterisk alarm logs into a syslog server or even as SNMP traps.

3. Writing a small app that simply interrogates those interfaces that are important to the operation (iax2/udp, sip/udp, etc, send a crafted pkt and interpret the returned result. Port not open is obvious, no response is obvious, incorrect response is not so obvious)

4. Test call to an outside number once per five minutes, hourly, or whatever trips your trigger (outside number only needs to respond with something that is predictable, doesn't have to be a person or company)

5. Monitoring logs looking for keywords (may take some time to identify the appropriate keywords) (e.g. Swatch or Logwatch)

It would seem logical for someone to write a res_snmp.c for asterisk that would expose a lot of asterisk's internal data. This would seem a logical step toward writing fully functional monitoring applications as well. The module would allow clients to add themselves to the list and receive traps, as well as check for the current status of various variables.




_Idea is ours and now need to write code....... please include code here ....... Nahid Hossain_




James Thompson: I'd suggest using something like Sipsak to actually do a SIP registration to verify the service is up.
You could use the Whats Up Gold send/expect to connect to Linux box, run sipsak, and then check the results.

<brainstorming>
Okay, this may be over the top, but here goes. Write an asterisk application that sends (and receives) status information to another box over the PSTN. My idea is not only to use this as a way to verify that * is running, but asa way to RELIABLY tell that a remote * box is actively accepting incoming calls. It wouldn't have to be anything complicated, just a heartbeat and some basic details to let the caller know that "yes, I'm alive and acceptingcalls over this line". Simplified protocol:

1) Monitoring box calls up and says (in DTMF):
#<my CallerID>
#<extension I am trying to reach>
#<I'm a machine, so reply in DTMF instead of voice>
#<the secret code is>#

2) The remote box says:
#<your CallerID>#<Your DNIS>
#<yes I will accept a call to thatnumber>#

3) Monitoring box acknowledges and disconnects

4) Remote box disconnects

5) Monitoring box decides whether it likes the answers it received and performs actions accordingly.
</brainstorming>
Hint: Do a "show application AlarmReceiver" and you are very close to what you brainstormed... I think...


TJH- (nicheware)
I've had some problems with peers losing their registrations, usually due to crappy ISP's with DNS problems.
This script tests if peers are up. (registered) I call it from a cron job. If a peer loses it's registration I receive an e-mail.

#!/bin/bash
for peername in peer_1 peer_2 peer_n
do
# note, next lines are "command substitution" - use backticks ` not quotations ' as appropriate
otpt=`/usr/sbin/asterisk -rx 'iax2 show peers' |grep $peername |grep Unspecified`
if [ -n "$otpt" ]; then
echo $otpt | mail -s "Asterisk peer: \"`echo -n $peername `\" has a problem." "you@yourdomain.com"
fi
done

Next I want to grab peers previous IP addresses and include those along with the message that gets sent when they go
down. Sometimes if their asterisk is just hosed they will still have the same IP- so I can ssh in and fix it. Also it would be

nice to send either an electronic page or even a call file to alert me of problems - although I don't want the phone ringing
at 4AM.

-TJH

HAL

grep has problems with not printable chars, so you should use "strings -a" in your script.
otpt=`/usr/sbin/asterisk -rx 'iax2 show peers' |strings -a| grep $peername |grep Unspecified`

HAL




We made a small asterisk monitor by using java-asterisk. We Monitor the Zap Status and 5038 port. It will be usefull maybe.
You can get it from Lypus web site

Lypus - Wi-fi Location Based Solutions
Nicolas Craineguy
contact@lypus.com


Another note from a user on a large scale:

We're using Zabbix to run local UserParameter commands to monitor Asterisk. We use asterisk -rx commands to output what we want and then return the result to the Zabbix monitoring server. There's been small problems with too many remote connections at once crashing asterisk (anyone get that close to fixed?), and some problems with returning values because of grep, awk, sed, and/or wc not returning valid numeric values, but overall the idea is solid.

See also:



Created by yawns, Last modification by Chris Widger on Sat 19 of May, 2007 [20:25 UTC]

Comments Filter

Nagios with SMS Server Tools

by joanna liza mariazeta on Wednesday 14 of February, 2007 [10:15:06 UTC]
In monitoring our servers including Asterisk, we used Nagios and SMS Server Tools, it is an SMS Gateway software which can send and receive short messages through GSM modems and mobile phones. Nagios will monitor our servers and if ever one of them went down, it will call the script that we created it will output a text file and this text file will be dump into the outgoing directory of SMS Server Tools. SMS Server Tools will then process it and send it via SMS to the Systems Admistrator or whoever is incharged. With this way, we can be immediately notified and respond accordingly.

Asterisk res_snmp on suse 9.1

by Tim Panton on Sunday 12 of March, 2006 [19:48:29 UTC]
<p>There is now a res_snmp module in the svn trunk. It works and tells you a fair amount about the state of your asterisk.</p>
<p>Here are my notes on building it on Suse 9.1</p>


<p>The default suse 9.1 install of netsnmp does not 'play-nice'
with the asterisk res_snmp build.
<br/>
Even updating the net-snmp packages (core and devel)
does not work.</p>

<ol>Here's what I did to make it work:
<li>uninstalled net-snmp and net-snmp-devel rpms</li>
<li>downloaded net-snmp-5.3.0.1.tar.gz and unpacked it.</li>
<li>fix some SUSE weirdness in the .so names</li>
<pre>cd /usr/lib; ln -s librpmio-4.1.so librpmio.so; ln -s librpm-4.1.so librpm.so</pre>
<li>built net-snmp with </li>
<pre>./configure --prefix /usr</pre>
(note that installing to the default location /usr/local
does not work. The asterisk build assumes the headers
are in /usr/include)
<li> download asterisk svn-trunk and build asterisk</li>
<li> edit the snmpd.conf to say (minimally)</li>
<pre>
rocommunity public
master agentx
</pre>

<li>edit /etc/asterisk/res_snmp.conf to say:</li>
<pre>

subagent = yes
enabled = yes
</pre>

<li>now start snmpd </li>

<li>start asterisk </li>
<li>test res_snmp</li>
<pre>
snmpgetnext -v 1 127.0.0.1 -c public .1.3.6.1.4.1.22736

</pre>
you should get something that looks like:
<pre>
SNMPv2-SMI::enterprises.22736.1.1.1.0 = STRING: "SVN-trunk-r11914M"</pre>
</li>
that's the asterisk version you have just built.
</ol>
<p>

I have not run res_snmp for more than a few minutes, so I can't tell how
useful/stable it will be.
</p>

<p>
I plan to write some simple monitoring tools that use snmp when I get the time.....
</p>

love to see something inside logwatch

by sjobeck on Friday 27 of May, 2005 [04:58:36 UTC]
(:smile:)

We use logwatch a lot here, think it is pretty slick, & I know that it doesnt do realtime monitoring, but great for collecting statistics, and great for having someone come in each morning, glance through a few emails & know what is going on.

If any one gets any asterisk stuff in to logwatch, do please let me know, would be in your debt. I'm not the programmer I wish I was, but I will take a crack at it myself, and post my results.

Peace. Love. Linux.


Edit

More SNMP ideas

by Anonymous on Wednesday 21 of April, 2004 [23:09:34 UTC]

There is an SNMP extension to Asterisk, but it's still in what I'd call the "Beta" stages. Please try it out, create patches, and report back to the author.

http://www.faino.it/en/ast-ax-snmpd.html

Please update this page with new information, just login and click on the "Edit" or "Add Comment" button above. Get a free login here: Register Thanks! - support@voip-info.org

Page Changes | Comments

Sponsored by:

Terms of Service Privacy Policy
© 2003-2007 Arte Marketing, Inc.

Powered by bitweaver