生产服务器:
OS:CentOS 6.8
[[email protected] html]#cd /etc/snmp
[[email protected] snmp]#ll
total 8
-rw-r--r--. 1 rootroot 360 Oct 6 2013 snmpd.conf
-rw------- 1 root root 220 Aug 24 02:47 snmptrapd.conf
[[email protected] snmp]#vi snmp
snmpd.conf snmptrapd.conf
[[email protected] snmp]#vi snmpd.conf
com2secnotConfigUser default public
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
view systemview included .1
access notConfigGroup "" any noauth exact systemview none none
syslocation www.cactiez.com
syscontact ZhengFeng ([email protected])
dontLogTCP WrappersConnectsyes
#修改如下:
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
view systemview included .1
access notConfigGroup "" any noauth exact systemview none none
syslocation cacti.jxatei.net
syscontact wuhaiming ([email protected])
dontLog TCP WrappersConnectsyes
说明:如果登录后台查看还没有生效,请使用以下两种方法:
[[email protected] ~]# service snmpd restart
[[email protected] ~]#shutdown -r now
更改主机名:
[[email protected] ~]#vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=Cacti
更改登录时显示的相关信息:
[[email protected] ~]# cat /etc/issue
Cacti Chinese Version 10.2
欢迎访问CentOS服务器!