Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] SNMP on Asterisk 11


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
asterisk at voipbusine...
Guest





PostPosted: Tue Dec 01, 2015 10:34 am    Post subject: [asterisk-users] SNMP on Asterisk 11 Reply with quote

All;
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 res_snmp.so module is loaded. res_snmp.conf is configured like so:

[general]
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

Quote:
Quote:
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 }


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:

Quote:
Quote:
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


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

Tech Support
Tech Support
VoIP Business Solutions
240-215-3479 x325
support@voipbusiness.us (fsd@voipbusiness.us)
Back to top
tony at softins.co.uk
Guest





PostPosted: Tue Dec 01, 2015 12:24 pm    Post subject: [asterisk-users] SNMP on Asterisk 11 Reply with quote

In article <001501d12c4d$829a28a0$87ce79e0$@us>,
Tech Support <asterisk@voipbusiness.us> wrote:
Quote:

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.

Quote:
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.

Quote:
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.

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

Quote:
Quote:
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.

Quote:
when I try to do a query using the Asterisk mib, I'm getting the following
error:

Quote:
Quote:
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

Quote:
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: tony@softins.co.uk - http://www.softins.co.uk
Play: tony@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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services