How To Install Zabbix Server 3.0 on CentOS/RHEL 7/6/5

本文涉及的产品
云数据库 RDS MySQL,集群系列 2核4GB
推荐场景:
搭建个人博客
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
RDS MySQL Serverless 高可用系列,价值2615元额度,1个月
简介:

Zabbix is an open source software for networks and application monitoring. Zabbix provides agents to monitor remote hosts as well as Zabbix includes support for monitoring via SNMP, TCP and ICMP checks. Click here to know more about zabbix.

Zabbix-Monitoring

This article will help you to step by step install Zabbix 3.0 Server on CentOS/RHEL 7/6/5 and Fedora Systems. Before starting installation read below basic requirements to run Zabbix 3.0 LTS.

  • Apache: 1.3.12 or later.
  • PHP: 5.4.0 or later (PHP 7 not supported).
  • MySQL: 5.0.3 or later.
  • OpenIPMI: Required for IPMI support.
  • libssh2: Required for SSH support. Version 1.0 or higher.
  • fping: Required for ICMP ping items.
  • libcurl: Required for web monitoring.
  • libiksemel: Required for Jabber support.
  • net-snmp: Required for SNMP support.

Step 1 – SetUp Apache, MySQL and PHP

In order to use Zabbix we required a Web Server, database server and PHP to work. In this steps we are going to set up these services, You many skip this step if you have already configured it.

Install All Services

# yum install httpd httpd-devel 
# yum install mysql mysql-server 
# yum install php php-cli php-common php-devel php-pear php-gd php-mbstring php-mysql php-xml 

Start All Services

# service httpd start 
# service mysqld start 

MySQL Initial Setup

Run following command to setup mysql initially and secure it

# mysql_secure_installation 

Step 2 – Configure Yum Repository

You can file zabbix repositories package on zabbix official website. You can also use one of following commands to add zabbix repository in your system.

 
 
  
  CentOS/RHEL 7:
 
  
# rpm -Uvh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

 
  
  
CentOS/RHEL 6:
 
  
# rpm -Uvh http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-release-3.0-1.el6.noarch.rpm

 
  
  
CentOS/RHEL 5:
 
  
# rpm -Uvh http://repo.zabbix.com/zabbix/3.0/rhel/5/x86_64/zabbix-release-3.0-1.el5.noarch.rpm 

Step 3 – Install Zabbix Server with MySQL

You have added zabbix yum repository in above step. Now use following command to install Zabbix server with mysql database support packages on your system.

# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-java-gateway 

Step 4 – Setup Zabbix Apache Configuration

Zabbix creates its own apache configuration file /etc/httpd/conf.d/zabbix.conf. Edit this file and just update timezone. More timezone’s

 php_value date.timezone Asia/Kolkata 

After changing value restart Apache service.

# service httpd restart 

Step 5 – Create Zabbix MySQL Database

This installation is using mysql as backend of zabbix, So we need to create MySQL database and User for zabbix installation.

# mysql -u root -p 

mysql> CREATE DATABASE zabbixdb CHARACTER SET UTF8; 
mysql> GRANT ALL PRIVILEGES on zabbixdb.* to zabbix@localhost IDENTIFIED BY 'password'; 
mysql> FLUSH PRIVILEGES; 
mysql> quit 

After creating database restore the default mysql database provided by zabbix. These files can be found at /usr/share/doc/zabbix-server-mysql-<version>/create/ directory.

# cd /usr/share/doc/zabbix-server-mysql-3.0.0/create 

# mysql -u zabbix -p zabbixdb < schema.sql # mysql -u zabbix -p zabbixdb < images.sql # mysql -u zabbix -p zabbixdb < data.sql

Step 6 – Start Zabbix Server

After completing above setup, let’s start Zabbix server using following command.

# service zabbix-server start 

After starting zabbix service, let’s go to Zabbix web installer and finish the installation.

Step 7 – Start Zabbix Web Installer

Zabbix web installer can be access using following url, Change FQDN as per you setup.

http://
 
  svr1.tecadmin.net
 
 /zabbix/ 

and follow the steps as per given screen shots below.

Zabbix Setup Welcome Screen

This is welcome screen of zabbix web installer. Go forward by click on next button.

Install zabbix server step 1

Check for pre-requisities

Check if your system have all required packages, if everything is ok click next.

Install zabbix server step 2

Configure DB Connection

Enter database details created in Step #4 and click Next step.

Install zabbix server step 3

Zabbix Server Details

Install zabbix server step 4

Pre-Installation Summary

In this step will show the summary you have entered previous steps, so simply click next.

Install zabbix server step 5

Install Zabbix

Install zabbix server step 6

Zabbix Login Screen

Login to Zabbix using below default credentials.

Username: admin 
Password: zabbix 

Install zabbix server step 7

After successful login you will get zabbix dashboard like below.

Install zabbix server step 8

Congratulation! Your Zabbix setup has been completed. Read our next article to install zabbix agent and add host in zabbix server.

相关实践学习
如何快速连接云数据库RDS MySQL
本场景介绍如何通过阿里云数据管理服务DMS快速连接云数据库RDS MySQL,然后进行数据表的CRUD操作。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助 &nbsp; &nbsp; 相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
目录
相关文章
|
8月前
|
监控 Linux 应用服务中间件
centos7 部署zabbix5 踩坑笔记
centos7 部署zabbix5 踩坑笔记
248 0
|
监控 PHP Apache
centos7.源码安装zabbix4.4
centos7.源码安装zabbix4.4
|
监控 关系型数据库 MySQL
企业实战(8)CentOS 6.8安装Zabbix-agent 5.0监控主机性能与Mysql数据库
企业实战(8)CentOS 6.8安装Zabbix-agent 5.0监控主机性能与Mysql数据库
191 1
|
4月前
|
监控 前端开发 Linux
centos7系统安装部署zabbix5.0
【9月更文挑战第23天】在CentOS 7系统上部署Zabbix 5.0的步骤包括:安装MariaDB数据库及必要软件包,配置Zabbix仓库,设置数据库并导入Zabbix数据库架构,配置Zabbix服务器与前端参数,启动相关服务,并通过浏览器访问Web界面完成安装向导。
342 0
|
4月前
|
Linux Shell Python
centos执行pip3 install etcd3报错
centos执行pip3 install etcd3报错
|
6月前
|
关系型数据库 MySQL Linux
Linux部署实战前言,MySQL在CentOS安装【单机软件】,MySQL的安装需要root权限,yum install mysql,systemctl enable mysqld开机自启的意思
Linux部署实战前言,MySQL在CentOS安装【单机软件】,MySQL的安装需要root权限,yum install mysql,systemctl enable mysqld开机自启的意思
|
8月前
|
Linux 开发工具
蓝易云 - 在CentOS7/RHEL7上安装OpenSSL1.1.x教程
以上就是在CentOS7/RHEL7上安装OpenSSL 1.1.x的步骤。希望对你有所帮助。
355 0
|
8月前
|
监控 网络协议 Unix
centos7 zabbix安装客户端agent -配置监控远程主机 在需要监控的电脑上安装
centos7 zabbix安装客户端agent -配置监控远程主机 在需要监控的电脑上安装
226 0
|
8月前
|
监控 关系型数据库 MySQL
centos7 zabbix-service 源码编译 安装部署服务端 和 常见安装错误
centos7 zabbix-service 源码编译 安装部署服务端 和 常见安装错误
116 0
|
8月前
|
Linux Docker 容器
CentOS7 Install Docker Compose
CentOS7 Install Docker Compose
173 0