Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yangpeng committed Jan 17, 2021
1 parent 33c2a5c commit 038cd4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
47. [监控域名HTTPS证书过期时间](https://github.com/yangpeng14/DevOps/blob/master/ops/%E7%9B%91%E6%8E%A7%E5%9F%9F%E5%90%8DHTTPS%E8%AF%81%E4%B9%A6%E8%BF%87%E6%9C%9F%E6%97%B6%E9%97%B4.md)
48. [使用 Nextcloud 3分钟搭建个人网盘](https://github.com/yangpeng14/DevOps/blob/master/ops/%E4%BD%BF%E7%94%A8Nextcloud3%E5%88%86%E9%92%9F%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E7%BD%91%E7%9B%98.md)
49. [容器部署ELK7.10,适用于生产](https://github.com/yangpeng14/DevOps/blob/master/ops/%E5%AE%B9%E5%99%A8%E9%83%A8%E7%BD%B2ELK7.10-%E9%80%82%E7%94%A8%E4%BA%8E%E7%94%9F%E4%BA%A7.md)
50. [Zabbix简单监控es实践](https://github.com/yangpeng14/DevOps/blob/master/ops/zabbix%E7%AE%80%E5%8D%95%E7%9B%91%E6%8E%A7elk%E5%AE%9E%E8%B7%B5.md)

### 七、Podman知识
1. [Podman 会取代 Docker 吗?](https://github.com/yangpeng14/DevOps/blob/master/podman/podman%E4%BC%9A%E5%8F%96%E4%BB%A3docker%E5%90%97.md)
Expand Down
4 changes: 3 additions & 1 deletion ops/zabbix简单监控elk实践.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![](../img/elk-status.png)

## 创建监控 ELK 脚本
## 创建监控 ES 脚本

```bash
# zabbix agent 创建 scripts 目录并安装jq命令
Expand All @@ -13,6 +13,8 @@ $ yum install -y jq
$ touch es_monitoring.sh && chmod +x es_monitoring.sh
$ vim es_monitoring.sh

#!/usr/bin/env bash

case $1 in
active_primary_shards)
result=`curl --user elastic:password -s -XGET 192.168.0.1:9200/_cluster/health | jq .$1`
Expand Down

0 comments on commit 038cd4c

Please sign in to comment.