Monitoring Asterisk with Munin

Share on Twitter Digg this story Click to view a printable version Wed, 06 Jan 2010 21:22:41 -0400

thumnail

I had a few requests for these munin plugins after some discussion on one of the Asterisk lists and thought people might like them.

There are four scripts (three of which are based on a script by Paul McCormack.

Basically you just add them the same way as normal munin plugins.

By the way, if you're using Debian, installing munin is as simple as apt-get install munin and apt-get install munin-node.

So, the plugins:

asterisk_channels

This plugin displays concurrent Asterisk channels.

asterisk_iax_peers

This plugin shows IAX peers (online/offline/unmonitored online/offline)

asterisk_sip_peers

This plugin shows SIP peers (online/offline/unmonitored online/offline)

munin_asr_php

This one connects to the MySQL CDR database and shows how things have been over the last hour (number of calls answered, not answered, busy, congested).

You'll need to set your CDR database/table and the MySQL connection details in this one.

Let me know if you have any questions.


You haven't voted yet! Vote:
Current Rating: 9.78/10 (9 votes)

Comments (12 posted)


CommentInstall Problem
Written by switch - http://lynks.ru (January 8, 2010, 11:37 am)

How correctly to put plug-ins?
I have copied them in /usr/share/munin/plugins,
Has made symbolical references in /etc/munin/plugins, then

/usr/share/munin/munin-update - force-root
/usr/share/munin/munin-html - force-root
/usr/share/munin/munin-graph - force-root
service munin-node restart

Graphs have appeared, but the data - is not present.
What to do?


CommentHow To Install And Configure Plugins
Written by Adrian (January 8, 2010, 11:37 am)

how to install and configure these plugins? you have a tutorial?


CommentPlugins
Written by Matt Riddell - http://www.venturevoip.com (January 8, 2010, 11:39 am)

Yeah, sounds like you're doing the right thing - basically just symlink the plugins like any other.

Note that the plugins can be run on their own too - you don't need munin.

So, first step is to make sure they're executable (i.e. chmod +x filename)

Next, just run the plugin (i.e. ./munin_asr_php)

It should return the data - if it doesn't something's not right - although I suspect it's just a permissions issue.


CommentSame Issue
Written by pguima (January 12, 2010, 3:31 pm)

I did the same thing as switch, but still no graph and no data. I'm trying to run this on trixbox. Any help?


CommentPlugins
Written by Matt Riddell - http://www.venturevoip.com (January 12, 2010, 3:33 pm)

Did you run the plugins manually?

I.E. change to their location and type ./astersk_sip_peers


CommentRestart Munin
Written by UKnewWho (January 25, 2010, 11:49 am)

After you install the scripts to the munin folder (/usr/share/munin/plugins) then symbolic link (ln -s /user/share/munin/plugs/munin_asr_php /etc/munin/plugsins) your need to restart the munin service /etc/init.d/munin restart for munin to see the new scripts


CommentJrobin Files
Written by Sarika Bhosale - http://Opennms (May 24, 2010, 1:30 pm)

Hi This is Sarika
How to open Jrobin file in windows..
the comamand given in Opennms documentation is not working in windows.. anybody knows how to do it?


CommentContribute To Munin-exchange
Written by Troex - http://elrte.org (February 25, 2011, 2:55 pm)

Why don't you post this plugins to http://exchange.munin-monitoring.org/ ? It was hard to find them.


CommentAlternative Asterisk/Munin Plugin Source
Written by GMc - http://rodolphe.quiedeville.org/hack/munin/asterisk-1.4/ (February 25, 2011, 2:55 pm)

http://rodolphe.quiedeville.org/hack/munin/asterisk-1.4/


CommentGraphs
Written by Matt Riddell - http://www.venturevoip.com (April 11, 2011, 11:48 am)

Hmmm strange, looks like the script is returning the correct data - you sure the file is executable and in the right place?


Comment
Written by varnav (July 1, 2011, 11:45 am)

Maybe user, under which the script is run, has insufficient permissions.

Add to plugins.conf

[asterisk*]
user root


CommentMultigraph Munin Asterisk Plugin
Written by Ali Onur Uyar - http://aouyar.github.com/PyMunin (July 1, 2011, 11:45 am)

I've recently published some python code for a Multigraph Munin Plugin for monitoring Asterisk. I have not added any detailed installation instructions yet, but you might still give a try. Just make sure the pysysinfo folder is copied to a directory in the Python module search path.

Bye

Comments
Name:
Subject:
Website:
Message: 

Similar Articles (Based on Title)

Asterisk Installation CD set. with 24/7 monitoring - March 27, 2005
Paul Mahler of signate.com has posted a note to the Asterisk-Users list on a new commercial Asterisk CD Set.

*starShop: Open Source Calling Shop Monitoring System - August 19, 2005
The writers of a new open source call shop monitoring system have mailed us to let you know of their first release.

New GTK Gui for Monitoring and Administration - July 12, 2006
j has posted details of a new GUI for Asterisk.

Tutorial: Simple queue and agent debug monitoring - October 11, 2006
Lenz has posted another tutorial, this one on receiving just the information you need in a call center.

Asterisk RTP Monitoring - September 25, 2009
Tzafrir has committed some documentation to his branch for RTP Monitoring.

Monitoring Asterisk with OpenNMS - January 8, 2010
The OpenNMS blog has an article on monitoring Asterisk with OpenNMS using SNMP.

Asterisk Monitoring with iPhone and iPod touch - February 12, 2010
For the past couple of weeks I have been working on an app that allows you to monitor and restart Asterisk servers.

Interview With Flash Operator Panel Developer - September 19, 2004
Interview with Nicolas Gudino, the author of the Flash Operator Panel for Asterisk.

Interview With FreeBSD Developer - September 21, 2004
Interview With Dr Rich Murphy of FreeBSD and Asterisk FreeBSD fame

Link: Article with Asterisk running home server - October 2, 2004
Running a Wireless network in your neighbourhood with Asterisk terminating VOIP calls.

Asterisk-Users: Request for IAX debug session transcript with IAXy - October 11, 2004
Held needed getting IAXy debug's for phone manufacturer's implementation of IAX

DUNDi is available for use with v1-0 - October 23, 2004
BKW has released a .tar.gz file so that you can use DUNDi with Asterisk 1.0

Asterisk-Dev: patch for chan_capi to compile with latest CVS - November 18, 2004
Frank Sautter has created a patch to allow chan_capi-0.3.5 to compile against CVS-HEAD and adds capiAnswerFax patch

Interview with Mark Spencer - November 26, 2004
We have managed to get an interview with Mark Spencer AKA Markster. Mark Spencer is the creator of Asterisk and by far the most active developer.


Original Content (C) 2004-2010 Matt Riddell
Back 5  Feed Add
to
Google Subscribe with Bloglines
Go to today

Icons by: FastIcon.com


rana-dtmf-rtp-duration - adventures in DTMF/RTP
August 22, 2011 Average Vote: 10
Olle has posted details of some work he is doing on DTMF.

Asterisk Version 1.0 released at Astricon
September 24, 2004 Average Vote: 10
Mark Spencer Releases Asterisk Version 1.0 during his keynote speech

Asterisk 10.0.0-rc1 Now Available
November 11, 2011 Average Vote: 10
The Asterisk Development Team is pleased to announce the first release candidate of Asterisk 10.0.0.

David Vossell: Asterisk Architecture
October 26, 2011 Average Vote: 10
The next discussion was from David on the structure of Asterisk internals

Asterisk 1.10 branch created
July 14, 2011 Average Vote: 10
At 8:34am New Zealand time this morning a branch named 1.10 was created.

oFono 1.0 has been released
November 10, 2011 Average Vote: 10
Steve Totaro has forwarded details of the latest release of a project called oFono.

Asterisk Trunk moves from Berkley DB to SQLite 3.
July 7, 2011 Average Vote: 10
While reading through the commit logs this morning I noticed that the planned change to SQLite 3 as the backend database has taken place.

Chapter on Asterisk Architecture
May 27, 2011 Average Vote: 10
Russell Bryant has posted a note about a chapter on Asterisk Architecture.

espeak module for Asterisk
August 22, 2011 Average Vote: 10
Lefteris Zafiris has posted details of a new version of the app_espeak application for Asterisk - another speech synthesizer.

First Look at Asterisk SCF Developer APIs
March 11, 2011 Average Vote: 10
Kevin Fleming has posted a link to a look at the new Asterisk SCF APIs.

Developer Information Update
August 16, 2011 Average Vote: 10
Kevin has posted a note asking developers with commit privileges to create a personal space on the Asterisk wiki.

First HD Conference In Asterisk
February 21, 2011 Average Vote: 10
Leif Madsen has posted details of a successful public HD conference using Asterisk.

Skype Issues Official Statement About The End Of Skype For Asterisk
May 26, 2011 Average Vote: 10
Disruptive Telephony has posted an official note from Skype about the end of Skype for Asterisk. Thanks to Olle for pointing it out on Twitter.

Flite module for asterisk
August 22, 2011 Average Vote: 10
Lefteris Zafiris has posted details of the latest release of app_flite - an application to make use of the text to speech capabilities of FestivalLite.

Astricon: Shaun Ruffell: DAHDI
October 26, 2011 Average Vote: 10
The next discussion is by Shaun Ruffell on the DAHDI drivers.


Asterisk 1.8.9.1 Now Available
February 8, 2012
The Asterisk Development Team has announced the release of Asterisk 1.8.9.1.

Asterisk 10.1.1 Now Available
February 8, 2012
The Asterisk Development Team has announced the release of Asterisk 10.1.1.

Digium Creates Phones for Asterisk
February 2, 2012
Steven Sokol has posted details of the release of Digium phones for Asterisk

Converting multiple exten lines to using same in Asterisk dialplan
January 24, 2012
Leif Madsen has written a post on his blog about converting Asterisk 1.4 dial plans to using the same feature in 1.8 dial plans.

Asterisk 1.8.8.2 and 10.0.1 Now Available (Security Release)
January 24, 2012
The Asterisk Development Team has announced security releases for Asterisk 1.8 and 10.

AstLinux 1.01 Released
January 16, 2012
The AstLinux Team would like to announce the release of 1.0.1. This version is available with either Asterisk 1.4.43 or Asterisk 1.8.8.3.

Asterisk 1.6.2.22 Now Available
December 20, 2011
The Asterisk Development Team has announced the release of Asterisk 1.6.2.22.

Asterisk 1.8.8.0 Now Available
December 19, 2011
The Asterisk Development Team is pleased to announce the release of Asterisk 1.8.8.0.

Asterisk 10.0.0 Released
December 19, 2011
The Asterisk Development Team is proud to announce the release of Asterisk 10.0.0.

AstLinux 1.0.0 release
December 19, 2011
The AstLinux Team is happy to announce the release of AstLinux 1.0.0.