monitoring cpu and memory of the unix box


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers monitoring cpu and memory of the unix box
# 1  
Old 07-22-2008
monitoring cpu and memory of the unix box

Hi all,

Unix has the TOP and SAR command to monitor machine's performance. Can it be used in a script to alert if the cpu utilization is more than 80 or memory used is more than 90.

Is SAR preferable than TOP?

Please advise.
# 2  
Old 07-22-2008
vmstat will return cpu info as well as memory usage.
# 3  
Old 07-22-2008
Thanks Ikon but I need it in percent. Please advise.
# 4  
Old 07-22-2008
Its in percent for the cpu, for memory you will have to calculate your total memory and divide to get percent. I use vmstat to build graphs Perl-GD-Graphs to send daily stats.

procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 54600 4840 87476 44876 0 0 1 3 1 1 0 0 97 3

That is showing id(idle) at 97%
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Number of CPU'S in UNIX box

Hi, How to find number of CPU'S in unix box. And usage of the total no of CPU'S. (7 Replies)
Discussion started by: sam1226
7 Replies

2. AIX

CPU monitoring query

Hi all, I am a DBA , I want to take the output of topas command result in every 1minute to write on the output file. If I redirected the file it attached with some control M characters. Nmon and sar commands are not working. only topas working in my AIX environment. Please suggest me on this.... (2 Replies)
Discussion started by: kumaravelu2006
2 Replies

3. Shell Programming and Scripting

ftp file starting with particular name on Windows box to Unix box using shell script

Hello all ! I'm trying to write a shell script (bash) to ftp a file starting with particular name like "Latest_" that is present on a Windows box to UNIX server. Basically I want to set this script in the cron so that daily the new build that is posted on the Windows box can be downloaded to the... (2 Replies)
Discussion started by: vijayb4u83
2 Replies

4. Programming

Solaris CPU/memory status monitoring (Shell script or c++)

i'm trying to find a way to monitor the CPU/Memory status of a solaris station using vmstat. I like to write a small script to periodically run vmstat and store the output. Can anyone show me how (preferrably in C++ if possible)? Thanks in advance. (6 Replies)
Discussion started by: shingpui
6 Replies

5. UNIX for Dummies Questions & Answers

cpu, memory and virtual memory usage

Hi All, Does anyone know what the best commands in the UNIX command line are for obtaining this info: current CPU usage memory usage virtual memory usage preferably with date and time parameters too? thanks ocelot (4 Replies)
Discussion started by: ocelot
4 Replies

6. Shell Programming and Scripting

how to compare all files in one unix box has been to copied to another unix box

Hi our unix admin has copied all files from one unix box to new unix box. We just need to confirm that all the file systems are copied properly. How to validate. (9 Replies)
Discussion started by: sravanreddym
9 Replies

7. UNIX for Dummies Questions & Answers

Running UNIX commands remotely in Windows box from Unix box – avoid entering password

I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked. Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies

8. Solaris

monitoring cpu

I have a windows snmp server running prtg. I have a solaris 8 v440R server and only see the network statistics for the server. When I try to add a new service to watch for the CPU, I am not offered the results. There is the default sun.mib installed. SNMPDX is not running but mibiisa is. I... (1 Reply)
Discussion started by: csross
1 Replies

9. UNIX for Advanced & Expert Users

CPU monitoring script

I looking for a very basic, script that monitors the load on the cpu and writes it to a text file. Can anyone help please? (4 Replies)
Discussion started by: alpha_manic
4 Replies

10. UNIX for Advanced & Expert Users

VPN client (windows Box),and Server (Unix Box)

If I want to access unix box via VPN tunnel,from windows box. What sould I configure on the windows client PC, and what should I enable on the Unix Server box ? I am using Solaris V10 intel platform, and I am using windows XP, and 2003 for client (0 Replies)
Discussion started by: zillah
0 Replies
Login or Register to Ask a Question