Results 1 to 1 of 1
Hello,
I'm having problems configuring Asterisk to be monitored with SNMP. Been reading a lot from the web but really can't figure what's going on.
What was done:
/etc/asterisk/res_snmp.conf:
[general]
...
- 03-23-2011 #1Just Joined!
- Join Date
- Mar 2011
- Posts
- 2
Asterisk/SNMP configuration
Hello,
I'm having problems configuring Asterisk to be monitored with SNMP. Been reading a lot from the web but really can't figure what's going on.
What was done:
/etc/asterisk/res_snmp.conf:
[general]
; We run as a subagent per default -- to run as a full agent
; we must run as root (to be able to bind to port 161)
subagent = yes
; SNMP must be explicitly enabled to be active
enabled = yes
/etc/snmp/snmpd.conf:
master agentx
agentXSocket /var/agentx/master
agentXPerms 0660 0550 nobody asterisk
ls -la /var/agentx:
total 2
drwxrwxr-x 2 asterisk asterisk 1024 2011-03-22 18:13 .
drwxr-xr-x 20 root root 1024 2011-03-22 15:41 ..
srw-rw---- 1 nobody asterisk 0 2011-03-22 18:13 master
I can see all MIBs in my computer when I do snmpwalk -v1 -c public localhost but I also want to see the asterisk MIBs.
I already create a MIB-ASTERISK.txt file and a DIGIUM-MIB.txt file with the content that I saw on the internet and put them in /usr/share/snmp/mibs where are the other MIBs and did the export MIBS=+MIB-ASTERISK but I can't fetch any value..
snmpwalk -v1 -c public localhost asterisk
asterisk: Unknown Object Identifier (Sub-id not found: (top) -> asterisk)
snmpwalk -c public -v 2c localhost ASTERISK-MIB::asterisk
ASTERISK-MIB::asterisk = No Such Object available on this agent at this OID
I also think that there's nothing wrong related with the agentx, because of this:
netstat -an | grep master
unix 2 [ ACC ] STREAM LISTENING 302870 /var/agentx/master
unix 3 [ ] STREAM CONNECTED 302947 /var/agentx/master
Does anyone know what's the problem? Thanks in advance.


Reply With Quote
