> CentOS > CentOS教程 >

CentOS 6.5 安装部署zabbix

下载

http://www.zabbix.com/downloads/2.2.1/zabbix_agents_2.2.1.linux2_6_23.i386.tar.gz

所有Agent版本下载:http://www.zabbix.com/download2.php





安装

1)创建用户

#groupadd zabbix

#useradd -g zabbix zabbix

2)解压即可

    #mkdir /etc/zabbix_agent

#tar -zxvf  zabbix_agents_2.2.1.linux2_6_23.i386.tar.gz -C /etc/zabbix_agent



3)安装服务

cat /etc/services |grep zabbix*        

zabbix-agent 10050/tcp Zabbix Agent

zabbix-agent 10050/udp Zabbix Agent

zabbix-trapper 10051/tcp Zabbix Trapper

zabbix-trapper 10051/udp Zabbix Trapper



4)修改配置文件

vim /etc/zabbix_agent/conf/zabbix_agent.conf

    修改Zabbix server的ip

    Server=192.168.30.145          #server端IP地址,请修改

5)启动

etc/zabbix_agent/sbin/zabbix_agentd -c etc/zabbix_agent/conf/zabbix_agentd.conf

Echo "etc/zabbix_agent/sbin/zabbix_agentd -c etc/zabbix_agent/conf/zabbix_agentd.conf " >>/etc/rc.local

6)添加到系统目录

ln -s /etc/zabbix_agent/sbin/* /usr/local/sbin/

ln -s /etc/zabbix_agent/bin/* /usr/local/bin/

7)测试,下面的命令需要在server端执行,其中192.168.30.145是agent的ip

#/usr/local/zabbix/bin/zabbix_get -s192.168.30.145 -p10050 -k"system.uptime"

115030
(责任编辑:IT)