安装snmp工具linux
# yum install -y net-snmp
配置snmpd.confvim
# vim /etc/snmp/snmpd.conf :/set nu
在对应行修改如下内容:ide
40 # sec.name source community 41 com2sec notConfigUser default zabbix #社区名称定义为zabbix 55 view systemview included .1 #添加一个采集项.1,意味着能够采集到全部mib tree的信息 56 view systemview included .1.3.6.1.2.1.1 57 view systemview included .1.3.6.1.2.1.25.1.1
启动服务工具
# systemctl start snmpd # netstat -unltp|grep 161 udp 0 0 0.0.0.0:161 0.0.0.0:* 18390/snmpd
安装snmpwalk工具测试测试
# yum install -y net-snmp-utils # snmpwalk -v 2c -c zabbix 192.168.61.130|wc -l 6115
添加新主机pwa
添加监控模板3d
添加宏code
值为配置snmp服务的时候建立的社区名称zabbixblog
测试it