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-server building

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

LAMP environment yum install-y httpd mariadb-server mariadb php php-mysql php-gd libjpeg* php-ldap php-odbc php-pear php-xml php-xmlrpc php-mhash

View the software version

Rpm-qa httpd php mariadb

Restart the database and httpsystemctl restart mariadbsystemctl restart httpd to enter the zabbix official website, I use the latest version of zabbix

Https://www.zabbix.com/download?zabbix=4.2&os_distribution=centos&os_version=7&db=mysqlrpm-Uvh https://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-2.el7.noarch.rpmyum clean allyum-y install zabbix-server-mysql zabbix-web-mysql zabbix-agent enters the database and creates the zabbix database mysql-uroot-p

Password / / enter the password. If you start it for the first time, the password is empty by default.

Mysql > create database zabbix character set utf8 collate utf8_bin

Mysql > grant all privileges on zabbix.* to zabbix@localhost identified by 'password'; / / Note that this password is the password of the zabbix database

Mysql > quit

Import zabbix database zcat / usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql-uzabbix-p zabbix modify zabbix server file vim / etc/zabbix/zabbix_server.conf

Find this line, uncomment DBPassword, and enter the zabbix password you created after the "=" sign. Here is zabbix.

Restart zabbix and httpsystemctl restart zabbix-server zabbix-agent httpd to enter zabbix's web interface, enter http://server_ip/zabbix in the browser to enter this interface, and click next setp

Found that there is a Fail, need to modify the php.ini file

Modify the file, find the wrong item date.timezone, uncomment, add downtown, then save, restart the service, refresh the web interface vim / etc/php.ini

Now it has become OK.

Enter zabbix in the password here, that is, you have just created the password of the zabbix database in the database, and then you can complete the configuration in the next step.

This completes the creation. The default account password is Admin/zabbix.

Finally, the parameter description of zabbix-server configuration file is attached.

DBHost / / database host address

DBName / / Database name

DBPassword / / database password

DBPort / / database port, default is 3306

Storage path of AlertScriptsPath / / alarm script

CacheSize / / Storage the cache of monitoring data

CacheUpdateFrequency / / Update the cache time once

DebugLevel / / log level

LogFile / / log file

LogFileSize / / log file size, exceeding automatic cutting

LogSlowQueries / / database slow query records (in milliseconds)

PidFile / / PID file

In ProxyConfigFrequency / / Proxy passive mode, how many seconds does Server synchronize configuration files to proxy?

In ProxyDataFrequency / / passive mode, how many seconds does Server request historical data from proxy?

StartDiscoverers / / Discovery rule threads

Timeout / / connection Agent timeout

TrendCacheSize / / Historical data cache size

Users running User / / Zabbix

HistoryCacheSize / / History cache size

ListenIP / / listens to the local IP address

ListenPort / / listening port

LoadModule / / Module name

LoadModulePath / / module path.

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