zabbix installation and deployment in Centos7

 

 

table of Contents:

1, of ZABBIX Introduction

2, LAMP / LNMP Introduction

3, of ZABBIX installation and deployment

 

1.Zabbix Introduction

  • zabbix is ​​based on providing a distributed system monitoring and network monitoring capabilities WEB interface, enterprise-class open source solutions.

  • zabbix can monitor various network parameters to ensure the safe operation of the server system; and to provide a flexible notification mechanism to allow system administrators to quickly locate / solve problems.

  • zabbix consists of two parts, zabbix server and optional components zabbix agent.

  • zabbix server can provide monitoring, data collection and other functions on the remote server / network status through SNMP, zabbix agent, ping, port monitoring and other methods, it can run on Linux, Solaris, HP-UX, AIX, Free BSD, Open BSD, OS X and other platforms.

 

2.LAMP / LNMP Introduction

  • LAMP: Linux + Apache + Mysql / MariaDB + Perl / PHP / Python to build a common set of dynamic Web sites or servers open source software itself is its own program, but as is often used together, have a growing high degree of compatibility, together form a powerful Web application platform.

  • LNMP: LNMP refers to a written Nginx CentOS / Debian-based, PHP, MySQL, phpMyAdmin, eAccelerator a key installation package. LNMP can easily install a production environment on the VPS, dedicated hosting.
  • L:linux

  • A:apache

  • N:nginx

  • M:mysql,mariaDB

  • P:php,python,perl

 

3.Zabbix Installation and Deployment

3.1, Zabbix installation

Close SeLinux 

temporarily closed: setenforce 0

Permanent closure: vi / etc / selinux / config

Turn off the firewall

3.1.1, the temporary closure

systemctl stop firewalld.service

3.1.2, permanently closed

systemctl disable firewalld.service

3.1.3, the installation environment

LAMP 

3.1.3.1, install apache

yum install -y httpd

self-service httpd start the boot

systemctl enable httpd

Start httpd service

Systemctl start httpd

3.1.3.2, install mysql

Because mysql to charge Community Edition free, so we installed mariadb, it is good enough.

yum install -y mariadb mariadb-server

Boot from the start

Systemctl enable mariadb

Run Service

Systemctl start mariadb

Check whether the installation is successful Mariadb

3.1.3.3, install php environment

yum install -y php php-mysql

 

3.1.3.4, installation zabbix

(1) download package

rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm

(2), the installation package zabbix

yum install -y zabbix-server-mysql zabbix-get zabbix-web zabbix-web-mysql zabbix-agent zabbix-sender

(3) create a zabbix library and set of utf8 character encoding format

create database zabbix character set utf8 collate utf8_bin;

(4) create an account and password authorization

grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';

Zabbxi user may assign permissions from loclhost all zabbix all operations on the database tables, and set a password for zabbix

Refresh

flush privileges;

exit退出

(5)、导入表

切换到此目录下

cd /usr/share/doc/zabbix-server-mysql-3.2.10/

进行解压

gunzip create.sql.gz

对表进行导入

(6)、配置zabbix server配置文件

配置文件目录

cd /etc/zabbix

对zabbix_server.conf进行配置

运行zabbix-server服务

开机自启zabbix-server服务

(7)、配置php

cd /etc/httpd/conf.d

配置时间

vi zabbix.conf

Systemctl restart httpd

(8)、登陆zabbix网址设置

192.168.85.11/zabbix

 

password是我们设置的数据库密码zabbix

登陆账户是Admin

密码是zabbix

(9)、设置中文

 

(10)、对服务器自身进行监控

(11)、解决中文乱码无法显示的问题

从我们电脑win7里面找到黑体右键复制到桌面然后拉到zabbix服务器上面

直接修改字体名字

切换到这个目录下面: /usr/share/zabbix/fonts

现在的中文字体是显示正常的了

 

Guess you like

Origin www.cnblogs.com/wpnr/p/11928004.html