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.
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
I’m using opennms and It’s working fine.
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:
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.
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.
You can use queue-stats http://www.asternic.org/stats/demo/
they has a free version
Queuemetrics works well for this also, and can be installed on a separate machine/VM.
From: email@example.com [mailto:firstname.lastname@example.org] Hello,
There is nagios plugin
Check channels/calls, with no concern about limits.
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
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
nagios ALL=(ALL) NOPASSWD:
You can easily edit this to add more monitoring
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.
Try with http://www.observium.org (Observium).
You can customize script to report into Observium’s dashboard.