Skip to content

Commit

Permalink
zabbix
Browse files Browse the repository at this point in the history
  • Loading branch information
opcache committed May 30, 2020
1 parent 21adff9 commit afd1006
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 57 deletions.
63 changes: 6 additions & 57 deletions zabbix/README.md
Original file line number Diff line number Diff line change
@@ -1,59 +1,8 @@
# Quick-Installation-ZABBIX
# docker-zabbix-4.4.7

## zabbix安装脚本
### 脚本作者:火星小刘
### web:www.huoxingxiaoliu.com
### email:xtlyk@163.com
## docker快速安装zabbix:4.4.7
## 有问题可以反馈 https://aq2.cn/189.html

* 要求纯净centos6/7系统(强烈建议用7,用6的话安装非常缓慢)
* 关闭防火墙
* 关闭selinux
* php>=5.6

#### 运行**server-install.sh**安装zabbix服务器端
由于zabbix3需要php5.6以上,因此脚本会删除原有php环境从新安装

**mysql默认root密码123321**
**zabbix数据库名称zabbix**
**zabbix数据库用户名zabbix**
**zabbix数据库密码zabbix**

#### 在被监控终端运行**agent-install.sh**安装

## 更新日志

### 2017-06-01更新
1. 删除graphtrees

### 2017-05-02更新
1. 升级zabbix到3.0.9

### 2017-02-28更新
1. 升级zabbix到3.0.8

### 2016-12-29更新
1. 升级zabbix到3.0.7

### 2016-12-09更新
1. 升级zabbix到3.0.6

### 2016-07-25更新
1. 升级zabbix到3.0.5

### 2016-07-25更新
1. 升级zabbix到3.0.4

### 2016-06-10更新
1. 增加centos7支持
2. 添加zabbix_java启动

### 2016-06-09更新
1. 升级zabbix到3.0.3
2. 添加吴兆松的**graphtrees**插件
[graphtrees github](https://github.com/OneOaaS/graphtrees)
[graphtrees 实现效果](http://t.cn/RqAeAxT)

### 2015-11-20更新
1. agent-install.sh增加wget安装
2. 升级zabbix到2.4.7
3. server-install.sh复制zabbix-2.4.7.tar.gz到/var/www/html/zabbix,agent-install.sh从服务端调取zabbix-2.4.7.tar.gz安装包
```
bash docker-zabbix-4.4.7.sh
```
34 changes: 34 additions & 0 deletions zabbix/docker-zabbix-4.4.7.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/sh
## docker快速安装zabbix:4.4.7
## 有问题可以反馈 https://aq2.cn/189.html
docker run -it -d --name mysql \
--net=host \
-v /data/mysql:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD=test123123 \
opcache/zabbix:4.4.7-mariadb

docker run --name zabbix-server-mysql -t \
-e DB_SERVER_HOST="127.0.0.1" \
-e MYSQL_DATABASE="zabbix" \
-e MYSQL_USER="zabbix" \
-e MYSQL_PASSWORD="zabbix" \
-e MYSQL_ROOT_PASSWORD="test123123" \
-v /etc/localtime:/etc/localtime:ro \
--net=host \
-d opcache/zabbix:4.4.7-server


docker run --name zabbix-web-nginx-mysql -t \
-e DB_SERVER_HOST="127.0.0.1" \
-e MYSQL_DATABASE="zabbix" \
-e MYSQL_USER="zabbix" \
-e MYSQL_PASSWORD="zabbix" \
-e MYSQL_ROOT_PASSWORD="zabbix" \
-e ZBX_SERVER_HOST="127.0.0.1" \
-e PHP_TZ="Asia/Shanghai" \
-e ZBX_TYPE="frontend" \
-e ZBX_OPT_TYPE="nginx" \
--net=host \
-d opcache/zabbix:4.4.7-web

echo ok

0 comments on commit afd1006

Please sign in to comment.