美文网首页
centos7在被监控服务器安装zabbix-agent服务

centos7在被监控服务器安装zabbix-agent服务

作者: 塔塔七 | 来源:发表于2019-01-06 23:11 被阅读0次

1/引入zabbix源

rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm

2/安装zabbix-agent

yum install zabbix-agent -y

3/修改配置文件

PidFile=/var/run/zabbix/zabbix_agentd.pid

LogFile=/var/log/zabbix/zabbix_agentd.log

LogFileSize=0

Server=172.16.3.152                  #zabbix server

ServerActive=172.16.3.152:10051      #zabbix server  主动提交监控数据时使用

Hostname=salt-master147              #zabbix-agent标识 可以是主机名一样

RefreshActiveChecks=60                #主动刷新提交数据失败间隔重新提交时间

BufferSize=1000                      #缓存大小

MaxLinesPerSecond=200                #处理监控类型为log何eventlog日志时,agent每秒最大发送的行数。默认为100行

Timeout=30                            #超时时间

UnsafeUserParameters=1                #允许所有字符的参数传递给用户定义的参数     

Include=/etc/zabbix/zabbix_agentd.d/*.conf

4/重启zabbbix-agent

service zabbix-agent restart

相关文章

网友评论

      本文标题:centos7在被监控服务器安装zabbix-agent服务

      本文链接:https://www.haomeiwen.com/subject/hfoerqtx.html