SNMP On Asterisk 11

Home » Asterisk Users » SNMP On Asterisk 11
Asterisk Users 1 Comment


I am trying to setup SNMP on an Asterisk 11 system on CentOS 6. I have the net-snmp packages installed and I made sure that SNMP support is compiled into Asterisk and that the module is loaded. res_snmp.conf is configured like so:


subagent = yes

enabled = yes

My /etc/snmp/snmpd.conf file has the AgentX support configured.

master agentx

agentXPerms 0660 0550 nobody asterisk

And both the Asterisk mib and the Digium mib are being loaded. I check that by


asteriskVersion OBJECT-TYPE


::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1)
digium(22736) asterisk(1) 1 }

When I do a query on a non-asterisk OID, I do get a valid response. However, when I try to do a query using the Asterisk mib, I’m getting the following error:

SNMPv2-SMI::enterprises.22736.1.1 = No Such Object available on this agent at this OID

Has anyone ever come across this problem? Any insight at all would be greatly appreciated.


John V.

Tech Support

Tech Support

VoIP Business Solutions

240-215-3479 x325

One thought on - SNMP On Asterisk 11

  • In article <001501d12c4d$829a28a0$87ce79e0$@us>, Tech Support wrote:

    I have this working, so I’ll try to help, by comparing what you’ve said with my working setup.

    That’s ok. Same as mine.

    I have “root root” instead of “nobody asterisk”. I don’t know whether that is significant or not. It may be. Try it.

    Whether the MIB is loaded or not doesn’t matter, if you are specifying an OID by number. It’s just for translation, a bit like DNS for IP addrs.

    I get:
    SNMPv2-SMI::enterprises.22736. = STRING: “11.18.0”
    SNMPv2-SMI::enterprises.22736. = Gauge32: 111800

    The other thing to check is further up in /etc/snmp/snmpd.conf. See what views are defined, and the access groups to which they have been assigned, as they specify what part(s) of the OID tree will be served.

    I have this:

    ## incl/excl subtree mask view all included .1 80

    ## context sec.model sec.level prefix read write notif access MyROGroup “” any noauth exact all none none access MyRWGroup “” any noauth exact all all all

    which makes everything under .1 visible. Not sure if that is the default or not.

    Cheers Tony