当前位置:网站首页>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
边栏推荐
- RHCSA1
- 开发者,云原生数据库是未来吗?
- 使用 jMeter 对 SAP Spartacus 进行并发性能测试
- Halcon 模板匹配实战代码(一)
- Why is your next computer a computer? Explore different remote operations
- MySQL giant pit: update updates should be judged with caution by affecting the number of rows!!!
- [Nacos cloud native] the first step of reading the source code is to start Nacos locally
- A few years ago, I outsourced for four years. Qiu Zhao felt that life was like this
- stm32和电机开发(从架构图到文档编写)
- MySQL splits strings for conditional queries
猜你喜欢
Four common problems of e-commerce sellers' refund and cash return, with solutions
Install rhel8.2 virtual machine
初次使用腾讯云,解决只能使用webshell连接,不能使用ssh连接。
Laravel document reading notes -mews/captcha use (verification code function)
Distance measuring sensor chip 4530a used in home intelligent lighting
CF:A. The Third Three Number Problem【关于我是位运算垃圾这个事情】
SAP UI5 DynamicPage 控件介绍
Pinduoduo flag insertion remarks API
CVPR 2022 | single step 3D target recognizer based on sparse transformer
Simply take stock reading notes (3/8)
随机推荐
Get to know linkerd project for the first time
2021.12.16-2021.12.20 empty four hand transaction records
开发者,云原生数据库是未来吗?
Simply take stock reading notes (2/8)
Introduction to sap ui5 dynamicpage control
SAP SEGW 事物码里的 ABAP Editor
跨平台(32bit和64bit)的 printf 格式符 %lld 输出64位的解决方式
Vonedao solves the problem of organizational development effectiveness
【云原生】Nacos-TaskManager 任务管理的使用
Insmod prompt invalid module format
Notes for preparation of information system project manager --- information knowledge
Tips and tricks of image segmentation summarized from 39 Kabul competitions
Taobao flag insertion remarks | logistics delivery interface
SAP SEGW 事物码里的 Association 建模方式
stirring! 2022 open atom global open source summit registration is hot!
Taobao product details API | get baby SKU, main map, evaluation and other API interfaces
Research: data security tools cannot resist blackmail software in 60% of cases
From the perspective of technology and risk control, it is analyzed that wechat Alipay restricts the remote collection of personal collection code
946. 验证栈序列
About the single step debugging of whether SAP ui5 floating footer is displayed or not and the benefits of using SAP ui5