zabbix-agent安装

来源:互联网 发布:做java程序员有前途吗 编辑:程序博客网 时间:2024/05/17 21:46

zabbix_agent安装

1、wget https://nchc.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/3.2.7/zabbix-3.2.7.tar.gz

     注:文件下载目录为/data/software/

2、tar -zxvf zabbix-3.2.7.tar.gz

3、cd zabbix-3.2.7

4、groupadd zabbix

5、useradd -g zabbix zabbix

6、./configure --enable-agent --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2 --prefix=/usr/local/zabbix

7、make

8、make install



zabbix_agent配置

vi /usr/local/zabbix/etc/zabbix_agent.conf

根据数据库配置修改

LogFile=/data/logs/zabbix/zabbix-agentd.log

Server=[Zabbix Server IP] #被动服务端口

ListenPort=10050 #监听端口

ListenIP=127.0.0.1 #不要用默认值0.0.0.0

ServerActive=[Zabbix Server IP] #主动服务端口

HostName=  #起一个名字保证唯一


进入zabbix-web页面,将agent间加入host  Configuration->Hosts->Create Host

Host name 填写 配置文件中的HostName

IP Address 填写agent服务器对应IP


zabbix-agent启动

cd /usr/local/zabbix/sbin

./zabbix_agentd


安装过程错误处理:

错误:configure: error: Curl library not found

解决:yum install libcurl-devel


原创粉丝点击