当前位置:网站首页>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
边栏推荐
- 解决uni-app配置页面、tabBar无效问题
- Vonedao solves the problem of organizational development effectiveness
- Simply take stock reading notes (2/8)
- Kotlin variable
- Halcon 模板匹配实战代码(一)
- About the single step debugging of whether SAP ui5 floating footer is displayed or not and the benefits of using SAP ui5
- 超高效!Swagger-Yapi的秘密
- SAP UI5 FlexibleColumnLayout 控件介绍
- Rocky基础知识1
- 奔跑,开路
猜你喜欢
Talk about my drawing skills in my writing career
CF:A. The Third Three Number Problem【关于我是位运算垃圾这个事情】
实战模拟│JWT 登录认证
深度长文探讨Join运算的简化和提速
谈谈我写作生涯的画图技巧
Lepton 无损压缩原理及性能分析
I met Tencent in the morning and took out 38K, which showed me the basic smallpox
Principle and performance analysis of lepton lossless compression
解决uni-app配置页面、tabBar无效问题
10 minute fitness method reading notes (5/5)
随机推荐
实战模拟│JWT 登录认证
初识Linkerd项目
Hiengine: comparable to the local cloud native memory database engine
Comprehensive upgrade of Taobao short video photosynthetic platform
太方便了,钉钉上就可完成代码发布审批啦!
ABAP editor in SAP segw transaction code
Taobao product details API | get baby SKU, main map, evaluation and other API interfaces
Get to know linkerd project for the first time
Developers, is cloud native database the future?
Shi Zhenzhen's 2021 summary and 2022 outlook | colorful eggs at the end of the article
Overflow toolbar control in SAP ui5 view
Kotlin function
谈谈我写作生涯的画图技巧
RHCSA7
【Nacos云原生】阅读源码第一步,本地启动Nacos
国内市场上的BI软件,到底有啥区别
【云原生】Nacos中的事件发布与订阅--观察者模式
SAP SEGW 事物码里的 ABAP 类型和 EDM 类型映射的一个具体例子
[cloud native] event publishing and subscription in Nacos -- observer mode
Compile kernel modules separately