In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Preface
Recently, we need to deploy a set of zabbix monitoring server. We have only played with zabbix injection vulnerabilities before, but we have not yet arranged them. It is found that many of the zabbix on the Internet are compiled by centos+ source code, so write down this article to record the installation process. Let's take a look at the detailed introduction:
Environment ubuntu+apache+mysql+php, those that have not been built can refer to this article.
Php settings:
/ / important. When you install zabbix, you will check whether these contents have been modified.
Vim / etc/php5/apache2/php.ini; date.timezone = = > add Asia/Shanghai max_input_time = 600 max_execution_time= 600 post_max_size = 32m after =
Install the zabbix server
Sudo apt-get install zabbix-server-mysql
Start zabbix-server
Cat / etc/default/zabbix-server # the following paragraph # This is by default set to "no" because a MySQL database needs to be prepared # and configured before you can start the Zabbix server for the first time. # # Instructions on how to set up the database can be found in # / usr/share/doc/zabbix-server-mysql/README.Debian START=no
Modify START=yes
Restart zabbix-server
Service zabbix-server restart
If only the service is started, but port 10051 is not open, you can check the log / var/log/zabbix-server/zabbix-serber.log to see the reason for the failure. Before, port 10051 has been unable to start. Check the database connection problem when the log is analyzed. The database connection ip is written as the ip address of ubuntu, but msyql does not open the external connection, resulting in unable to connect to the database, mdzz.
View help documentation
Cat/usr/share/doc/zabbix-server-mysql/README.Debian create database zabbix character set utf8; create user 'zabbix'@'%' identified by' zabbix'; grant all on zabbix.* to 'zabbix'@'%' identified by' zabbix'; zcat / usr/share/zabbix-server-mysql/ {schema,images,data} .sql.gz\ | mysql-uzabbix-pzabbix zabbix
Or change to the appropriate directory:
Zcat {schema,images,data} .sql.gz\ | mysql-uzabbix-pzabbix-hloalhost zabbix
Set up database information
Mysql > create database zabbix;Query OK, 1 row affected (0.00 sec) mysql > grant all on zabbix.* to 'zabbix'@'localhost' identified by' zabbix'; # create users accessing the database, Query OK, 0 rows affected (0 sec) mysql > flush privileges;Query OK, 0 rows affected (0 sec) exit// switch to zcat {schema,images,data} .sql.gz\ | mysql-uzabbix-pzabbix-hloalhost zabbix under / usr/share/zabbix-server-mysql directory
Install the zabbix client
Install the client on the monitored host, if
Apt-get install zabbix-agent
Modify the configuration file:
[root@localhost zabbix] # vim zabbix_agentd.conf Server=localhost # specify server. Others can be modified without modification.
Then start zabbix-agent:
Service zabbix-agent start
Install the website program for zabbix
Sudo apt-get install zabbix-frontend-php (database root,root,root)
Establish a soft connection in the / var/www/html directory:
Ln-s / usr/share/zabbix
Type localhost/zabbix in the browser to start the installation
If prompted that the configuration file zabbix.conf.php is missing, copy it to the directory after download
Sudo cp / home/yoara/zabbix.conf.php / etc/zabbix/zabbix.conf.php
Before using zabbix for monitoring, to understand that a complete monitoring process can be simply described as: Hostgroups (host group)-> Hosts (host)-> Applications (monitoring application set)-> Items (monitoring item)-> Triggers (trigger)-> Actions (alarm action)-> Medias (alarm mode)-> User groups (user group)-> Users (user)
Summary:
Zabbix is divided into three parts: database, server and client, database and server are installed on one server, and client is installed on the monitored server.
The client is responsible for collecting cpu, memory and other information of the monitored host.
Finally, several pictures of zabbix monitoring are attached.
All right, that's all of this article. I hope the content of this article can bring some help to your study or work. If you have any questions, you can leave a message and exchange messages. Thank you for your support.
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.