[asterisk-users] asterisk snmp

Roger Casaponsa roger.casaponsa at adamvozip.es
Fri Jul 13 05:06:08 CDT 2007


Hello,

I'm trying to monitor asterisk with snmp.

I'm using asterisk 1.4.4 compiled with res_snmp on a debian stable:
*CLI> module show like snmp
Module                         Description 			Use Count 
res_snmp.so                    SNMP [Sub]Agent for Asterisk 	0    

I've configured asterisk in res_snmp.conf:
[general]
subagent = yes
enabled = yes

and when asterisk start print this:
[Jul 13 09:14:58] VERBOSE[3330] logger.c:   == Parsing '/etc/asterisk/res_snmp.conf': [Jul 13 09:14:58] VERBOSE[3330] logger.c: Found
[Jul 13 09:14:58] VERBOSE[3330] logger.c: res_snmp.so => (SNMP [Sub]Agent for Asterisk)

at the snmp I have added the agentx support and asterisk in snmpd.conf:
master  agentx
agentXperms 0660 0550 root root
access asterisk ""       any       noauth    exact  all    none   none
group asterisk v1 paranoid

I've added the option -x /var/agentx/master at snmp start. 
pizov:/etc/snmp# ps aux | grep snmp
snmp      4004  0.0  0.9   8420  4692 ?        S    10:51   0:00 /usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1 -x /var/agentx/master -V
root      4007  0.0  0.3   7724  1828 ?        Ss   10:51   0:00 /usr/sbin/snmptrapd -a -Lsd -p /var/run/snmptrapd.pid

I've copied the mibs files:
cp doc/asterisk-mib.txt /usr/share/snmp/mibs/
cp doc/digium-mib.txt /usr/share/snmp/mibs/

and restart the snmpd.

In the logs of snmp:
Jul 13 11:53:49 localhost snmpd[4132]: cache has existing timer id. 
Jul 13 11:53:50 localhost snmpd[4132]: Turning on AgentX master support. 
Jul 13 11:53:50 localhost snmpd[4132]: NET-SNMP version 5.2.3 

and when I start snmp in the asterisk console appears:
*CLI> NET-SNMP version 5.2.3 AgentX subagent connected


but when I try to walk throught the asterisk snmp:
pizov:/usr/share/snmp/mibs# snmpwalk -v 1 -c public localhost ASTERISK-MIB::astVersionTag 
End of MIB
pizov:/usr/share/snmp/mibs# snmpwalk -v 1 -c public localhost asterisk                   
asterisk: Unknown Object Identifier (Sub-id not found: (top) -> asterisk)

What am I doing wrong?? 

Thanks a lot

Roger
-- 
Roger Casaposna - Adam Telefonía IP
email: roger.casaposna at adamvozip.es <mailto:roger.casaposna at adamvozip.es> 
www: http://www.adamvozip.es <http://www.adamvozip.es/>




More information about the asterisk-users mailing list