一、Redhat 5
1、安装系统
2、ssh登录查看系统
[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
3、rpm方式安装(要找对系统版本和zabbix版本)
[root@localhost ~]# rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/5/x86_64/zabbix-agent-3.4.0-1.el5.x86_64.rpm
4、修改配置文件(Server指定zabbix服务器IP地址,Hostname可以指定本机名)
[root@localhost ~]# vi /etc/zabbix/zabbix_agentd.conf
Server=10.1.88.200
ServerActive=10.1.88.200
Hostname=redhat5
5、启动服务并设置开机启动
[root@localhost ~]# service zabbix-agent start
[root@localhost ~]# chkconfig zabbix-agent on
6、修改防火墙允许端口访问
[root@localhost ~]# vi /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 10050 -j ACCEPT
[root@localhost ~]# service iptables restart
二、zabbix服务器
1、添加主机
2、查看状态