zabbix agent 安装

从各大博客及论坛整理,并亲自安装实验


RHEL6.5:

1、安装依赖包:
yum -y install httpd mysql mysql-server php php-mysql php-common php-mbstring php-gd php-odbc php-pear curl curl-devel net-snmp net-snmp-devel perl-DBI php-xml ntpdate  php-bcmath
2、rpm安装不能yum的php-mbstring/php-bcmath/zabbix-agent包
RHEL6.5:rpm -ivh php-mbstring-5.3.3-26.el6.x86_64.rpm  php-bcmath-5.3.3-26.el6.x86_64.rpm  zabbix-agent-3.2.1-1.el6.x86_64.rpm
RHEL6.8:rpm -ivh php-mbstring-5.3.3-47.el6.x86_64.rpm  php-bcmath-5.3.3-47.el6.x86_64.rpm  zabbix-agent-3.2.1-1.el6.x86_64.rpm
RHEL7.2:rpm -ivh php-mbstring-5.4.16-36.el7_1.x86_64.rpm  php-bcmath-5.4.16-36.el7_1.x86_64.rpm  zabbix-agent-3.2.1-1.el7.x86_64.rpm


3、修改zabbix_agentd.conf配置文件:
vi /etc/zabbix/zabbix_agentd.conf
其中的
Server= yourserverip
ListenPort=10050
ServerActive= yourserverip
Hostname= yourlocalIP


4、启动zabbix agent
zabbix_agentd




Windows:


1、解压zabbix_agent 安装包


2、修改conf/zabbix_agentd.conf
其中的
Server= yourserverip
ListenPort=10050
ServerActive= yourserverip
Hostname=  yourlocalIP

完成后保存


3、打开cmd,进行zabbix agent 安装。
C:\zabbix_agent\bin\win64\zabbix_agentd.exe -c C:\zabbix_agent\conf\zabbix_agentd.conf -i
4、启动zabbix agent
C:\zabbix_agent\bin\win64\zabbix_agentd.exe -c C:\zabbix_agent\conf\zabbix_agentd.conf -s
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值