/build/static/layout/Breadcrumb_cap_w.png

Showing CPU Usage up

Dear All,

 

Please help me, how to show CPU Usage up ?

I need a script to do it, i want to monitor my Server.

 

Best Regards,

Isa


0 Comments   [ + ] Show comments

Answers (6)

Posted by: SMal.tmcc 10 years ago
Red Belt
2

Normally you do not use scripts to monitor things, they usually are executed because of a specified trigger, they are not really meant to run constantly in the background.

To get it thru wmic

WMIC path win32_processor get loadpercentage

here is a couple of links where others have tried the same thing

http://forums.cacti.net/post-9117.html

http://superuser.com/questions/576252/shell-script-that-monitors-cpu-usage-and-terminates-services-with-high-cpu-utili

 

Posted by: Nico_K 10 years ago
Red Belt
1

Use a monitoring software like Nagios or Open Manage Essentials? This shows you all you need for all your servers would be the best solution? Both tools are free.

Posted by: isavirtus 10 years ago
Yellow Belt
0

I want to look at like on Task Manager.

Posted by: anonymous_9363 10 years ago
Red Belt
0

A scripted solution would be quite a piece of work and not something that, having done, I personally would give away for free.


Comments:
  • Thanks you very much, i am really appreciate it if you share your script - isavirtus 10 years ago
  • Er...I said, given the amount of work involved, I *wouldn't* give it away for free. As it turns out, I don't have such a script, as I find the tools which are freely available do the job I want. I'm a H U G E fan of not re-inventing the wheel, as I have more important things to do. - anonymous_9363 10 years ago
Posted by: asman 10 years ago
Purple Belt
0

Comments:
  • Hi asman, sorry. I still get error after doing it. - isavirtus 10 years ago
  • Comment-out line 28 which is, I'm sure, where your problem is.

    Having said that, I wouldn't bother. This script monitors one process, not the machine's overall CPU usage. It doesn't produce output anything like Task Manager, either, which is what you requested. - anonymous_9363 10 years ago
    • I want to look at CPU usage in the percent. - isavirtus 10 years ago
Posted by: lucifer 10 years ago
White Belt
0

i have used Open Manage Essentials, well i works fine

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ