---------------Zabbix-agent自动注册


Zabbix-agent端配置

[root@linux-node1 ~]# grep "^[a-Z]" /etc/zabbix/zabbix_agentd.conf

PidFile=/var/run/zabbix/zabbix_agentd.pid

LogFile=/var/log/zabbix/zabbix_agentd.log

LogFileSize=0

StartAgents=0    #主动模式

ServerActive=192.168.10.129    #主动模式,服务器ip

Hostname=linux-node1.example.com

HostMetadataItem=system.uname    #key值,相当于执行uname -a,与后面like Linux匹配

Include=/etc/zabbix/zabbix_agentd.d/

[root@linux-node1 ~]# /etc/init.d/zabbix-agent restart

服务端测试一下

[root@zabbix-server ~]# zabbix_get -s 192.168.10.128 -k system.uname

Linux linux-node1.example.com 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64

网页端配置

wKiom1mMdoSTX27PAAB48TV_5xQ335.png

wKiom1mMdoWx7QELAAA44V9V87s192.png

wKioL1mMdoXB-i_TAABfwSHMmIo403.png

wKiom1mMdoaS-1p-AABvjVfiXFM824.png

wKioL1mMdobRFRm_AABuTYSyM8w178.png

wKiom1mMdofCpkbEAACD_wDwB9E201.png

wKiom1mMdojhd2ltAACU4TERZ2Y090.png