Bug#452595: Asterisk SNMP OID's not available.

Jon Webster jon at elephantoutlook.com
Fri Nov 23 21:23:06 UTC 2007


Package: Asterisk
Version: 1.4.13~dfsg-1

Using http://www.voipphreak.ca/archives/382 as a lose guide, I have been unsuccessful at setting up SNMP monitoring in asterisk 1.4.11~dfsg-3.

pbx# snmpget localhost -v2c -c asterisk 1.3.6.1.4.1.22736.1.5.1.0
ASTERISK-MIB::astNumChannels.0 = No Such Object available on this agent at this OID


Below is some information about the setup.

pbx# grep -v -e ^# -e ^$ /etc/snmp/snmpd.conf
com2sec paranoid  default         public
com2sec readonly  default         asterisk
group MyROSystem v1        paranoid
group MyROSystem v2c       paranoid
group MyROSystem usm       paranoid
group MyROGroup v1         readonly
group MyROGroup v2c        readonly
group MyROGroup usm        readonly
group MyRWGroup v1         readwrite
group MyRWGroup v2c        readwrite
group MyRWGroup usm        readwrite
view all    included  .1                               80
view system included  .iso.org.dod.internet.mgmt.mib-2.system
access MyROSystem ""     any       noauth    exact  system none   none
access MyROGroup ""      any       noauth    exact  all    none   none
access MyRWGroup ""      any       noauth    exact  all    all    none
syslocation Unknown (configure /etc/snmp/snmpd.local.conf)
syscontact Root <root at localhost> (configure /etc/snmp/snmpd.local.conf)
master agentx
agentXperms 0660 0550 nobody asterisk


I've restarted snmpd, restarted asterisk and reloaded the module in asterisk to make sure it was running.

pbx*CLI> module unload res_snmp.so
 Unloading [Sub]Agent Modulenmp.so
  == Terminating SubAgent
pbx*CLI> module load res_snmp.so
  == Parsing '/etc/asterisk/res_snmp.conf': Found
 Loading [Sub]Agent Module
 Loaded res_snmp.so => (SNMP [Sub]Agent for Asterisk)
  == Starting SubAgent
pbx*CLI>

pbx# updatedb
pbx# locate agentx|grep var
/var/run/agentx


Nothing in the logs...


pbx:# grep -v ^\; /etc/asterisk/res_snmp.conf
[general]
subagent = yes
enabled = yes
pbx:#






More information about the Pkg-voip-maintainers mailing list