建议修改 /etc/httpd/conf/httpd.conf ServerName yourip:80 可以避免出现开启服务时的警告: httpd:httpd: apr_sockaddr_info_get() failed for vm1.example.com httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
配置snmp
vi /etc/snmp/snmpd.conf
#com2sec notConfigUser default public
com2sec local localhost public
com2sec nicknetwork 192.168.0.0/24 public
#group notConfigGroup v1 notConfigUser
#group notConfigGroup v2c notConfigUser
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
group MyROGroup usm mynetwork
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
view all included .1 80
#access notConfigGroup "" any noauth exact systemview none none
access MyROGroup "" any noauth exact all none none