need help for scrip to monitor disk utilization


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting need help for scrip to monitor disk utilization
# 1  
Old 06-23-2010
Bug need help for scrip to monitor disk utilization

Hi,

I need help to write a script which will monitor disk utilization.

Please suggest the best approach to achive this.

I am thinking of having sleep inside the script which will run for(eg.) 60 secs and then disk utilization will be checked and depends on the % usage of disk mail will be triggerd if required.
But using sleep is some thing like always cosuming some amount of memory and CPU, Please suggest if there could be any way like any internal OS process or flag could be used which automatically sends trigger message to run the script, Just looking for best approach to save resources.


Regards
Sunny
# 2  
Old 06-23-2010
Hey Sunny,

I hope sleep will not use much memory & CPU. If you would prefer not to use sleep then I would suggest you to schedule the script as a cron job.

I am not sure why you would need disk utilization script to run every 1 minute(Unless your system has several huge files dumped at the same time). I would suggest you to run this script once in a day.

-Nithin.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Monitor Core utilization in Solaris Sparc

I am trying to read the Sparc HW counter using the following command: cpustat -c Instr_cnt .1This command will be running forever (for some time until interrupted by user). Sample output is: time cpu event pic1 1.011 0 tick 6450 1.011 1 tick ... (10 Replies)
Discussion started by: Zam_1234
10 Replies

2. Shell Programming and Scripting

TOP IO DISK Utilization scripting

Hi Fiends, I am new to scripting., I want to calculate the 2nd column in the below output and print the average for each hdisk. Below is the output of sar command, hdisk0 0 hdisk0 2 hdisk0 0 hdisk1 2 hdisk1 2 hdisk1 2 hdisk2 1 hdisk2 0 hdisk2 0 Thanks, Srinivasan (3 Replies)
Discussion started by: Srini.rk1983
3 Replies

3. UNIX for Dummies Questions & Answers

Disk utilization

Hi, I have hundred folders under a fs /apps which is used by different users and they upload their data to these folders on a daily basis. Using du -sk gives me complete structure of the filesystem but i want to find out day to day utlization of the top ten highest accoriding to size wise ... (4 Replies)
Discussion started by: chetansingh23
4 Replies

4. Shell Programming and Scripting

Looking for shell script to monitor CPU utilization and send mail once exceed 75%

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

5. Red Hat

Disk Utilization

Hi, Can anybody explain why my newly created 120G FS shows 100% utilization when only 113G of disk space has been used? ...... # df -h . Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg01-lvol0 119G 113G 0 100% /u02 #du -h /u02 16K ... (3 Replies)
Discussion started by: Duffs22
3 Replies

6. UNIX for Dummies Questions & Answers

How to monitor per core CPU utilization?

I can use top to see the overall cpu utilization in the system but i m using a system with 24 cores .How would i monitor each core utilization ? The system is used as Oracle VM Server for Virtualization. My distribution details. # lsb_release -a LSB Version: ... (8 Replies)
Discussion started by: pinga123
8 Replies

7. UNIX for Advanced & Expert Users

Monitor % utilization of the network card

Hello, How to we typically monitor the % of utilization of network cards on a Unix box,basically the % utilization of the bytes transfered of the network card. This is required on all the flavours of OS - HP, AIX, RHEL, Sun etc. Please let me know. Thanks. (1 Reply)
Discussion started by: devtakh
1 Replies

8. Red Hat

Disk Utilization is very high

Hi, I have monitored that disk utilization is very high on one of red hat linux VM. Would like to know how to find out that issue of high disk utilization is because of disk or Installed Application on that server is causing the problem. Regards, Manoj (1 Reply)
Discussion started by: manoj.solaris
1 Replies

9. Emergency UNIX and Linux Support

How to monitor a process memory utilization?

hi frnds, I want to monitor a particular process very closly on how much memory it is taking. i tried with TOP and PRSTAT commands that is not giving what exactly i need. In my application, there is a memory leak happening, i want to know when it is occuering, means which transcation is... (9 Replies)
Discussion started by: vij_krr
9 Replies

10. AIX

Historical Disk bandwidth utilization

Early this morning our sar reports show that WIO on the system was over 50% for about an hour. We also had some users complain about response time problems during this time. Is there a way I can go back and check what disks were busy during this time (something like topas but for historical data)? (1 Reply)
Discussion started by: 2dumb
1 Replies
Login or Register to Ask a Question