Find freelancers. Lose those costly delays.

With 1.7 million freelancers, we'll match you with the perfect talent.

or, Register with Elance »

Script: Restart Process if High CPU or Memory Usage
Sign in to Add to Watch List

IT & Programming > System Administration

View Change History

The client has made the following changes to the job.


Job Description

  |  Change History >>


  • Posted: Fri, Aug 10, 2012
  • Time Left: Closed
  • Location: Anywhere
  • Client prefers freelancers from:

    You are still able to submit a proposal for this job.

    The client prefers freelancers from
    a different location.

    You're still able to submit a proposal for this job, regardless of your location.
  • Start: Immediately
  • Budget: $30 - $40
  • Fixed Price Job
  • Elance Escrow Protection
  • U.S. freelancers must have W9
Sign in to view client's details

Create a script that monitors any process, for example mysqld, for CPU usage above n% and memory usage above a n%. If the mysqld(for example) maintains the high n% for 5 attempts or high memory n%, based on number of minutes between attemtps, then restart the mysqld process. The script should have 4 variables that can be modified at the command line for cpu%(the level of cpu usage), memory%(level of system memory), attempts(number of attempts to check before restarting) and minutes(minutes between each attempt).

check_process cpu% mem% attempts minutes_between_attempts

check_process 90% 25% 5 8

This script should be designed to run as root with a cron job to restart the mysqld, or other process, when it maintains these states for a specified period of time. It should be designed to restart if it meets either the cpu or mem limits for the specified time limits.
Added 10 AUG 2012, 12:51 PM EDT
This will need to be a Bash shell script.

Sign in or Register to see more

Job ID: 32634918
Avg $ | High $ | Low $ — Show Pricing
  • Submit Date (Latest)

 India  |  
I have more than 12 years of experience in Linux, Solaris, Windows, VMware, Cloud administration and Cisco/Juniper Administration. - Amazon Web...
 0.0   |  Private   |  0 Jobs
Bid ID: 32643123  |  Submitted: Aug 10, 2012 13:57 ET 
Proposal SEALED

Frederic L.      
Frederic L.'s identity has been verified.  Learn More
I have been a Windows and Unix administrator for 5 years (1998-2003), then *Nix system and network engineer since 2006 (Unix, Linux, Mac OS X)...
 0.0   |  Private   |  0 Jobs   |  1 verified credential(s)
Bid ID: 32643001  |  Submitted: Aug 10, 2012 13:51 ET 
Within 1 day

 India  |  
I am Linux System Administrator, I've worked on many projects like Nagios Monitoring Tool, OTRS (Open Ticket request System), Redmine Project...
 0.0   |  $0 Earnings   |  0 Jobs
Bid ID: 32639451  |  Submitted: Aug 10, 2012 11:19 ET 
Proposal SEALED
Elance is now an Upwork company.
Upwork is the choice of 4M+ clients. Get started working on Upwork today.
Are you ready to post a job like this one?
Post a Similar Job »