当前位置:网站首页>There is no monitoring and no operation and maintenance. The following is the commonly used script monitoring in monitoring
There is no monitoring and no operation and maintenance. The following is the commonly used script monitoring in monitoring
2022-07-05 13:01:00 【51CTO】
Some common monitoring shell( Auto repair )
1、tomcat Band self healing
2、nginx Band self healing
3、 Mount partition monitoring
#!/bin/bash
a=`df -hl | awk '{print $5}'| awk 'NR==2'| tr -d '%'`
b=`df -hl | awk '{print $5}'| awk 'NR==3'| tr -d '%'`
c=`df -hl | awk '{print $5}'| awk 'NR==4'| tr -d '%'`
d=`df -hl | awk '{print $5}'| awk 'NR==5'| tr -d '%'`
e=`df -hl | awk '{print $5}'| awk 'NR==6'| tr -d '%'`
f=`df -hl | awk '{print $5}'| awk 'NR==7'| tr -d '%'`
g=`df -hl | awk '{print $5}'| awk 'NR==8'| tr -d '%'`
h=`df -hl | awk '{print $5}'| awk 'NR==9'| tr -d '%'`
i=`df -hl | awk '{print $5}'| awk 'NR==10'| tr -d '%'`
if [ $a -le 80 ] && [ $b -le 80 ] && [ $c -le 80 ] && [ $d -le 80 ] && [ $e -le 80 ] && [ $f -le 80 ] && [ $g -le 80 ] && [ $h -le 80 ] && [ $i -le 80 ]
then
echo " The utilization rate is less than 80%, The utilization rate is normal "
else
echo " There is not enough space on the hard disk , Please check "
fi
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
4、swap Zoning monitoring
5、 Database monitoring with self-healing
边栏推荐
- 逆波兰表达式
- Shi Zhenzhen's 2021 summary and 2022 outlook | colorful eggs at the end of the article
- Kotlin variable
- Taobao short videos are automatically released in batches without manual RPA open source
- 自然语言处理系列(一)入门概述
- Hundred days to complete the open source task of the domestic database opengauss -- openguass minimalist version 3.0.0 installation tutorial
- Compilation principle reading notes (1/12)
- SAP UI5 视图里的 OverflowToolbar 控件
- leetcode:221. 最大正方形【dp状态转移的精髓】
- 155. Minimum stack
猜你喜欢

深度长文探讨Join运算的简化和提速

How to connect the API interface of Taobao open platform (super detailed)

From the perspective of technology and risk control, it is analyzed that wechat Alipay restricts the remote collection of personal collection code

Introduction aux contrôles de la page dynamique SAP ui5

Transactions from December 29, 2021 to January 4, 2022

Taobao product details API | get baby SKU, main map, evaluation and other API interfaces

太方便了,钉钉上就可完成代码发布审批啦!

简单上手的页面请求和解析案例

Leetcode20. Valid parentheses

Comprehensive upgrade of Taobao short video photosynthetic platform
随机推荐
潘多拉 IOT 开发板学习(HAL 库)—— 实验7 窗口看门狗实验(学习笔记)
Compile kernel modules separately
石臻臻的2021总结和2022展望 | 文末彩蛋
RHCSA2
我在滴滴做开源
[Nacos cloud native] the first step of reading the source code is to start Nacos locally
2021-12-21 transaction record
Discussion on error messages and API versions of SAP ui5 getsaplogonlanguage is not a function
Get to know linkerd project for the first time
太方便了,钉钉上就可完成代码发布审批啦!
A small talk caused by the increase of sweeping
Transactions from January 14 to 19, 2022
阿里云SLB负载均衡产品基本概念与购买流程
百日完成国产数据库opengausss的开源任务--openGuass极简版3.0.0安装教程
CVPR 2022 | single step 3D target recognizer based on sparse transformer
Super efficient! The secret of swagger Yapi
实战模拟│JWT 登录认证
RHCAS6
10 minute fitness method reading notes (3/5)
Shi Zhenzhen's 2021 summary and 2022 outlook | colorful eggs at the end of the article