zabbix客户端win+linux

linux下的zabbix_agent源码包安装:

step1:安装依赖包

gcc pcre-devel gcc-c++ make

 

step2:下载zabbix,并且编译安装

https://cdn.zabbix.com/zabbix/sources/stable/4.4/zabbix-4.4.9.tar.gz

./configure --prefix=/usr/local/zabbix --enable-agent 

make &&make install

 

step3:创建zabbix用户

useradd -s /sbin/nologin zabbix

 

step4:修改/usr/local/zabbix/etc/zabbix_agentd.conf

 

LogFile=/tmp/zabbix_agentd.log
Server=192.168.1.20                     //定义那个ip可以通过本机的agent监控本机
ServerActive=192.168.1.20                //监控主机的ip
Hostname=yw-19                            //本机的主机名

 

step5:启动agent服务 

/usr/local/zabbix/sbin/zabbix_agentd                       10050

 

linux下的zabbix_agent yum安装:

https://www.cnblogs.com/eccom/p/10641087.html

step1:安装zabbix软件源

rpm -Uvh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm

 

step2:安装zabbix_agent

yum -y install zabbix-agent zabbix-sender zabbix-get

 

 

step3:修改/etc/zabbix/zabbix_agentd.conf

 

LogFile=/tmp/zabbix_agentd.log
Server=192.168.1.20                     //定义那个ip可以通过本机的agent监控本机
ServerActive=192.168.1.20                //监控主机的ip
Hostname=yw-19                            //本机的主机名

 

 

step4:启动zabbix-agent服务

systemctl start /restart/stop zabbix-agent

 

zabbix客户端win+linux

上一篇:mysql:Table './xdb/auditlog' is marked as crashed and should be repaired


下一篇:Windows server开机登录取消按ctrl+alt+delete组合键