阿里云RDS本地实例还原脚本
|
Shell
•
|
点赞 0
|
预览 702
#!/bin/bashset-eecho"#######################################################请输入RDS下载地址###########################################################
docker健康检查脚本
|
Shell
•
|
点赞 0
|
预览 600
#!/bin/bashif["$(ps-ef|grep"/usr/bin/dockerd-Hfd://--containerd=/run/containerd/containerd.sock"|grep-vgrep)"==""]thensy
内存释放脚本
|
Shell
•
|
点赞 0
|
预览 723
#!/bin/bashset-eFreeSpace=`free-h|awk'/^Mem/{print$4}'`if[$FreeSpace-lt600M];thenecho1>/proc/sys/vm/drop_cachesecho2>/proc/sys/vm/drop_cachesech
主机IO过高邮件告警其进程
|
Shell
•
|
点赞 0
|
预览 712
#!bin/bashset-eDate=`date"+%Y_%m_%d%H:%M:%S"`iotop-b-d0.5-n5-oPk|grep-vCOMMAND|grep-v"TotalDISKWRITE"|grep-v"ActualDISKWRITE&
Zabbix agent升级脚本
|
Shell
•
|
点赞 0
|
预览 729
#!/bin/bashsystemctlstopzabbix-agentrpm-qa|grepzabbix|xargsrpm-erpm-Uvhhttps://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-2.el7.noarc