Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
my server get hanged when ever their is loading problem.
i wanna a program to get cpu load and also when load get high from a specified load value it should restart service.
is their is any programm or how to write that programm..
thnx for reply
i dont want command i know this command i need coding to get cpu load.also code to restrict cpu load from exceeding to limit...and if possible to we can also write to kill the current process and restart it.this i want in code....
in short i need script to get cpu load and when load exceed to limit it wil restart the service...
Write your own code, if you want it for free. We will be glad to HELP you, but we're not here to give you handouts, because you don't want to do the work for yourself.
Write your own code, if you want it for free. We will be glad to HELP you, but we're not here to give you handouts, because you don't want to do the work for yourself.
iam not a programmer, just beginner in linux..to learn coding will takes time.so i asked for help regarding issue.if any body have better option then coding then please provide me....
if i get code then definitely i will post it. so dont say i dont want to do work...
iam not a programmer, just beginner in linux..to learn coding will takes time.so i asked for help regarding issue.if any body have better option then coding then please provide me....if i get code then definitely i will post it. so dont say i dont want to do work...
other also get help from this post.
"Help", means YOU do some of the work, and others do other parts. You are not doing ANY of this, but asking others to do it ALL for you. Don't make it seem like you're asking to help others in the community. There are plenty of sites you can find that have free scripts to monitor different things, and you've already been directed to both a bash scripting guide and to the limits settings on your system.
And yes, coding takes time...so your options are either:
"Help", means YOU do some of the work, and others do other parts. You are not doing ANY of this, but asking others to do it ALL for you. Don't make it seem like you're asking to help others in the community. There are plenty of sites you can find that have free scripts to monitor different things, and you've already been directed to both a bash scripting guide and to the limits settings on your system.
And yes, coding takes time...so your options are either:
TAKE the time, learn it, and do it yourself
HIRE someone (and PAY THEM), to write it for you
the guru --i always first google and search.and if i didnot found or i didnot understand the ans then only i post thread...
HELP also means to help in searching solution.if you know the script site then beside of writing all this waste you should have mention it.this turn into help..thats help
by the way i found the script soon i am going to post the links...
the guru --i always first google and search.and if i didnot found or i didnot understand the ans then only i post thread...
HELP also means to help in searching solution.if you know the script site then beside of writing all this waste you should have mention it.this turn into help..thats help
Looking things up for you isn't 'help', sorry.
Quote:
by the way i found the script soon i am going to post the links...
Really?? Great...so, you FOUND a link and didn't post it? Wasn't that was WE were supposed to do for YOU???
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.