Solaris

check_disk_detail

Description:

Checks Disk Space, Busy Time, Service Time, Byte Reads/Writes. Pass in a directory name, and it will check the space, and return iostat info. Uses iostat and df…very Solaris specific.

Current Version

Last Release Date

June 15, 2009

Compatible With


Project Files
Project Notes
Example of call and return: Call (warn at 90% disk full, critical at 95%, checking the root partition): check_disk_detail.sh 90 95 / Returns: / - total: 63G - used: 47G (76%) - free 15G (24%) - Statistics: AvgSvcTime: 13.1 WaitTime: 21.9 Wait: 1% Busy: 0% r/s: 77859333000 w/s: 83357819000 kr: 2196100760000 kw: 786953925000 The 4 counters at the end give you data about reads/writes, as well as read/write byte counts. We graph all of this info with rrd (the last 4 using counter types). Having busy% graphed is very useful in troubleshooting IO issues. The only things generating warning/critical messages is disk space thresholds and mount issues. This can easily be modified for your tastes. It works well in our Solaris 9/10 environments. I haven't tried to make it generic, but I thought I would share it. Parameters are: check_disk_detail.sh (warn %) (critical %) (directory) (busy sample time, default is 10 sec) Examples: check_disk_detail.sh 80 90 /opt check_disk_detail.sh 85 95 / check_disk_detail.sh 80 90 /nfs_mounted_folder check_disk_detail.sh 80 90 /db_files 15
Reviews (1) Add a Review
check_disk_detail
by almaclang, January 31, 2014

stats is working fine but graph is not working. how to setup the graph?



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4.7 (3)
Favorites
0
Views
155,036