mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-11-25 19:47:02 +00:00
Merge pull request #139 from varnav/master
monitoring number of active asterisk channels
This commit is contained in:
commit
79bace2b6f
1 changed files with 26 additions and 0 deletions
26
plugins/asterisk/asterisk_channels
Normal file
26
plugins/asterisk/asterisk_channels
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
#! /bin/sh
|
||||||
|
# Munin plugin
|
||||||
|
# Gets number of active channels
|
||||||
|
# By Eugene Varnavsky
|
||||||
|
# Converted to /bin/sh by Steve Schnepp
|
||||||
|
# June 2012
|
||||||
|
# Version 1.0
|
||||||
|
#
|
||||||
|
# LGPL License
|
||||||
|
|
||||||
|
if [ $1 = "autoconf" ]; then
|
||||||
|
echo "yes"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $1 = "config" ]; then
|
||||||
|
echo "graph_title Asterisk Channels"
|
||||||
|
echo "graph_args --base 1000 -l 0"
|
||||||
|
echo "graph_vlabel Channels"
|
||||||
|
echo "graph_category asterisk"
|
||||||
|
echo "channels.label Channels"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
asterisk -x "core show channels" | awk '/active channels/ { print "channels.value " $1 }'
|
||||||
|
exit 0
|
||||||
Loading…
Add table
Add a link
Reference in a new issue