当前位置:网站首页>##无监控,不运维,以下是监控里常用的脚本监控
##无监控,不运维,以下是监控里常用的脚本监控
2022-07-05 12:40:00 【51CTO】
一些常用的监控shell(自动修复)
1、tomcat的带自愈
2、nginx的带自愈
3、挂载分区的监测
#!/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 "使用率小于80%,使用率正常"
else
echo "硬盘空间不足,请检查"
fi
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
4、swap分区监测
5、数据库的监测带自愈
边栏推荐
- How do e-commerce sellers refund in batches?
- Using docker for MySQL 8.0 master-slave configuration
- Redis cluster configuration
- 单独编译内核模块
- RHCSA7
- Distributed cache architecture - cache avalanche & penetration & hit rate
- 你的下一台电脑何必是电脑,探索不一样的远程操作
- HiEngine:可媲美本地的云原生内存数据库引擎
- From the perspective of technology and risk control, it is analyzed that wechat Alipay restricts the remote collection of personal collection code
- Keras implements verification code identification
猜你喜欢

HiEngine:可媲美本地的云原生内存数据库引擎

Resnet18 actual battle Baoke dream spirit

JSON parsing error special character processing (really speechless... Troubleshooting for a long time)
![[figure neural network] GNN from entry to mastery](/img/e2/bb045fb03bc255b8659f9ca7cdd26b.jpg)
[figure neural network] GNN from entry to mastery

10 minute fitness method reading notes (5/5)

Super efficient! The secret of swagger Yapi

RHCSA3

UNIX socket advanced learning diary -ipv4-ipv6 interoperability

2021-12-22 transaction record

Add a new cloud disk to Huawei virtual machine
随机推荐
Principle of universal gbase high availability synchronization tool in Nanjing University
Distributed solution - Comprehensive decryption of distributed task scheduling platform -xxljob
关于 SAP UI5 floating footer 显示与否的单步调试以及使用 SAP UI5 的收益
Annotation problem and hidden Markov model
Making and using the cutting tool of TTF font library
Kotlin函数
Pytoch uses torchnet Classerrormeter in meter
CVPR 2022 | single step 3D target recognizer based on sparse transformer
Transactions from January 6 to October 2022
Transactions on December 23, 2021
10 minute fitness method reading notes (3/5)
Compile kernel modules separately
10 minute fitness method reading notes (1/5)
HiEngine:可媲美本地的云原生内存数据库引擎
【Nacos云原生】阅读源码第一步,本地启动Nacos
insmod 提示 Invalid module format
Kotlin变量
Pytoch monolayer bidirectional_ LSTM implements MNIST and fashionmnist data classification
Resnet+attention project complete code learning
How to connect the API interface of Taobao open platform (super detailed)