In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
How Zabbix proxy works:
1. How it works:
Zabbixproxy is a monitoring proxy server, it collects the monitored data, first stores it in the buffer, the storage time can be set by the configuration file, and then transmits it to the Zabbixserver; monitoring agent needs a separate database.
Benefits of Zabbix proxy:
Remote monitoring and control
When the communication of the monitoring location is inconvenient
When monitoring thousands of devices,
Simplify maintenance of distributed monitoring and reduce the load of zabbixserver
Zabbix proxy configuration
Scene:
133: zabbix server
135: zabbix proxy
136: zabbix client
How it works:
Zabbix proxy collects client information, sends it to zabbix server,zabbix server according to trigger, and sends alarm message!
135 configuration:
Groupadd zabbix
Useradd-g zabbix-M-s / sbin/nologin zabbix
Tar zxvf zabbix-2.2.6.tar.gz
Cd zabbix-2.2.6
/ configure-- prefix=/usr/local/zabbix-- enable-proxy-- enable-agent-- with-mysql-- with-net-snmp-- with-libcurl
Make
Make install
[root@zabbiclient2 etc] # cat zabbix_proxy.conf | grep-v "#" | grep-v "^ $"
ProxyMode=0
Server=192.168.10.133 # # zabbix server address
ServerPort=10051
Hostname=zabbixproxy1 # # hostname. This configuration has nothing to do with the actual hostname of the machine, but it must be the same as the hostname when the machine was added in zabbix server, otherwise zabbix server will not get the information.
LogFile=/tmp/zabbix_proxy.log
PidFile=/tmp/zabbix_proxy.pid
DBHost=localhost
DBName=zabbix_proxy
DBUser=zabbixproxy1
DBPassword=zabbixproxy1
ConfigFrequency=300
DataSenderFrequency=60
# # zabbix proxy sends the data in the local database to zabbix server on a regular basis, so you need to configure db information here
In addition, the local mysql (the local mysql database used by my zabbix proxy) service must be started, otherwise zabbix proxy will not work!
If the above information is well configured, you also need to create a db and a user on the db used by zabbix proxy
Mysql > create database zabbix_proxy
Mysql > grant all on zabbix_proxy.* to 'zabbixproxy1'@'localhost' identified by' zabbixproxy1'
Mysql-uzabbix-palletababixproxy1' zabbix schema.sql)
[root@zabbiclient2 etc] # cat zabbix_agentd.conf | grep-v "#" | grep-v "^ $"
PidFile=/tmp/zabbix_agentd.pid
LogFile=/tmp/zabbix_agentd.log
DebugLevel=3
Server=192.168.10.133 # # ip address of zabbix server
ServerActive=192.168.10.133 # # ip address of zabbix server
Hostname=zabbixproxy1
The configuration on the 136 machine is as follows:
Groupadd zabbix
Useradd-g zabbix-M-s / sbin/nologin zabbix
Tar zxvf zabbix-2.2.6.tar.gz
Cd zabbix-2.2.6
. / configure-prefix=/usr/local/zabbix-enable-agent-with-net-snmp-with-libcurl
Make
Make install
[root@zabbiclient1 etc] # pwd
/ usr/local/zabbix/etc
[root@zabbiclient1 etc] # cat zabbix_agentd.conf | grep-v "#" | grep-v "^ $"
PidFile=/tmp/zabbix_agentd.pid
LogFile=/tmp/zabbix_agentd.log
DebugLevel=4
Server=192.168.10.135
ServerActive=192.168.10.135
Hostname=zabbixclient2
133The configuration on the machine is as follows: for zabbix server construction, see the following connection:
Http://superleedo.blog.51cto.com/12164670/1925656
Add a zabbix proxy to the machine, see attachment
Click save to create a proxy named zabbixproxy1, using the proxy method of active!
Add 136machines to zabbixproxy1 below, see attachment
Click the save button to add!
Do not monitor through the agent and through the agent monitoring, the display is different, see attachment
Check the monitoring information of 136 machines, see attachment
There are two problems encountered during compilation:
1:checking for mysql_config... / usr/bin/mysql_config
Checking for main in-lmysqlclient... No
Configure: error: Not found mysqlclient library
Solution:
Yum-y install mysql-devel
2:checking for curl-config... No
Configure: error: Curl library not found
[root@localhost zabbix-2.2.6] # yum-y install curl-devel
3:
Received empty response from zabbix agent at [*. *], Assuming that agent dropped connection because of access permission.
Reason:
Modified on zabbix client
Server=192.168.10.135 # # now the ip is the ip of zabbix proxy, and zabbix agentd must be restarted
ServerActive=192.168.10.135
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.