PDA

View Full Version : How do I setup snmpd on Gentoo host?


Artyom
05-24-2009, 04:06 PM
First emerge snmp:

emerge net-snmp

Then open up your snmpd.conf in /etc/snmp/ directory and copy/paste the following:


com2sec local monitor.ayksolutions.com aykworld
com2sec local 10.10.10.0/24 public

group MyROGroup v1 local
group MyROGroup v2c local
group MyROGroup usm local

view all included .1 80

access MyROGroup "" any noauth exact all none none

#if you want to monitor different partitions
disk / 0
disk /tmp 0
disk /boot 0

#if you want to monitor different processes
proc httpd
proc mysqld
proc snmpd


Save the file and exit then run the following commands:

/etc/init.d/snmpd start
/sbin/rc-update add snmpd default

Gentoo Wiki: http://www.gentoo-wiki.info/Cacti/SNMP_host_setup#Adding_the_host