zabbix自动化监控6(2.4)
---------------Zabbix-agent自动注册Zabbix-agent端配置
# grep "^" /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/
# /etc/init.d/zabbix-agent restart
服务端测试一下
# 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
网页端配置
https://s2.运维网.com/wyfs02/M02/9E/35/wKiom1mMdoSTX27PAAB48TV_5xQ335.png
https://s2.运维网.com/wyfs02/M01/9E/35/wKiom1mMdoWx7QELAAA44V9V87s192.png
https://s2.运维网.com/wyfs02/M00/9E/25/wKioL1mMdoXB-i_TAABfwSHMmIo403.png
https://s4.运维网.com/wyfs02/M02/9E/35/wKiom1mMdoaS-1p-AABvjVfiXFM824.png
https://s4.运维网.com/wyfs02/M01/9E/25/wKioL1mMdobRFRm_AABuTYSyM8w178.png
https://s5.运维网.com/wyfs02/M00/9E/35/wKiom1mMdofCpkbEAACD_wDwB9E201.png
https://s1.运维网.com/wyfs02/M00/9E/35/wKiom1mMdojhd2ltAACU4TERZ2Y090.png
页:
[1]