In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Zabbix proxy can collect performance and availability data instead of zabbix server, then report the data to zabbix server, and to some extent share the pressure of zabbix server.
After proxy collects the data, it first caches the data locally, and then passes it to zabbix server after a certain period of time, so that the data is not lost due to any temporary communication problems on the server. This time is determined by the parameters ProxyLocalBuffer and ProxyOfflineBuffer in the proxy configuration file.
The zabbix proxy database must be separated from server, or the data will be corrupted.
The deployment environment is ready. Pay attention to the version of zabbix_server here. The version of proxy must correspond to the version of server.
System version: CentOS 7.5
Software version: zabbix_proxy 3.4
Download the yum feed:
Rpm-Uvh rpm-ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.noarch.rpm
Rpm-Uvh http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm
When you are finished, install proxy and mysql database directly with yum
Yum install-y zabbix-proxy-mysql # install zabbix-proxy
Yum install-y mysql-server # installation database
First start and log in to mysql to create our proxy database
Systemctl start mysqld.service # launch mysql
Systemctl enable mysqld.service # set boot up
Enter mysql:
Create database zabbix_proxy character set utf8 collate utf8_bin; # Building Library
Grant all privileges on zabbix_proxy.* to zabbix@localhost identified by 'newpassword'; # authorization
Import table structure
Zcat / usr/share/doc/zabbix-proxy-mysql-3.4.15/schema.sql.gz | mysql- u zabbix-p zabbix_proxy # Import table structure
Edit the configuration file for zabbix_proxy
Vim / etc/zabbix/zabbix_proxy.conf # modify the configuration file of zabbix-proxy
Basic parameter settings:
Address of Server=192.168.X.X # zabbix-server
Hostname=zabbix-proxy # Hostname
DBHost=localhost # database host
DBName=zabbix_proxy # Database name
DBUser=zabbix # Database user name
DBPassword=newpassword # database password
What is not configured in the configuration file is as follows:
# ProxyLocalBuffer=0
# time for data retention (in hours)
# ProxyOfflineBuffer=1
# how long do you want to keep the data if you can't connect to Server (in hours, default is 1 hour)
# DataSenderFrequency=1
# interval between sending data (default is 1 second)
# StartPollers=5
# number of threads started
# StartIPMIPollers=0
# number of threads starting IPMI
Start zabbix_proxy and set boot up
Systemctl start zabbix-proxy.service # launch zabbix-proxy
Systemctl enable zabbix-proxy.service # Boot start
After completing the above steps, you can log in to our web interface to configure zabbix_proxy
Create a proxy:
Set up the agent: the name here must be the same as the name of the agent in the configuration file, otherwise an error will be reported.
Created successfully, host detected:
Abnormal problem:
Mysql change password:
Log in to mysql5.7 for the first time to force password change
Grant all privileges on *. * to 'root'@'%' identified by' root'
Alter user 'root'@'localhost' identified by' root'
Password policy problem exception message:
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
First of all, you need to set the authentication strength level of the password. Set the global parameter of validate_password_policy to LOW.
Enter the setting statement "set global validate_password_policy=LOW;" to set the value.
The current password length is 8, so you don't need to modify it if you don't mind. Generally speaking, set the password to 6 digits and set the global parameter of validate_password_length to 6.
Enter the setting statement "set global validate_password_length=6;" to set the value.
# flush privileges; # Refresh permissions
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.