Please do share your progress Dan. I am also very interested in getting SNMP 
and Zabbix working together.

Kind regards
Ionel Chila


________________________________
 From: Dan Ryson <d...@ryson.org>
To: Lonnie Abelbeck <li...@lonnie.abelbeck.com> 
Cc: AstLinux Users Mailing List <astlinux-users@lists.sourceforge.net> 
Sent: Sunday, May 5, 2013 6:51 AM
Subject: Re: [Astlinux-users] Path to snmp.conf?
 

Good morning Lonnie,

What a pleasant surprise.  Thank you, yet again, for lending such a 
capable, helping hand.

I'm excited about the prospect of getting SNMP running.  It is hoped to 
provide some valuable statistics and diagnostics for several AstLinux 
installations.

Part of my goal is to learn more about SNMP and Zabbix, both of which 
are new to me.  What I've seen thus far, while monitoring servers, 
routers, switches, and printers at work, is quite cool and useful.  
Expanding this capability to Asterisk would be fantastic.

I have the Build Engine busily baking r6073 this morning.  While it's in 
the oven, I'll review the path and symlink information kindly provided 
by you and James Babiak so that I can hit the ground running.

I'll keep everyone posted on the results.

Thanks again for all that you do.  (You too, James.)

Dan

On 05/04/2013 10:17 PM, Lonnie Abelbeck wrote:
> Hi Dan,
>
> I added commit r6073 which enables the res_snmp.so module in Asterisk.  
> Additionally a few tweaks with how netsnmp was built was necessary... agentx 
> needed to be enabled and for some reason Buildroot disabled the Unix 
> transport, possibly a problem with uClibc, but builds fine with our eglibc 
> toolchain.
>
> Here is my mini how-to...
>
> I used this as a basic guideline:
> http://asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/Monitoring_id241628.html
>
> Edit res_snmp.conf so it acts as a subagent and is enabled...
> # cat /etc/asterisk/res_snmp.conf
> --
> ; Asterisk SNMP Support
> ; 
> https://wiki.asterisk.org/wiki/display/AST/Simple+Network+Management+Protocol+(SNMP)+Support
> -- snip --
> [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
> --
>
> Create /mnt/kd/snmp/snmpd.conf as follows... specify syslocation and 
> syscontact as you desire, I thought Leif deserved some credit here. :-)
> # cat /mnt/kd/snmp/snmpd.conf
> --
> com2sec notConfigUser  default       public
>
> group   notConfigGroup v1           notConfigUser
> group   notConfigGroup v2c           notConfigUser
>
> view all    included  .1
> view system included  .iso.org.dod.internet.mgmt.mib-2.system
>
> access  notConfigGroup ""      any       noauth    exact  all    none none
>
> syslocation Caledon, ON
> syscontact Leif Madsen lmad...@shifteight.org
>
> master agentx
> agentXSocket /var/agentx/master
> agentXPerms 0660 0550
>
> sysObjectID .1.3.6.1.4.1.22736.1
> --
>
> Restart the snmpd service...
>
> $ service snmpd stop
> $ service snmpd init
>
> Now in Asterisk, unload and load the res_snmp.so module, or restart the 
> asterisk service, etc.
>
> Finally, type the following command and you should see a bunch of output, 
> Asterisk related...
>
> $ snmpwalk -On -v2c -c public 127.0.0.1 .1.3.6.1.4.1.22736
>
> Pretty cool...
>
> To help test, I just updated the SVN to r6073 on build.astlinux.org so people 
> here can easily test.  Each build takes about 2.5 hours occurring in this 
> order...
> --
> ast11,smp
> ast11
> ast18,smp
> ast18
> --
>
> Please let us know how it works.
>
> If anyone can think of a reason to not enable the res_snmp.so module in 
> Asterisk, please explain.
>
> Lonnie
>
>
>
> On May 4, 2013, at 11:53 AM, Dan Ryson wrote:
>
>> Hello everyone.
>>
>> I'm tinkering around with Zabbix.  While I'm successfully using the Zabbix 
>> agent to monitor the machine, I'd also like to monitor certain Asterisk 
>> parameters such as shown in this Zabbix Template.  It looks like this is 
>> feasible using SNMP...  That is, if I could just get the SNMP daemon 
>> configured.
>>
>> When I start the SNMP daemon, it complains that it can't find a 
>> configuration file, snmpd.conf.  I see that there's an empty "snmp" file (in 
>> /mnt/kd/asterisk and /etc) but even if I save my configuration settings in 
>> this file, the SNMP daemon doesn't appear to read it.
>>
>> What's the proper way to configure SNMP in AstLinux?
>>
>> Thanks for any thoughts,
>>
>> Dan


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to