zabbix系列之二——安装
1Getting zabbix
Four ways of getting:
|
Index |
Option |
note |
|
1 |
Install it from the distribution packages A step-by-step tutorial for installing Zabbix from packages is provided in sub-pages here. |
Several popular OS distributions have Zabbix packages provided. You can use these packages to install Zabbix. |
|
2 |
Download the latest source archive and compile it yourself |
|
|
3 |
Install it from the containers |
|
|
4 |
Download the virtual appliance |
2requirements
3installation from packages
Red Hat Enterprise Linux/CentOS
https://www.zabbix.com/download
3.1Server
|
Index |
step |
Operation |
note |
|
1 |
Install Repository with MySQL database |
rpm -i http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm |
1Has included all requirements (such as the lamp environment) 2install mysql first |
|
2 |
install Zabbix server, frontend, agent |
yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent
|
No affect the installation mysql,just a connection tool |
|
3 |
Create initial database |
mysql -uroot –p password mysql> create database zabbix character set utf8 collate utf8_bin; mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'password'; mysql> quit; |
|
|
4 |
Import initial schema and data. |
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix |
Note: the table ‘users’ has already existed. Causes:in step 3(Create initial database) all tables has been created.thus need to drop all created tables; Solve method: SELECT concat('DROP TABLE IF EXISTS ', table_name, ';') FROM information_schema.tables WHERE table_schema = 'mydb'; mydb换成你想删除的数据库的名字 再复制输出的语句,粘贴执行。 |
|
5 |
Configure the database for Zabbix server |
1 vi /etc/zabbix/zabbix_server.conf 2 DBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=<password> |
|
|
6 |
Start Zabbix server and agent processes |
# systemctl start zabbix-server zabbix-agent httpd # systemctl enable zabbix-server zabbix-agent httpd |
Start Zabbix server and agent processes and make it start at system boot: |
|
7 |
Starting Zabbix server process |
service zabbix-server start or systemctl start zabbix-server |
Note:if using service command to start,then must use the same command to stop,else it maybe not work. |
3.2Fontend
|
Index |
step |
Operation |
note |
|
1 |
Configure PHP for Zabbix frontend |
/etc/httpd/conf.d/zabbix.conf Add php_value date.timezone Asia/Shanghai after: # php_value date.timezone Europe/Riga |
Now your Zabbix server is up and running! |
|
2 |
Visit the fontend |
http://server_ip_or_name/zabbix (http://11.115.110.114:9008/zabbix) |
Error:cannot access Causes: 1zabbix server default port is 80,witch has been used. 2the firewall is open. |
|
3 |
Change the default port |
1 find the apache service port: vi /etc/httpd/conf/httpd.conf 2reset the listen and servername Listen 9008 ServerName 121.43.161.35:9008 3restart apache service service httpd restart 3add the port to firewall firewall-cmd --zone=public --add-port=9008/tcp --permanent
|
Reference link: https://www.cnblogs.com/moxiaoan/p/5683743.html
https://www.jianshu.com/p/41a7d90e55e3 after this,you can access the zabbix web fontend with: http:// 121.43.161.35:9008/zabbix |
|
4 |
Follow steps described in Zabbix documentation: Installing frontend |
|
https://www.zabbix.com/download
|
3.3Installing frontend
|
Index |
step |
Operation |
note |
|
1 |
open Zabbix URL: http://<server_ip_or_name>/zabbix |
http:// 121.43.161.35:9008/zabbix |
https://www.zabbix.com/documentation/3.4/manual/installation/install#installing_frontend |
|
2 |
Make sure that all software prerequisites are met. |
1A failed optional prerequisite is displayed in orange and has a Warning status. With a failed optional pre-requisite, the setup may continue. 2 If there is a need to change the Apache user or user group, permissions to the session folder must be verified. Otherwise Zabbix setup may be unable to continue. |
|
|
3 |
Enter details for connecting to the database. |
Zabbix database must already be created |
|
|
4 |
Enter Zabbix server details. |
|
|
|
5 |
Review a summary of settings. |
|
|
|
6 |
Finish the installation. |
|
|
|
7 |
Zabbix frontend is ready! The default user name is Admin, password zabbix. |
|
Cofiguration review
|
Column |
detail |
note |
|
Database server |
11.115.110.114 |
|
|
Database port |
3306 |
|
|
Database name |
zabbix |
|
|
Database user |
zabbix |
|
|
Database password |
********** |
|
|
Zabbix server |
11.115.110.114 |
|
|
Zabbix server port |
10051 |
|
|
Zabbix server name |
zabbix-server |
|
zabbix系列之二——安装的更多相关文章
- Open vSwitch系列之二 安装指定版本ovs
在ovs学习过程中,如果自己想要安装一个ovs交换机其实一条简单的命令 apt install openvswitch 就可以了,但是这种方法只能安装低版本的ovs.在特殊情况下需要安装指定版本,例 ...
- 转 --maven系列之二 安装与配置
http://blog.csdn.net/jiuqiyuliang/article/details/45390313 [项目管理和构建]——Maven下载.安装和配置(二) 标签: 工具开发maven ...
- Kettle系列文章二(安装配置Kettle+SqlServer+简单的输入输出作业)
一.下载 Kettle下载地址:https://community.hitachivantara.com/docs/DOC-1009855 下拉到DownLoad,点击红框中的链接进行下载.. 二.解 ...
- zabbix系列之九——安装后配置四web监控
1web监控 描述 详细 备注 概要 1) 需要定义 web 场景(包括一个或多个 HTTP请求),zabbix服务器根据预定义的命令周期性的执行这些步骤. 2) Web 场景和 ...
- Nginx知多少系列之(二)安装
目录 1.前言 2.安装 3.配置文件详解 4.Linux下托管.NET Core项目 5.Linux下.NET Core项目负载均衡 6.Linux下.NET Core项目Nginx+Keepali ...
- Zabbix系列之二——添加监控主机步凑
1.登录监控平台,配置——主机——创建主机 2.主机设置 3.添加模板
- Grafana +Zabbix 系列二
Grafana +Zabbix 系列二 Grafana 简介补充 Grafana自身并不存储数据,数据从其他地方获取.需要配置数据源 Grafana支持从Zabbix中获取数据 Grafana优化图形 ...
- 【转】RHadoop实践系列之二:RHadoop安装与使用
RHadoop实践系列之二:RHadoop安装与使用 RHadoop实践系列文章,包含了R语言与Hadoop结合进行海量数据分析.Hadoop主要用来存储海量数据,R语言完成MapReduce 算法, ...
- Hadoop 系列(二)安装配置
Hadoop 系列(二)安装配置 Hadoop 官网:http://hadoop.apache.or 一.Hadoop 安装 1.1 Hadoop 依赖的组件 JDK :从 Oracle 官网下载,设 ...
随机推荐
- Java之集合(二十一)LinkedTransferQueue
转载请注明源出处:http://www.cnblogs.com/lighten/p/7505355.html 1.前言 本章介绍无界的阻塞队列LinkedTransferQueue,JDK7才提供了这 ...
- springBoot上传文件时MultipartFile报空问题解决方法
springBoot上传文件时MultipartFile报空问题解决方法 1.问题描述: 之前用spring MVC,转成spring boot之后发现上传不能用.网上参考说是spring boot已 ...
- attachEvent和addEventListener区别总结
1.attachEvent与addEventListener的区别 支持的浏览器不同.attachEvent在IE9以下的版本中受到支持.其它的都支持addEventListener. 参数不同.ad ...
- Gen代码解读
源代码为: package com.test19; public class Test04 { void spin(){ int i; for(i=0;i<100;i++){ ; } i = 0 ...
- Boosting和Bagging的异同
二者都是集成学习算法,都是将多个弱学习器组合成强学习器的方法. 1.Bagging (主要关注降低方差) Bagging即套袋法,其算法过程如下: A)从原始样本集中抽取训练集.每轮从原始样本集中使用 ...
- 4-nginx-反向代理到tomcat及负载均衡
反向代理相比于正向代理, 比如使用搬瓦工时, 就是位于客户端的正想代理, 而反向代理则是服务器端的代理, 主要用于实现请求分发, 负载均衡等功能 正向代理推荐一个: 搬瓦工, 比较好用.. 反向代理主 ...
- 使用Xshell和Xftfp部署简单的项目
最近本人偶尔接触到该如何部署项目,朋友要求截图,趁此之际,简单总结一下,以供大家分享,更希望各位大神指点,大家相互学习,有问题的勿喷. 1.使用环境:win 7+MyEclipse 2014 + to ...
- 关于 AXI协议的学习解释说明
AXI(Advanced eXtensible Interface)是一种总线协议,该协议是ARM公司提出的AMBA(Advanced Microcontroller Bus Architecture ...
- ZJOI2018 Round2 游记
day0 高铁上颓了一部电影,然后闭上眼睛就到了 醒来之后发现被绑了艹,袖子被打了个结,搞了 \(20\) 分钟才解开,真想把绑我的人吊起来 \(xxx\) 公交车上碰到一位长者,被教育了一顿 长者: ...
- [转]验证发生前无法调用 Page.IsValid。应在 CausesValidation=True 且已启动回发的控件
在ASP.Net中,为了方便表单的验证,提供了验证控件来完成表单输入数据的验证.这些验证控件确实是功能强大,为写表单程序提供了极大的便利.但是,在不熟悉的情况下,经常碰到问题.其中,最常见的是遇到错误 ...