zabbix agent安装及zabbix-agentd.conf文件配置

版权声明:本文为博主原创文章,转载请标记转载地址,谢谢 https://blog.csdn.net/qq_26707177/article/details/83748632

目录

 

zabbix-agent

应用场景:

安装

添加Repository:

安装Zabbix Agent

编辑Zabbix Agent 配置文件

启动Zabbix Agent

添加开机启动


zabbix-agent

应用场景:

Zabbix监控系统提供两种监控Linux主机的方法,一种是启用主机上的SNMP协议,另一种是在主机上安装Zabbix Agent服务,本篇介绍Linux系统下Zabbix Agent的安装与使用。

查看有没有安装zabbix-agent

find / -name zabbix_agentd.conf

查看zabbix-agent进程有没有启动

ps -ef | grep zabbix

安装

添加Repository:

本文使用yum方式安装Zabbix Agent,在安装前首先添加对应的yum repository,以下列出了CentOS/RHEL版本的添加地址:

CentOS/RHEL 7:

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

安装Zabbix Agent

yum install zabbix-agent

编辑Zabbix Agent 配置文件

vim /etc/zabbix/zabbix_agentd.conf

Server=[zabbix server ip]

ServerActive=[zabbix server ip]
Hostname=[ Hostname of client system ]

Server=ip
ListenPort=32220
ServerActive=ip
Hostname=9k-back-02

启动Zabbix Agent

systemctl start zabbix-agent

添加开机启动

systemctl enable zabbix-agent

猜你喜欢

转载自blog.csdn.net/qq_26707177/article/details/83748632