in ubuntu, setup a snmpd
Take net-snmp 5.4.3 for example
Modify /etc/conf/snmpd.conf
# make snmpd to listen IPv4:161 and IPv6:161
agentAddress udp:161,udp6:[::1]:161
# systemonly is the default setting
# add a new view name, for example 'system'
view systemonly included .1.3.6.1.2.1.1
view systemonly included .1.3.6.1.2.1.25.1
view system included .1
# rocommunity COMMUNITY [SOURCE [OID | -V VIEW [CONTEXT]]]
rocommunity public default -V systemonly
rocommunity localAccess default -V system
Reference
http://www.net-snmp.org/docs/man/snmpd.conf.html
No comments:
Post a Comment