04-12-2014
the unix box which i am working now is very critical server
Hence i need to monitor that CPU as mentioned in my requirement
to monitor CPU usage for all the time in a day on unix server.And it has to send mail if CPU hits 100% and the mail also contains which user,process occupying the maximum CPU usage.And if it contains the first 5 processes occupying the large CPU usage in addition it will be grateful.
As I worked on windows platform previously,I dot know how to write script for it
Please some one help me...
I dont know how I am gonna to check CPU all the times
Please help admins...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can someone suggest me the script to calculate cpu utilization for each user
in solaris say for a period of 24 Hrs or last 12 Hrs
I am using solaris 10.
Thanks in Advance (1 Reply)
Discussion started by: rajusa10
1 Replies
2. UNIX for Dummies Questions & Answers
hi,
i want to know cpu utilizatiion per process per cpu..for single processor also if multicore in linux ..to use these values in shell script to kill processes exceeding cpu utilization.ps (pcpu) command does not give exact values..top does not give persistant values..psstat,vmstat..does njot... (3 Replies)
Discussion started by: pankajd
3 Replies
3. Shell Programming and Scripting
Hi All,
i have a script that finds the file with .txt .zip .Z .gzip that are 3 days old in directory /abc/def and removes them
find /abc/def -name '0*.txt' -mtime +6 -exec rm {} \;
find /abc/def -name '0*.zip' -mtime +6 -exec rm {} \;
find /abc/def -name '0*.gzip' -mtime +6... (3 Replies)
Discussion started by: mad_man12
3 Replies
4. Shell Programming and Scripting
There is a script which processes the incoming files from a particular directory and sleeps if it doesnt find any. Currently, i have been told that eventhough there are no files to process, the CPU utilization is very high. An independent evaluation by advisory specialist has found this script does... (2 Replies)
Discussion started by: nandu
2 Replies
5. Shell Programming and Scripting
Hello Team,
I need help in preparing script to check for high cpu utilisation for java process.
I have many java process on my system which consumes high cpu so i have to monitor
it using script.
---------- Post updated 12-10-10 at 02:21 AM ---------- Previous update was 12-09-10 at... (1 Reply)
Discussion started by: coolguyamy
1 Replies
6. Shell Programming and Scripting
Hi,
I need to write a script which would take the CPU and Memory usage at an interval of 10 mins. I tried using sar, but that does not solve my purpose.
Its not only one system that i have, but approximately 10 server from where i need to achive this date.
Can anyone share a script or idea... (1 Reply)
Discussion started by: Siddheshk
1 Replies
7. Shell Programming and Scripting
Dear Group,
I'm look for shell script to Monitor CPU usage and send mail once it exceed 75% I'm running Suse10.4. (3 Replies)
Discussion started by: clfever
3 Replies
8. Shell Programming and Scripting
I have a set of requirement
1)cpu utilization on a server with pid and and process name.
It should display the above and also the script should have an option to record the cpu utilization for a given period of time
first part i can get with below commands
ps -eo pcpu,pid,user,args or... (5 Replies)
Discussion started by: NarayanaPrakash
5 Replies
9. How to Post in the The UNIX and Linux Forums
Hi All
I am new to production support on unix platform
I need a script for the following requirement:
to monitor CPU usage for all the time in a day on unix server.And it has to send mail if CPU hits 100% and the mail also contains which user,process occupying the maximum CPU usage.And if it... (1 Reply)
Discussion started by: shreven
1 Replies
10. Red Hat
Hi,
i am new to linux/RHEL 6.0 and i have two questions.
1) How to get the CPU utilization and Memory Utilization of all Services running currently?
2) How to get the CPU utilization and Memory Utilization of all Applications running currently?
Please help me to find the script.
... (2 Replies)
Discussion started by: nossam
2 Replies
LEARN ABOUT SUSE
wmsmpmon
WMSMPMON(1) General Commands Manual WMSMPMON(1)
NAME
wmSMPmon - Window Maker System Monitor
SYNOPSIS
wmSMPmon [options]
DESCRIPTION
wmSMPmon is a Window Maker dock application that displays the following information about the system:
- Current CPU utilization of up to two CPUs
- Up to two minutes history of CPU utilization
- Current memory usage
- Current swap usage
On dual CPU systems, wmSMPmon has three different styles for the utilization graph. To toggle between them just click into the graph.
OPTIONS
All options start with one dash.
-h Show summary of options.
-r REFRESH_RATE
Set the refresh rate of the graph in microseconds. The default is 250000 (a quarter of a second).
-g GRAPH_STYLE
Start using graph style #[1-3] (only on dual CPU systems). Style 1 shows the utiliziation in one graph, while 2 and 3 are split in
two little graphs. Style 2 shows the two graphs on top of each other. Style 3 uses a mirror like type. The default style is 1, which
is also the style used on single CPU systems.
-c1 IDX, -c2 IDX
On systems with more than 2 CPUs, select the CPUs to show. Per default CPU number 1 and 2 are shown. On a quad CPU systems you may
launch second wmSMPmon showing CPUs number 3 and 4.
-no-swap
Do not monitor swap.
SEE ALSO
wmaker(1x)
AUTHOR
This manual page was originally written by Alain Schroeder <alain@debian.org> and adapted for wmSMPmon 3 by Thomas Ribbrock
<emgaron@gmx.net>
WMSMPMON(1)