#!/bin/bash
# March-13-2006
# CPUuse trigger script by Noel
#
# bash code to watch a running program’s CPU usage.
# if it’s above a set value, it will auto send an email.
# You will need to set a Cron job to run this script every xx minutes
#
# Set some needed things:
#
processToWatch=”convert” # in my case I need to watch convert
emailAddress=”root@host” # this is my main emailaddress
triggerValue=90 # if the CPU use is above 90% send an email. DO NOT USE a DOT or COMMA!
tempFileName=tmp-cpu # some name of the temp file for the ps, grep data Continue reading “自动Kill使用太多处理器资源的进程”
相关:
- aboveArchives-
- whmcs pptp
- Directadmin varnish
- directadmin 使用1 4
- directadmin 内网
- apache error AH01215
- DirectAdmin 链接数据库
- DirectAdmin插件
- processtowatchArchives-
- directadmin 配置varnish