Home Directory Plugins Operating Systems Unix/Linux Check Diskspace of Partition/Volume/Mount

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

Unix/Linux Check Diskspace of Partition/Volume/Mount

Rating
2 votes
Favoured:
0
Last Release Date
2013-12-07
Compatible With
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
Hits
45491
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!
Check the capacity of a volume using df.

Tested on Linux, FreeBSD, AIX, and OSX.
Check the capacity of a volume using df.

Options:
-v Specify volume as mountpoint
-c Critical threshold as an int (0-100)
-w Warning threshold as an int (0-100)
-s Skip threshold checks

Usage: $0 -v /mnt -c 95 -w 90
Reviews (2)
bynishith, February 2, 2016
Command Line Output:
./check_volume.sh -v /home -w 80 -c 90
/home is at 4% capacity, 16G of 478G

#################################################
command.cfg file configuration:
#################################################
define command{
command_name check_volume
command_line $USER1$/check_volume.sh -v $ARG1$ -w $ARG2$ -c $ARG3$
}

#################################################
localhost.cfg file configuration:
#################################################
define service{
use local-service
host_name localhost
service_description Home Partition
check_command check_volume!/home!75!90
}
#################################################
Just what I was looking for, Simple Clean output and works across multiple Solaris versions without Any Code Changes!

I can say that I have this Plugin running Fine without issue on the Following Solaris Environments:

- Solaris 11 VM
- Solaris 11 Zone
- Solaris 10 Zone (Branded)

# libexec/check_volume.sh -v / -c 95 -w 90
/ is at 24% capacity, 6.4G of 28G

# libexec/check_volume.sh -v /zones/xxxxzntst9203 -c 95 -w 90
/zones/xxxxzntst9203 is at 1% capacity, 35K of 63G


---merlyn9