Centos 6 Zabbix : Install

本文涉及的产品
云数据库 RDS MySQL,集群系列 2核4GB
推荐场景:
搭建个人博客
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
RDS MySQL Serverless 高可用系列,价值2615元额度,1个月
简介:
 
Install Zabbix which is an enterprise open source monitoring system.
It's possible to monitor not only Linux but Windows, Solaris, IBM AIX and others.
[1]
[2]
[3]
[4] Install some other required packages and Zabbix repository.
[root@dlp ~]#  
yum -y install php-mysql php-gd php-xml php-bcmath 
 
[root@dlp ~]#  
yum -y install http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm

[5] Install Zabbix server.
Install Zabbix Agent to monitor Zabbix server itself, too.
[root@dlp ~]#  
yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix_get

[6] Create a database for Zabbix.
[root@dlp ~]#  
mysql -u root -p 
 
Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 12 Server version: 5.1.73 Source distribution Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. 
mysql>  
create database zabbix; 
 
Query OK, 1 row affected (0.00 sec)
mysql>  
grant all privileges on zabbix.* to zabbix@'localhost' identified by 'password'; 
 
Query OK, 0 rows affected (0.00 sec)
mysql>  
grant all privileges on zabbix.* to zabbix@'%' identified by 'password'; 
 
Query OK, 0 rows affected (0.00 sec)
mysql>  
flush privileges; 
 
Query OK, 0 rows affected (0.00 sec)
mysql>  
exit 
 
Bye
[root@dlp ~]#  
cd /usr/share/doc/zabbix-server-mysql-*/create 
 
[root@dlp create]#  
mysql -u root -p zabbix < schema.sql 
 
Enter password:
[root@dlp create]#  
mysql -u root -p zabbix < images.sql 
 
Enter password:
[root@dlp create]#  
mysql -u root -p zabbix < data.sql 
 
Enter password:
[7] Configure and start Zabbix server.
[root@dlp ~]#  
vi /etc/zabbix/zabbix_server.conf
# line 73: add
 
DBHost=localhost
# line 107: add DB password for Zabbix
 
DBPassword=password
[root@dlp ~]#  
/etc/rc.d/init.d/zabbix-server start 
 
Starting ZABBIX server: 
[ OK ]
 
[root@dlp ~]#  
chkconfig zabbix-server on 
 

[8] Configure and start Zabbix Agent to monitor Zabbix server itself.
[root@dlp ~]#  
vi /etc/zabbix/zabbix_agentd.conf
# line 85: specify Zabbix server
 
Server= 
127.0.0.1
# line 126: specify Zabbix server
 
ServerActive= 
127.0.0.1
# line 137: change to the own hostname
 
Hostname= 
dlp.srv.world
[root@dlp ~]#  
/etc/rc.d/init.d/zabbix-agent start 
 
Starting ZABBIX agent: 
[ OK ]
 
[root@dlp ~]#  
chkconfig zabbix-agent on 
 

[9] Change httpd settings like follows.
[root@dlp ~]#  
vi /etc/httpd/conf.d/zabbix.conf
# line 11: change access permittion for Zabbix frontend
 
Allow from  
localhost 10.0.0.0/24
# line 18: uncomment and change to your timezone
 
php_value date.timezone  
Asia/Tokyo
[root@dlp ~]#  
/etc/rc.d/init.d/httpd restart 
 
Stopping httpd: 
[ OK ]
 
Starting httpd: 
[ OK ]
相关实践学习
如何快速连接云数据库RDS MySQL
本场景介绍如何通过阿里云数据管理服务DMS快速连接云数据库RDS MySQL,然后进行数据表的CRUD操作。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助 &nbsp; &nbsp; 相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
目录
相关文章
|
9月前
|
监控 Linux 应用服务中间件
centos7 部署zabbix5 踩坑笔记
centos7 部署zabbix5 踩坑笔记
277 0
|
监控 PHP Apache
centos7.源码安装zabbix4.4
centos7.源码安装zabbix4.4
114 0
|
监控 关系型数据库 MySQL
企业实战(8)CentOS 6.8安装Zabbix-agent 5.0监控主机性能与Mysql数据库
企业实战(8)CentOS 6.8安装Zabbix-agent 5.0监控主机性能与Mysql数据库
204 1
|
14天前
|
监控 Linux PHP
【02】客户端服务端C语言-go语言-web端PHP语言整合内容发布-优雅草网络设备监控系统-2月12日优雅草简化Centos stream8安装zabbix7教程-本搭建教程非docker搭建教程-优雅草solution
【02】客户端服务端C语言-go语言-web端PHP语言整合内容发布-优雅草网络设备监控系统-2月12日优雅草简化Centos stream8安装zabbix7教程-本搭建教程非docker搭建教程-优雅草solution
65 20
|
5月前
|
监控 前端开发 Linux
centos7系统安装部署zabbix5.0
【9月更文挑战第23天】在CentOS 7系统上部署Zabbix 5.0的步骤包括:安装MariaDB数据库及必要软件包,配置Zabbix仓库,设置数据库并导入Zabbix数据库架构,配置Zabbix服务器与前端参数,启动相关服务,并通过浏览器访问Web界面完成安装向导。
466 0
|
5月前
|
Linux Shell Python
centos执行pip3 install etcd3报错
centos执行pip3 install etcd3报错
|
7月前
|
关系型数据库 MySQL Linux
Linux部署实战前言,MySQL在CentOS安装【单机软件】,MySQL的安装需要root权限,yum install mysql,systemctl enable mysqld开机自启的意思
Linux部署实战前言,MySQL在CentOS安装【单机软件】,MySQL的安装需要root权限,yum install mysql,systemctl enable mysqld开机自启的意思
|
9月前
|
监控 网络协议 Unix
centos7 zabbix安装客户端agent -配置监控远程主机 在需要监控的电脑上安装
centos7 zabbix安装客户端agent -配置监控远程主机 在需要监控的电脑上安装
248 0
|
9月前
|
监控 关系型数据库 MySQL
centos7 zabbix-service 源码编译 安装部署服务端 和 常见安装错误
centos7 zabbix-service 源码编译 安装部署服务端 和 常见安装错误
129 0
|
9月前
|
Linux Docker 容器
CentOS7 Install Docker Compose
CentOS7 Install Docker Compose
180 0

热门文章

最新文章