In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Zabbix proxy is installed on another machine and uses a different database than zabbix server to avoid data confusion.
Zabbix proxy uses zabbix version 2.2.0
(1) download the zabbix installation package
Wget https://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/2.2.0/zabbix-2.2.0.tar.gztar zxf zabbix-2.2.0.tar.gz
(2) add users and groups
Groupadd zabbixuseradd zabbix-g zabbix
(3) create a database
> create database zabbix_proxy character set utf8; > grant all privileges on zabbix_proxy.* to zabbix@'localhost' identified by 'zabbix'
(4) Import table structure
Mysql-uzabbix-p zabbix_proxy
< database/mysql/schema.sql 注:zabbix proxy数据库只需要导入schema表即可,其他的不需要导入,以免发生数据错乱。 (5)编译安装 cd zabbix-2.2.0./configure --prefix=/usr/local/zabbix --enable-proxy --enable-agent --with-net-snmp --with-mysql --with-ssh3 make && make install (6)修改配置文件 vi /usr/local/zabbix/etc/zabbix_proxy.confServer=127.0.0.1 改成Server=192.168.179.128 #(改成zabbix server的ip)Hostname=Zabbix proxy #(根据情况更改,要求唯一)#DBHost=localhost #(如数据库不在本机,则加一行另写上数据库所在主机的ip)DBName=zabbix_proxyDBUser=zabbixDBPassword #默认为空,所以在下面添加一行DBPassword=zabbix #proxy配置文件里有代理模式,默认为主动。#ProxyMode=0ProxyMode=1 #为被动模式,根据需求进行设置。 使用代理的agent需要在各自的agentd.conf配置文件里定义server与serveractive,将ip设置为proxy所在主机的ip。 (7)启动服务 cd /usr/local/zabbix/sbin./zabbix_proxy -c /usr/local/zabbix/etc/zabbix_proxy.conf (8)在zabbix server的web端添加代理 a.在web页面点击Administrator-DM b.创建代理create proxy Proxy name:proxy名称,此名称必须和proxy配置文件里定义的Hostname一致 Proxy mode:proxy模式,分为主动模式和被动模式 Active:主动模式,proxy主动连接zabbix server,并发送数据给zabbix server Passive:被动模式,zabbix server连接proxy来获取数据 主动和被动都是针对proxy来说的。 Host:添加需要代理监控的主机 主动模式: 被动模式:C. add hosts and use proxies
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.