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
Answers (6)
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
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 11 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 11 years ago
Comments:
-
Hi asman, sorry. I still get error after doing it. - isavirtus 11 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 11 years ago-
I want to look at CPU usage in the percent. - isavirtus 11 years ago