当前位置:网站首页>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
边栏推荐
- 研究:数据安全工具在 60% 的情况下无法抵御勒索软件
- RHCSA3
- 逆波兰表达式
- NFT: how to make money with unique assets?
- SAP ui5 objectpagelayout control usage sharing
- Install rhel8.2 virtual machine
- Hundred days to complete the open source task of the domestic database opengauss -- openguass minimalist version 3.0.0 installation tutorial
- Simply take stock reading notes (2/8)
- 《2022年中國銀行業RPA供應商實力矩陣分析》研究報告正式啟動
- Lepton 无损压缩原理及性能分析
猜你喜欢
非技术部门,如何参与 DevOps?
百日完成国产数据库opengausss的开源任务--openGuass极简版3.0.0安装教程
Concurrent performance test of SAP Spartacus with JMeter
Get to know linkerd project for the first time
From the perspective of technology and risk control, it is analyzed that wechat Alipay restricts the remote collection of personal collection code
10 minute fitness method reading notes (3/5)
The Research Report "2022 RPA supplier strength matrix analysis of China's banking industry" was officially launched
CF:A. The Third Three Number Problem【关于我是位运算垃圾这个事情】
LeetCode20.有效的括号
简单上手的页面请求和解析案例
随机推荐
Association modeling method in SAP segw transaction code
leetcode:221. 最大正方形【dp状态转移的精髓】
Taobao, pinduoduo, jd.com, Doudian order & Flag insertion remarks API solution
【云原生】Nacos中的事件发布与订阅--观察者模式
SAP ui5 objectpagelayout control usage sharing
Simply take stock reading notes (4/8)
Taobao order amount check error, avoid capital loss API
JXL notes
A deep long article on the simplification and acceleration of join operation
How do e-commerce sellers refund in batches?
Tips and tricks of image segmentation summarized from 39 Kabul competitions
初识Linkerd项目
Laravel document reading notes -mews/captcha use (verification code function)
#yyds干货盘点#js截取文件后缀名
函数传递参数小案例
Shi Zhenzhen's 2021 summary and 2022 outlook | colorful eggs at the end of the article
Alibaba cloud SLB load balancing product basic concept and purchase process
Introduction to the principle of DNS
谈谈我写作生涯的画图技巧
Kotlin function