码迷,mamicode.com
首页 > 其他好文 > 详细

zabbix-proxy的安装以及使用

时间:2019-05-03 09:54:42      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:pid   启动   .com   adb   gre   地址   sea   lib   url   

############yum源#############
[root@zabbix-proxy zabbix]# cat /etc/yum.repos.d/zabbix.repo
[zabbix]
name=Zabbix Official Repository - $basearch
baseurl=http://repo.zabbix.com/zabbix/3.4/rhel/7/$basearch/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
[zabbix-non-supported]
name=Zabbix Official Repository non-supported - $basearch
baseurl=http://repo.zabbix.com/non-supported/rhel/7/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
gpgcheck=0
[root@zabbix-proxy zabbix]#

###########安装#############
yum install zabbix-proxy mariadb mariadb-server -y
systemctl start mariadb
systemctl enable mariadb
mysql_secure_installation
create database zabbix-proxy character set utf8 collate utf8_bin;
grant all on zabbix-proxy. to zabbix@‘localhost‘ identified by ‘123456‘;
grant all on zabbix-proxy.
to zabbix-proxy@‘localhost‘ identified by ‘123456‘;
zcat schema.sql.gz |mysql -uzabbix-proxy -p123456 -h 127.0.0.1 zabbix-proxy

#########配置文件##############
[root@zabbix-proxy zabbix]# grep -E "^[a-Z]" /etc/zabbix/zabbix_proxy.conf
ProxyMode=0 ##主动模式 zabbix-proxy主动给sever端
Server=192.168.249.10 ##zabbix-server的地址
Hostname=zabbix-proxy ##server添加的时候用的到
LogFile=/var/log/zabbix/zabbix_proxy.log
LogFileSize=0
PidFile=/var/run/zabbix/zabbix_proxy.pid
SocketDir=/var/run/zabbix
DBName=zabbix-proxy
DBUser=zabbix-proxy
DBPassword=123456
SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
Timeout=4
ExternalScripts=/usr/lib/zabbix/externalscripts
LogSlowQueries=3000
[root@zabbix-proxy zabbix]#

##########启动#######################
systemctl start zabbix-proxy
systemctl enable zabbix-proxy

zabbix-proxy的安装以及使用

标签:pid   启动   .com   adb   gre   地址   sea   lib   url   

原文地址:https://blog.51cto.com/wsxxsl/2388288

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!