当前位置:网站首页>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
边栏推荐
- HiEngine:可媲美本地的云原生内存数据库引擎
- 关于 SAP UI5 getSAPLogonLanguage is not a function 的错误消息以及 API 版本的讨论
- RHCSA2
- Leetcode20. Valid parentheses
- 初识Linkerd项目
- Introduction to sap ui5 flexiblecolumnlayout control
- SAP SEGW 事物码里的 ABAP 类型和 EDM 类型映射的一个具体例子
- Vonedao solves the problem of organizational development effectiveness
- A possible investment strategy and a possible fuzzy fast stock valuation method
- ABAP editor in SAP segw transaction code
猜你喜欢

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

Pinduoduo flag insertion remarks API

Tips and tricks of image segmentation summarized from 39 Kabul competitions

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

Natural language processing series (I) introduction overview

Taobao short videos are automatically released in batches without manual RPA open source

【云原生】Nacos-TaskManager 任务管理的使用

Introduction to sap ui5 flexiblecolumnlayout control

RHCSA3

解决uni-app配置页面、tabBar无效问题
随机推荐
SAP UI5 视图里的 OverflowToolbar 控件
Lepton 无损压缩原理及性能分析
Taobao order interface | order flag remarks, may be the most stable and easy-to-use interface
DNS的原理介绍
Talk about my drawing skills in my writing career
RHCSA2
SAP SEGW 事物码里的 ABAP Editor
10 minute fitness method reading notes (3/5)
初识Linkerd项目
Natural language processing series (I) introduction overview
石臻臻的2021总结和2022展望 | 文末彩蛋
NFT: how to make money with unique assets?
CF:A. The Third Three Number Problem【关于我是位运算垃圾这个事情】
Tips and tricks of image segmentation summarized from 39 Kabul competitions
stm32和电机开发(从架构图到文档编写)
MySQL giant pit: update updates should be judged with caution by affecting the number of rows!!!
Vonedao solves the problem of organizational development effectiveness
How can non-technical departments participate in Devops?
自然语言处理系列(一)入门概述
SAP ui5 objectpagelayout control usage sharing