Asterisk
Asterisk Plugin
This plugin makes use of Hyperic HQ's SNMP capabilities. This was contributed by user 'critch' on the Hyperic forums
Here's his description for setup:
Under debian, get snmpd snmp libsnmp9-dev libsnmp9
That will probably require a few other packages like libsnmp-base and libsnmp-perl
Copy the asterisk-txt.mib and digium-mib.txt to /usr/share/snmp/mibs/
edit /etc/snmp/snmpd/conf to add the following lines
---------------------------------------------------------------
com2sec local localhost COMMUNITY
com2sec mynetwork xxx.xxx.xxx.xxx/255.255.255.0 COMMUNITY
group MyROGroup any local
group MyROGroup any mynetwork
view all included .1
access MyROGroup "" any noauth 0 all none none
---------------------------------------------------------------
disclaimer, I do not know what these lines do or are for other than it was in a voip-magazine article about setting up snmp with asterisk. Do fix the COMMUNITY to something appropriate for your install and the network and mask for your network.
After that, you should be able to restart snmpd and it will be ready. Then you need to build asterisk with res_snmp support. Basically rerun ./configure and make menuconfig to select res_snmp. When done building and installing, make sure you get the res_snmp.conf file copied out of configs to your /etc/asterisk directory and uncomment the 2 options that are supplied.
Once asterisk is restarted, you should be able to get states with
export MIBS=+ASTERISK-MIB
snmpwalk -c COMMUNITY -v 1 localhost asterisk
From there, minimally, you can use the plugin I posted to get channel stats.
Download
Documentation
None exists at this time. This is a community-contributed plugin. If you have comments or questions, please either use the comment link below or feel free to edit this page.