1. First of all make sure Net-SNMP has been installed or not.
2. vi /etc/snmp/snmpd.conf place the following (backup the original snmpd.conf first)
Quote:
rocommunity wwnet
com2sec local localhost public
com2sec mynetwork 172.16.0.0/16 wwnet
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
## 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 none
syslocation At server room
proc mysqld 6 0
proc httpd 10 1
disk / 50%
disk /usr 80%
disk /home 40%
disk /var 70%
disk /opt 80%
# Check for loads:
load 12 8 6
# Added for support of bcm5820 cards.
pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat
|
3. Start snmpd /etc/init.d/snmpd start
4. Make sure no error is /var/log/messages
5. Do #snmpwalk -v2c -c public localhost