Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_disk_detail

Rating
3 votes
Favoured:
0
Hits
155026
Files:
FileDescription
check_disk_detail.shcheck_disk_detail.sh
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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.
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)
byalmaclang, January 27, 2014
0 of 1 people found this review helpful
stats is working fine but graph is not working. how to setup the graph?