Monitoring Asterisk 1.8

Home » Asterisk Users » Monitoring Asterisk 1.8
Asterisk Users 12 Comments

Hello,

i’m looking for suggestions to monitor Asterisk Server? I installed Nagios but no success, I do prefer not to install any web server on the server running Asterisk.

Thanks in advance.
-Motty

12 thoughts on - Monitoring Asterisk 1.8

  • Monitor what parts exactly?

    Right this moment I’m in the process of installing Munin and the Asterisk plugin to monitor channel usage, SIP connections, and the like. The Munin server is running on a separate machine with just the node software on Asterisk.

  • Thanks for the suggestion Carlos,

    do you have a HowTo? can you point me to one.

    I unsuccessfully follow one found using google. I’m using CentOS 6.0

    Thanks, Motty

  • It’s not quick or simple, but there’s decent documentation. I haven’t been saving the links I used, so I can’t just give you specific places to look, other than the best Asterisk plugin:

    https://github.com/munin-monitoring/contrib/blob/master/plugins/asterisk/asterisk

    TIP: Use chmod 755 on the plugin files after you install them.

    As to installing Munin itself, just start from their web site and get that running. You will then install the Asterisk plugin, create an AMI user for the plugin to connect to, and set the parameters for the plugin to the server IP and AMI account you just created.

    Right now I’m working on being able to monitor the servers without installing the plugin on the Asterisk box. This will give Asterisk stats only, but no server stats. Again, what specific things do you want to monitor?

  • Thanks for your help; I just want to monitor the queue, calls on hold average time, incoming out going call, I only want to monitor Asterisk, not the server Asterisk in running on.

    thanks,
    -Motty

  • Then you want a queue manager and reporting tool. Usually when people say
    “monitor Asterisk” is has to do with the state of the system itself. You should look at http://www.asternic.net and similar products. Munin will tell you channels in use, but not the other stuff you want.

  • Queuemetrics works well for this also, and can be installed on a separate machine/VM.

    http://www.queuemetrics.com

    Bruce

    From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] Hello,

    i’m looking for suggestions to monitor Asterisk Server? I installed Nagios but no success, I do prefer not to install any web server on the server running Asterisk.

    Thanks in advance.
    -Motty

  • There is nagios plugin

    check_asterisk_channels

    Examples:

    Check channels/calls, with no concern about limits.

    check_asterisk_channels

    Check channels/calls. Issue a warning if there are more than 10 active channels, and a critical if there are more than 15 active channels.

    check_asterisk_channels -w 10 -c 15

    Caveats:

    This plugin calls the asterisk executable directly, so make sure that the user executing this script has appropriate permissions! Usually the asterisk binary can only be run by the asterisk user or root. To grant the nagios user permissions to execute the script, try something like the following in your
    /etc/sudoers file:
    nagios ALL=(ALL) NOPASSWD:
    /path/to/plugins/directory/check_asterisk_channels

    You can easily edit this to add more monitoring

    Jai Rangi

  • We use Zabbix as monitoring tool and SNMP to get statistics and other info from Asterisk. for this you will have to make sure the snmp module for asterisk gets compiled and the Asterisk MIB is used.

    Regards, Michel.