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

Installation and basic introduction of zabbix

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains the "installation and basic introduction of zabbix", the content of the explanation is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "zabbix installation and basic introduction" bar!

System version CentOS Linux release 7.2.1511 (Core) IP address 192.168.174.136

# turn off the firewall and selinux

# install zabbix server and zabbix agent and related dependencies

[root@zabbix_1 ~] # yum install zabbix-server zabbix-web zabbix-server-mysql zabbix-web-mysql mariadb-server mariadb- y

# modify php time zone

[root@zabbix_1 ~] # sed-I's reply # php_value date.timezone Europe/Riga@php_value date.timezone Asia/Shanghai@g' / etc/httpd/conf.d/zabbix.conf

# start the database

[root@zabbix_1 ~] # systemctl start mariadb

# create zabbix database and users

[root@zabbix_1 ~] # mysqlMariaDB [(none)] > create database zabbix character set utf8 collate utf8_bin;MariaDB [(none)] > grant all on zabbix.* to zabbix@'localhost' identified by '123456 MariaDB [(none)] > exit

# Import data to database

[root@zabbix_1] # cd / usr/share/doc/zabbix-server-mysql-3.0.8/ [root@zabbix_1 zabbix-server-mysql-3.0.8] # lltotal 1868 RW Murray. 1 root root 98 Feb 27 17:22 AUTHORS-rw-r--r--. 1 root root 713761 Feb 27 17:22 ChangeLog-rw-r--r--. 1 root root 17990 Feb 27 17:23 COPYING-rw-r--r--. 1 root root 1159237 Mar 2 23:44 create.sql.gz-rw-r--r--. 1 root root 52 Feb 27 17:24 NEWS-rw-r--r--. 1 root root 188 Feb 27 17:22 README [root @ zabbix_1 zabbix-server-mysql-3.0.8] # zcat create.sql.gz | mysql- uzabbix-p123456 zabbix

# verify whether the import is successful

[root@zabbix_1 ~] # mysqlMariaDB [(none)] > use zabbix;MariaDB [zabbix] > show tables; # Import successfully if there is data

# modify zabbix server configuration file

[root@zabbix_1 ~] # vim / etc/zabbix/zabbix_server.conf # modified to the following value [root@zabbix_1 ~] # cat / etc/zabbix/zabbix_server.conf | grep-v "#" | grep-v "^ $" LogFile=/var/log/zabbix/zabbix_server.logLogFileSize=0PidFile=/var/run/zabbix/zabbix_server.pidDBHost=localhostDBName=zabbixDBUser=zabbixDBPassword=123456 DBSocket=/var/lib/mysql/mysql.sockDBPort=3306SNMPTrapperFile=/var/log/snmptrap/snmptrap.logTimeout=4AlertScriptsPath=/usr/lib/zabbix/alertscriptsExternalScripts=/usr/lib/zabbix/externalscriptsLogSlowQueries=3000

# start the zabbix-server service

[root@zabbix_1 ~] # systemctl start zabbix-server.service [root@zabbix_1 ~] # systemctl start httpd

# access http://192.168.174.136/zabbix/setup.php through browser

# default user name: Admin password: zabbix

# modify the language

# installed successfully

Thank you for your reading, the above is the content of "installation and basic introduction of zabbix". After the study of this article, I believe you have a deeper understanding of the installation and basic introduction of zabbix, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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

Database

Wechat

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

12
Report