生产服务器:
OS:CentOS 6.8
[root@Cacti html]#cd /etc/snmp
[root@Cacti 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
[root@Cacti snmp]#vi snmp
snmpd.conf snmptrapd.conf
[root@Cacti 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 (mr.ivory@163.com)
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 (553752017@qq.com)
dontLog TCP WrappersConnectsyes
说明:如果登录后台查看还没有生效,请使用以下两种方法:
[root@Cacti ~]# service snmpd restart
[root@Cacti ~]#shutdown -r now
更改主机名:
[root@Cacti ~]#vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=Cacti
更改登录时显示的相关信息:
[root@Cacti ~]# cat /etc/issue
Cacti Chinese Version 10.2
欢迎访问CentOS服务器!