从各大博客及论坛整理,并亲自安装实验
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