In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Zabbix is an enterprise-level open source solution based on WEB interface that provides distributed system monitoring and network monitoring capabilities. Zabbix can monitor various network parameters to ensure the safe operation of the server system, and provides a flexible notification mechanism to enable system administrators to quickly locate / solve various problems.
Zabbix consists of two parts, zabbix server and optional component zabbix agent.
Zabbix server can provide remote server / network status monitoring, data collection and other functions through SNMP,zabbix agent,ping, port monitoring and other methods. It can run on platforms such as Linux,Solaris,HP-UX,AIX,Free BSD,Open BSD,OS X.
Recently, the company deployed zabbix to monitor the server and record its own operation information. Here is a step to install it on the test environment:
1. Installation environment:
1. System environment: CentOS Linux release 7.5.1804 (Core)
2. Zabbix version: zabbix-release-3.4-2.el7.noarch
3. In the test environment, the firewall is turned off (it is not recommended to turn it off in the production environment, set the firewall according to the requirements)
[root@centos78 ~] # systemctl stop firewlld.service turn off the firewall
[root@centos78 ~] # systemctl disable firewalld.service boot disable firewall startup
4. Close Selinux
[root@centos78 ~] # sed-I's etc/selinux/config'/ etc/selinux/config
[root@centos78 ~] # setenforce 0
Second, install the database
1. Specify to download the latest version 10.2, and edit the download path of the installation package:
[root@centos78 ~] # vim / etc/yum.repos.d/base.repo (no base.repo can be created by yourself)
[mariadb]
Name = MariaDB
Baseurl = http://yum.mariadb.org/10.2/centos7-amd64
Gpgkey = https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
Gpgcheck = 1
2. Install mariadb 10.2
Yum install mariadb-server
3. Set mariadb
[root@centos78 ~] # systemctl start mariadb start
[root@centos78 ~] # systemctl enable mariadb setting boot
[root@centos78 ~] # systemctl status mariadb to view startup status
III. Installation and configuration of Zabbix3.4
1. Download and install Zabbix
[root@centos78 ~] # rpm-ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm (download the latest version of Zabbix)
[root@centos78 ~] # yum install zabbix-server-mysql zabbix-web-mysql-y
2. Create and import data
[root@centos78 ~] # mysql
Welcome to the MariaDB monitor. Commands end with; or\ g.
Your MariaDB connection id is 8
Server version: 10.2.17-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or'\ h' for help. Type'\ c'to clear the current input statement.
MariaDB [(none)] > create database zabbix character set utf8 collate utf8_bin; create database zabbix
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)] > grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix'; sets zabbix permissions and password
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)] > exit exit
Bye
Import database
[root@centos78 ~] # zcat / usr/share/doc/zabbix-server-mysql-3.4.13/create.sql.gz | mysql- uzabbix-pzabbix zabbix
Configure database users and passwords
[root@centos78 ~] # vim / etc/zabbix/zabbix_server.conf modify configuration file and set password
DBPassword=zabbix
[root@centos78 ~] # grep-n'^'[a Murz] / etc/zabbix/zabbix_server.conf to view key configuration information
38:LogFile=/var/log/zabbix/zabbix_server.log
49:LogFileSize=0
72:PidFile=/var/run/zabbix/zabbix_server.pid
82:SocketDir=/var/run/zabbix
101:DBName=zabbix database name
117:DBUser=zabbix user name
126:DBPassword=zabbix database password
330:SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
448:Timeout=4
490:AlertScriptsPath=/usr/lib/zabbix/alertscripts
500:ExternalScripts=/usr/lib/zabbix/externalscripts
536:LogSlowQueries=3000
Start zabbix and set boot up
[root@centos78 ~] # systemctl start zabbix-server
[root@centos78 ~] # systemctl enable zabbix-server
Edit Zabbix front-end PHP configuration to change time zone
[root@centos78 ~] # vim / etc/httpd/conf.d/zabbix.conf
Php_value max_execution_time 300
Php_value memory_limit 128M
Php_value post_max_size 16M
Php_value upload_max_filesize 2M
Php_value max_input_time 300
Php_value max_input_vars 10000
Php_value always_populate_raw_post_data-1
Php_value date.timezone Asia/Shanghai # modified to Asia and Shanghai
Start http and set to enable startup
[root@centos78 ~] # systemctl start httpd
[root@centos78 ~] # systemctl enable httpd
Fourth, install Zabbix Web
1. Access through the browser and configure the information
[root@centos78 ~] # cat / etc/zabbix/web/zabbix.conf.php View build configuration file information
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.