In the new project, you need to enable the SNMP service for the monitoring machine to collect data for monitoring when deploying the server. The requirements are as follows:
1. Specify a collection machine and another machine to collect data.
2. Specify the group name and read-only
The configuration is as follows)
1. # sec. name source communitycom2sec notconfiguserdefault public change the "Comunity" field to the password to be set, that is, the group name (cannot use symbols, it will make an error) Change "default" to the IP address authorized for access
2. # Finally, grant the Group read-only access to the systemview view. # group context sec. Model sec. Level prefix read write notifaccess notconfiggroup "" any noauth exact allnone none
3. ## incl/excl subtree maskview all supported ded. 1 80 remove comments
4. # make at least snmpwalk-V 1 localhost-C public system fast again. # name incl/excl subtree mask (optional) view systemview encoded ded. 1.3.6.1.2.1.1view systemview added. 1.3.6.1.2.1.25.1.1view all supported ded. 1 add
5, #-or just the mib2 tree-view mib2 shortded .iso.org. DOD. Internet. Mgmt. mib-2 FC remove comments
Test: snmpwalk-V 2C-C public serverip ifpublic is the group name, serverip is the IP of the monitored host, and if is the port information
O & M notes-SNMP installation Configuration