内存释放脚本
|
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
一键安装docker docker-compose
|
Shell
•
|
点赞 0
|
预览 699
catdocker_install.sh#!/bin/bashset-e#uninstalldockerifexistsudoyumremovedocker\docker-client\docker-client-latest\docker-common\docker-latest\docker-l
zabbix微信钉钉告警
|
Shell
•
|
点赞 0
|
预览 681
[root@zabbix~]#cat/usr/lib/zabbix/alertscripts/wechat.py#!/usr/bin/envpython#-*-coding:utf-8-*-importosimportsysimportjsonimportrequests#这里填写创建的自定义机器人