四、linux zaibbix客户端的安装
1、下载客户端软件
[root@localhost soft]# wget http://www.zabbix.com/downloads/2.2.0/zabbix_agents_2.2.0.linux2_6.amd64.tar.gz
下载时候需要注意查看客户机的内核信息,从官网选择相应的软件包
2、客户端的相关设置
[root@localhost soft]# tar xf zabbix_agents_2.2.0.linux2_6.amd64.tar.gz ###解压
[root@localhost soft]# mkdir /etc/zabbix/
[root@localhost soft]# mv bin/zabbix_get /usr/bin/
[root@localhost soft]# mv bin/zabbix_sender /usr/bin/
[root@localhost soft]# mv sbin/zabbix_agent /usr/bin/
[root@localhost soft]# mv sbin/zabbix_agentd /usr/bin/
[root@localhost soft]# cd conf/
[root@localhost conf]# mv zabbix_agentd.conf /etc/zabbix/
3、修改zabbix_agentd.conf
Hostname=zabbix-client1 ###这里的hostname要与客户端的hostname一致,而且与监控主机中的名字一致!!
ServerActive=192.168.254.153 ####zabbix server的ip
Server=192.168.254.153####zabbix server的ip
[root@localhost zabbix-2.2.0]# groupadd -r zabbix
[root@localhost zabbix-2.2.0]# useradd -g zabbix -s /sbin/nologin zabbix
4、启动客户端进程
[root@localhost conf]# zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf ####指定配置文件启动
[root@localhost conf]# ps -ef | grep zabbix ####查看是否启动
zabbix 1474 1 0 17:20 ? 00:00:00 zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
zabbix 1475 1474 0 17:20 ? 00:00:00 zabbix_agentd: collector [idle 1 sec]
zabbix 1476 1474 0 17:20 ? 00:00:00 zabbix_agentd: listener #1 [waiting for connection]
zabbix 1477 1474 0 17:20 ? 00:00:00 zabbix_agentd: listener #2 [waiting for connection]
zabbix 1478 1474 0 17:20 ? 00:00:00 zabbix_agentd: listener #3 [waiting for connection]
zabbix 1479 1474 0 17:20 ? 00:00:00 zabbix_agentd: active checks #1 [idle 1 sec]
root 1488 1374 0 17:28 pts/0 00:00:00 grep zabbix
[root@localhost tmp]# lsof -i:10050 #####查看开启侦听的端口
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
zabbix_ag 9106 zabbix 4u IPv4 277432 0t0 TCP *:zabbix-agent (LISTEN)
zabbix_ag 9107 zabbix 4u IPv4 277432 0t0 TCP *:zabbix-agent (LISTEN)
zabbix_ag 9108 zabbix 4u IPv4 277432 0t0 TCP *:zabbix-agent (LISTEN)
zabbix_ag 9109 zabbix 4u IPv4 277432 0t0 TCP *:zabbix-agent (LISTEN)
zabbix_ag 9110 zabbix 4u IPv4 277432 0t0 TCP *:zabbix-agent (LISTEN)
zabbix_ag 9111 zabbix 4u IPv4 277432 0t0 TCP *:zabbix-agent (LISTEN)
5、配置 server页面
Configuration -----> Hosts ------->Create host



