Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Zabbix monitoring solution-the latest official version 4.4 [recommended]

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Zabbix

2019-10-12 Chenxin

Referenc

Https://www.zabbix.com/documentation/4.0/zh/manual

Https://baike.baidu.com/item/zabbix/6780368?fr=aladdin

Brief introduction

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, and can run on platforms such as Linux,Solaris,HP-UX,AIX,Free BSD,Open BSD,OS X.

Similar products include Grafana,Nagios,Ganglia,Open-Falcon and so on.

Server installation and deployment

Refer to https://www.zabbix.com/download?zabbix=4.4&os_distribution=centos&os_version=8&db=mysql installation connection instructions

The latest version of Zabbix-4.4 installed here.

The address of this lab describes

Server: 192.168.143.130

Agent: 192.168.143.130131

one。 Select platform

Select the version of zabbix / operating system category / operating system version / database category, etc.

Then different installation connection instructions will be given according to the user's choice. Here, take Zabbix4.4,Centos7,mysql database as an example.

two。 Install according to the above selection

a. Install the Zabbix source

Rpm-Uvh https://repo.zabbix.com/zabbix/4.4/rhel/7/x86_64/zabbix-release-4.4-1.el7.noarch.rpm # loads the source yum clean allls / etc/yum.repos.d/... of zabbix Zabbix.repo # extra this file

b. Install Zabbix server, frontend, agent

# yum-y install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-agent (zabbix component, which may need to be executed multiple times due to network speed problems)

Error 1.Delta RPMs disabled because / usr/bin/applydeltarpm not installed.

Indicates that deltarpm is not installed. Check the package information.

Yum provides'* / applydeltarpm' # check the location of dependent packages and prompt for the following deltarpm-3.6-3.el7.x86_64: Create deltas between rpms # prompt for the package deltarpm-3.6pm-3.el7.x86_64Repo: @ baseMatched from:Filename: / usr/bin/applydeltarpm

Execute installation command

Yum-y install deltarpm # installation command

If it is still caused by a network problem (the network speed is too slow), then try many times (each download, the progress will increase. Enter cache)

c. Initialize database and import table structure

Initialize the database (mysql version 5.7)

Create database zabbix character set utf8 collate utf8_bin;CREATE USER 'zabbix'@'localhost' IDENTIFIED BY' sj...sg';CREATE USER 'zabbix'@'%' IDENTIFIED BY' sj...sg';GRANT ALL PRIVILEGES ON zabbix.* TO 'zabbix'@'%';GRANT ALL PRIVILEGES ON zabbix.* TO' zabbix'@localhost

Import data structure

# zcat / usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql-uzabbix-p zabbix

d. Modify the DB configuration file for zabbix server

Vim / etc/zabbix/zabbix_server.confDBHost=192.168.143.130DBPassword=xxxDBPort=10306DBSocket=/tmp/mysql.sock

e. Modify the PHP configuration file of the zabbix server front end

Vim / etc/httpd/conf.d/zabbix.conf, uncomment and set the correct time zone (Asia/Shanghai) php_value date.timezone Europe/Riga

f. Start the Zabbix server and the Agent agent process. Set up boot self-boot.

Start the service

# systemctl restart zabbix-server zabbix-agent httpd

The actual call is

/ usr/sbin/zabbix_server-c / etc/zabbix/zabbix_server.conf/usr/sbin/zabbix_agentd-c / etc/zabbix/zabbix_agentd.conf/usr/sbin/httpd

Set Boot self-boot

# systemctl enable zabbix-server zabbix-agent httpd

Process Open Port description

Zabbix_agentd 10050zabbix_server 10051httpd 80

After the above steps, zabbix started to run.

Configure the Zabbix front end (the front end enters the configuration)

Http://192.168.143.130/zabbix

For configuration, please refer to the screenshot instructions on the front-end configuration in the https://www.zabbix.com/documentation/4.4/manual/installation/install#installing_frontend link.

Or follow the following process (the same as the official website).

Process description

1. Go to the welcome page

two。 Confirm that all relevant plug-ins have been installed, and if there are any outstanding ones, you can install them manually.

3. Enter the DB configuration interface and enter the IP,PORT,dbname,username,password of the Zabbix database.

4. Enter information about zabbix server (hostname / IP, open port 10051 MagneName can be empty).

When finished, the page prompts are as follows

Congratulations! You have successfully installed Zabbix frontend.Configuration file "/ etc/zabbix/web/zabbix.conf.php" created.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report