06-23-2010
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
10 More Discussions You Might Find Interesting
1. AIX
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
2. Emergency UNIX and Linux Support
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
3. Red Hat
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
4. UNIX for Advanced & Expert Users
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
5. UNIX for Dummies Questions & Answers
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
6. Red Hat
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
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. UNIX for Dummies Questions & Answers
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
9. Shell Programming and 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
10. Shell Programming and Scripting
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
LEARN ABOUT FREEBSD
mkuzip
MKUZIP(8) BSD System Manager's Manual MKUZIP(8)
NAME
mkuzip -- compress disk image for use with geom_uzip(4) class
SYNOPSIS
mkuzip [-v] [-o outfile] [-s cluster_size] infile
DESCRIPTION
The mkuzip utility compresses a disk image file so that the geom_uzip(4) class will be able to decompress the resulting image at run-time.
This allows for a significant reduction of size of disk image at the expense of some CPU time required to decompress the data each time it is
read. The mkuzip utility works in two phases:
1. An infile image is split into clusters; each cluster is compressed using zlib(3).
2. The resulting set of compressed clusters along with headers that allow locating each individual cluster is written to the output file.
The options are:
-o outfile
Name of the output file outfile. The default is to use the input name with the suffix .uzip.
-s cluster_size
Split the image into clusters of cluster_size bytes, 16384 bytes by default. The cluster_size should be a multiple of 512 bytes.
-v Display verbose messages.
NOTES
The compression ratio largely depends on the cluster size used. For large cluster sizes (16K and higher), typical compression ratios are
only 1-2% less than those achieved with gzip(1). However, it should be kept in mind that larger cluster sizes lead to higher overhead in the
geom_uzip(4) class, as the class has to decompress the whole cluster even if only a few bytes from that cluster have to be read.
The mkuzip utility inserts a short shell script at the beginning of the generated image, which makes it possible to ``run'' the image just
like any other shell script. The script tries to load the geom_uzip(4) class if it is not loaded, configure the image as an md(4) disk
device using mdconfig(8), and automatically mount it using mount_cd9660(8) on the mount point provided as the first argument to the script.
EXIT STATUS
The mkuzip utility exits 0 on success, and >0 if an error occurs.
SEE ALSO
gzip(1), zlib(3), geom(4), geom_uzip(4), md(4), mdconfig(8), mount_cd9660(8)
AUTHORS
Maxim Sobolev <sobomax@FreeBSD.org>
BSD
March 17, 2006 BSD