In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Zabbix is an enterprise-level open source solution based on WEB interface that provides distributed system monitoring and network monitoring capabilities. Monitor various network parameters to ensure the safe operation of the server system, and provide a soft notification mechanism for system administrators to quickly locate / solve various problems.
Zabbix consists of two parts, zabbix server and optional component zabbix agent.
Installation and preparation of zabbix environment
Linux system version: CentOS 7
Zabbix version: 3.4
Mysql database: 5.0.3 or above
Server installation, first download the yum source
1) download zabbix3.4 yum feeds
Rpm-ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
2) install Zabbix-server package and zabbix-agent package
Yum-y install zabbix-server-mysql zabbix-web-mysql zabbix-agent
3) download mysql yum feeds
Rpm-ivh https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
4) View the currently available Mysql installation sources
Yum repolist enabled | grep "mysql.*-community.*"
Mysql-connectors-community/x86_64 MySQL Connectors Community 51
Mysql-tools-community/x86_64 MySQL Tools Community 63
Mysql57-community/x86_64 MySQL 5.7 Community Server 267
5) install mysql database
Yum-y install mysql-community-server
6) start mysql to set boot up
Systemctl start mysqld
Systemctl enable mysqld
7) enter mysql and change your password
Cat / var/log/mysqld.log | grep password # get the mysql default password
# mysql-u root-pRir.*sJUX6M*
ALTER USER USER () IDENTIFIED BY 'newpassword'
8) create database and zabbix users and authorize
Create database zabbix character set utf8 collate utf8_bin
Grant all privileges on zabbix.* to zabbix@localhost identified by 'newpassword'
9) Import initial schema (Schema) and data
Cd / usr/share/doc/zabbix-server-mysql-3.4.10/ # default yum installation data structure file
Zcat create.sql.gz | mysql-uzabbix-pnewpassword-D zabbix
10) after completing the above steps, we can modify the configuration file to authorize the service and start the Zabbix Server service
Remember to back up cp / etc/zabbix/zabbix_server.conf / etc/zabbix/zabbix_server.conf.bak first
Vim / etc/zabbix/zabbix_server.conf
LogFile=/var/log/zabbix/zabbix_server.log
LogFileSize=0
PidFile=/var/run/zabbix/zabbix_server.pid
SocketDir=/var/run/zabbix
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=newpassword
SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
Timeout=4
AlertScriptsPath=/usr/lib/zabbix/alertscripts
ExternalScripts=/usr/lib/zabbix/externalscripts
LogSlowQueries=3000
11) start the zabbix_server service and set boot
Systemctl start zabbix-server
Systemctl enable zabbix-server
2. Edit the PHP configuration of the Zabbix front end
1) the Apache configuration file for the zabbix front end is located in / etc/httpd/conf.d/zabbix.conf.
Vim / etc/httpd/conf.d/zabbix.conf
Php_value date.timezone Asia/Shanghai # in general, most of the configurations have been completed and only need to modify this time zone
2) restart apache and set boot
Systemctl start httpd
Systemctl enable httpd
Third, log in to the front page of zabbix for final configuration.
Open browser access: http://ip address + Port / zabbix
There may be an error here: chmod-R 777 / etc/zabbix/web/
Without surprise, we can see the interface of zabbix:
Environmental monitoring
Initialize the database
Fill in the details
Summary of all configurations
Installation
Login default user: Admin password: configure after zabbix login ~
The initial interface after login
Reference:
Https://www.cnblogs.com/Dev0ps/p/8378470.html
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.