【未完】zabbix安装server和agent端

zabbix-被监控端安装

网站:http://www.zabbix.com/download.php

下载源码包:

wget http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-2.4.5-1.el7.x86_64.rpm

wget http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-agent-2.4.5-1.el7.x86_64.rpm

wget http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpm

#rpm -ivh zabbix-*    统一安装


修改配置文件:

#vim /etc/zabbix/zabbix_agentd.conf

    PidFile=/var/run/zabbix/zabbix_agentd.pid    不修改

    LogFile=/var/log/zabbix/zabbix_agentd.log    不修改

    Server=x.x.x.x    改成zabbix-server服务器ip

    Hostname=cp-nginx    改成被监控主机的主机名hostname

    保存并退出


将zabbix-agent添加到开机自启动服务项

#systemctl enable zabbix-agent.service

#systemctl start zabbix-agent.servcie

        






参考文档:CentOS 安装zabbix 2.0.5版本

http://www.centoscn.com/image-text/install/2013/0806/1093.html

你可能感兴趣的:(linux,安装,centos,zabbix)