In article <001501d12c4d$829a28a0$87ce79e0$@us>,
Tech Support <aster...@voipbusiness.us> wrote:
> 
> All;
> 
> I am trying to setup SNMP on an Asterisk 11 system on CentOS 6.

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

> I have the
> net-snmp packages installed and I made sure that SNMP support is compiled
> into Asterisk and that the res_snmp.so module is loaded. res_snmp.conf is
> configured like so:
> 
> [general]
> subagent = yes
> enabled = yes

That's ok. Same as mine.

> My /etc/snmp/snmpd.conf file has the AgentX support configured.
> 
> master agentx
> 
> agentXPerms  0660 0550 nobody asterisk

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

> And both the Asterisk mib and the Digium mib are being loaded. I check that
> by
> 
> >> snmptranslate -On -Td ASTERISK-MIB::asteriskVersion
> 
> .1.3.6.1.4.1.22736.1.1
> 
> asteriskVersion OBJECT-TYPE
> 
>   -- FROM       ASTERISK-MIB
> 
> ::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1)
> digium(22736) asterisk(1) 1 }

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.

> when I try to do a query using the Asterisk mib, I'm getting the following
> error:
> 
> >> snmpwalk -v 2c -c private localhost .1.3.6.1.4.1.22736.1.1
> 
> SNMPv2-SMI::enterprises.22736.1.1 = No Such Object available on this agent
> at this OID

I get:
SNMPv2-SMI::enterprises.22736.1.1.1.0 = STRING: "11.18.0"
SNMPv2-SMI::enterprises.22736.1.1.2.0 = Gauge32: 111800

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

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

-- 
Tony Mountifield
Work: t...@softins.co.uk - http://www.softins.co.uk
Play: t...@mountifield.org - http://tony.mountifield.org

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to