The snmp 'file' in /etc is actually just a symlink to /tmp/etc/smnp, which is supposed to be a directory containing the snmpd.conf file.

The included snmp init script runs snmpd using /etc/snmp/snmpd.conf as the config file, which would actually be linked to the /tmp/etc/snmp/snmpd.conf file. When the init script starts, it first checks to see if there is a configuration directory in the image (ie: /stat/etc/snmp), which I don't believe is the case unless you build it into a custom image. It will then look to see if the directory /mnt/kd/snmp exists, and if so, symlinks that to /tmp/etc/snmp. It's a bit circular, but it works.

So if you want to enable snmpd, you will need to create a /mnt/kd/snmp directory, and then put your config file (snmpd.conf) in there. This way, when snmpd is executed, it will pull the config file like so:
/etc/snmp/snmpd.conf -> /tmp/etc/snmp/snmpd.conf -> /mnt/kd/snmp/snmpd.conf

So once you create the /mnt/kd/snmp directory and put your snmpd.conf file in there, run:
service snmpd init
which will create the second symlink and should start the service.

You can also create a /mnt/kd/snmp/snmpd.options file that has the daemon startup options, otherwise it defaults to "-LS0-4d -Lf /dev/null".

Keep in mind that the above instructions are simply how to get the Astlinux snmpd paths configured and start the daemon. I've never actually run it on my box, so I'm not sure how well (if at all) it works.

--James



On 05/04/2013 12:53 PM, 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 <http://www.voip-info.org/wiki/view/Asterisk+monitor+template+for+Zabbix>. 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
[email protected].

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
[email protected].

Reply via email to