1. 查看linux系统版本及内核;
[root@LAMP tools]# uname -r 2.6.32-431.3.1.el6.x86_64
2. 创建用户名和组;
[root@LAMP ~]#groupadd zabbix [root@LAMP ~]#useradd –g zabbixzabbix
3. 创建新目录;
[root@LAMP ~]# mkdir /root/tools [root@LAMP ~]#mkdir /etc/zabbix [root@LAMP ~]#chown –Rzabbix:zabbix /etc/zabbix [root@LAMP ~]# cd tools/
4. 下载zabbix agent;
[root@LAMPtools]#wget http://www.zabbix.com/downloads/2.2.1/zabbix_agents_2.2.1.linux2_6.amd64.tar.gz
5. 解压zabbix agent;
[root@LAMPtools]#tar zxvfzabbix_agents_2.2.1.linux2_6.amd64.tar.gz –C /etc/zabbix
6. 编辑zabbix配置文件;
[root@LAMP ~]#vim/etc/zabbix/conf/zabbix_agentd.conf 修改为: LogFile=/etc/zabbix/zabbix_agentd.log #指定日志文件目录; Server=10.9.80.128 #监控服务器端IP地址;
7. 启动zabbix agent;
[root@nfs conf]#/etc/zabbix/sbin/zabbix_agentd -c /etc/zabbix/conf/zabbix_agent.conf [root@nfs conf]# ps -ef |grepzabbix_agent zabbix 2161 1 0 19:51 ? 00:00:00 /etc/zabbix/sbin/zabbix_agentd-c /etc/zabbix/conf/zabbix_agentd.conf zabbix 2162 2161 0 19:51 ? 00:00:00/etc/zabbix/sbin/zabbix_agentd: collector [idle 1 sec] zabbix 2163 2161 0 19:51 ? 00:00:00/etc/zabbix/sbin/zabbix_agentd: listener #1 [waiting for connection] zabbix 2164 2161 0 19:51 ? 00:00:00/etc/zabbix/sbin/zabbix_agentd: listener #2 [waiting for connection] zabbix 2165 2161 0 19:51 ? 00:00:00/etc/zabbix/sbin/zabbix_agentd: listener #3 [waiting for connection] zabbix 2166 2161 0 19:51 ? 00:00:00/etc/zabbix/sbin/zabbix_agentd: active checks #1 [idle 1 sec] root 2169 2044 0 19:51 pts/0 00:00:00 grep zabbix_agent [root@nfs conf]# netstat -lntp|grep -i 10050 tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 2161/zabbix_agentd
本文出自 “jerry在路上” 博客,请务必保留此出处http://jerry0117.blog.51cto.com/1664014/1537566
Zabbix Agent安装(linux版),布布扣,bubuko.com
原文地址:http://jerry0117.blog.51cto.com/1664014/1537566