Home Directory Plugins Telephony Asterisk check_asterisk_ami

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check_asterisk_ami

Current Version
1.1.0.6
Last Release Date
2011-09-08
Compatible With
  • Nagios 3.x
  • Nagios XI
E-mail
License
GPL
Hits
87836
Files:
FileDescription
check_asterisk_amicheck_asterisk_ami
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Plugin to check Asterisk using AMI,
Plugin to check Asterisk via AMI

Currently has the following information
channels in use
calls active
number of IAX2 peers
number of SIP peers

Requires manager.conf user with access to:
write:system,command

Returns performance data for statistics.

requires netcat and uses utils.sh


check_asterisk_ami v1.1.0.6 (nagios-plugins 1.4.15)
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

Nagios Plugin to check Asterisk using AMI

Usage: check_asterisk_ami [-H hostname] [-q query] [-u username] [-p password] [-P port] [-w warning] [-c critical]
-H Hostname
-q Command to query
-u AMI Username
-p AMI Password
-P (optional) AMI PORT
-w (optional) warning threshold
-c (optional) critical threshold

SupportedCommands:
channels (check number of current channels in-use)
calls (check number of current calls)
sippeers (check number of current calls)
iaxpeers (check number of current calls)

Usage: check_asterisk_ami --help
Usage: check_asterisk_ami --version

Asterisk Call Status Check. Jason Rivers 2011
Reviews (2)
Does _not_ work as expected because of some typos in the source. Replace all STATUS_ and STATU_ with STATE_, then exit codes are correct again. At the end, remove the equals-sign (=) in exit=$STATE_WARNING - now the exit codes should respect warning/critical states.
For those who care: in the section "channels", messages are still using "calls" - enough room for confusion.
by808blogger, September 17, 2011
0 of 1 people found this review helpful
Works exactly as described.

Would have 5 stars if the netcat path was either autodetermined or a variable so that i didn't have to change it in the code.

combine with pnp4nagios for some nice graphs.