Cacti添加主机


用户名:root              密码:CactiEZ


yum groupinstall "Development Tools"
yum groupinstall "Compatibility Libraries"

被监控端安装snmp
yum -y install net-snmp net-snmp-devel

被监控端安装配置snmp
vim /etc/snmp/snmpd.conf

com2sec notConfigUser default public
改为 ( cacti主机IP地址 )
com2sec notConfigUser 192.168.0.64 public

access notConfigGroup "" any noauth exact systemview none none
改为
access notConfigGroup "" any noauth exact all none none

#view all included .1 80   
将#注释删掉
view all included .1 80

然后开启 snmp
service snmpd start
service snmpd reload
service snmpd restart

设置snmpd开机启动
chkconfig snmpd on

Cacti添加主机_第1张图片

cacti服务端测试被监控端
snmpwalk -c public -v 2c 192.168.0.64

若检测不成
vi /etc/snmp/snmpd.conf
最后配置如下:
syslocation Server Room
syscontact Sysadmin (root@localhost)
rocommunity public 127.0.0.1
agentaddress 161
rocommunity public
rwcommunity private
trapsink 192.168.0.150 public 162 --> 这里的ip=192.168.0.150为被监控主机ip
然后,再执行第二步操作即可。


添加windows需要注意的地方(接受任何主机的snmp数据包)

Cacti添加主机_第2张图片

你可能感兴趣的:(Access,default,IP地址)