Lonnie,

Thank you for all the research and effort.  I hope to be able to turn attention 
back to SNMP later today after some outdoor projects tha are begging for 
attention.

Dan


Lonnie Abelbeck <li...@lonnie.abelbeck.com> wrote:

>Dan,
>
>Looking at "/etc/init.d/snmpd" for documentation :-)
>
>Your config goes in "/mnt/kd/snmp/snmpd.conf" (which is symlinked to
>"/etc/snmp/snmpd.conf")
>
>snmpd is started with...
>
>OPTIONS="-LS0-4d -Lf /dev/null"
>snmpd $OPTIONS -u nobody -g nobody -p /var/run/snmpd.pid
>
>But, you can redefine OPTIONS, by setting OPTIONS="..." in the file
>"/mnt/kd/snmp/snmpd.options"
>
>$ service snmpd stop
>$ service snmpd init
>
>BTW, we have don't enable the netsnmp ( --with-netsnmp ) in asterisk,
>years ago this was a problem... but possibly this is OK now with our
>current build system.  Though I know people monitor their Asterisk
>without using SNMP using Zabbix, that is about all I know.
>
>OK, I gave  --with-netsnmp in asterisk.mk a try with this change in the
>build system...
>===================================================================
>--- package/asterisk/asterisk.mk       (revision 6072)
>+++ package/asterisk/asterisk.mk       (working copy)
>@@ -101,13 +101,14 @@
>                       --with-imap="$(BUILD_DIR)/uw-imap-2007e" 
> endif
> 
>-#ifeq ($(strip $(BR2_PACKAGE_NETSNMP)),y)
>-#ASTERISK_EXTRAS+=netsnmp
>-#ASTERISK_CONFIGURE_ARGS+= \
>-#                     --with-netsnmp="$(STAGING_DIR)/usr"
>-#endif
>+ifeq ($(strip $(BR2_PACKAGE_NETSNMP)),y)
>+ASTERISK_EXTRAS+=netsnmp
> ASTERISK_CONFIGURE_ARGS+= \
>+                      --with-netsnmp="$(STAGING_DIR)/usr"
>+else
>+ASTERISK_CONFIGURE_ARGS+= \
>                       --without-netsnmp
>+endif
> 
> ifeq ($(strip $(BR2_PACKAGE_MYSQL_CLIENT)),y)
>
>
>It now seems to work !
>
>pbx3 ~ # cat /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 = no
>; SNMP must be explicitly enabled to be active
>enabled = yes
>
>Loading Asterisk…
>...
>  == Parsing '/etc/asterisk/res_snmp.conf':   == Found
> Loading [Sub]Agent Module
> res_snmp.so => (SNMP [Sub]Agent for Asterisk)
>  == Starting Agent
>
>pbx3 ~ # ss -ua | grep snmp
>UNCONN     0      0                       *:snmp                    
>*:*       
>
>And adds very little to our image.
>
>pbx3 ~ # ls -l /usr/lib/asterisk/modules/res_snmp.so
>-rwxr-xr-x    1 root     root         19736 May  4 13:25
>/usr/lib/asterisk/modules/res_snmp.so
>
>Here are the docs...
>
>Asterisk SNMP Support
>https://wiki.asterisk.org/wiki/display/AST/Simple+Network+Management+Protocol+(SNMP)+Support
>
>"SNMP support comes in two varieties – as a sub-agent to a running SNMP
>daemon using the AgentX protocol, or as a full standalone agent. If you
>wish to run a full standalone agent"
>
>If using a 'sub-agent' you would need the snmpd service running, when
>using 'a full standalone agent' in theory Zabbix could talk directly to
>Asterisk's SNMP without configuring the snmpd service.
>
>In the above example I did not need the snmpd service running
>
>So... bottom line should we now enable netsnmp in Asterisk ?  It is
>disabled by default in res_snmp.conf and is quite small.
>
>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.

-- 
Sent from my mobile phone.  Please excuse my brevity.
------------------------------------------------------------------------------
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