Operating Systems

Unix/Linux Check Diskspace of Partition/Volume/Mount

Description:

Check the capacity of a volume using df.

Tested on Linux, FreeBSD, AIX, and OSX.

Current Version

Last Release Date

2013-12-07

Compatible With

  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI

Owner


Project Notes
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) Add a Review
Functioning Well
by nishith, February 29, 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
}
#################################################
Helpful? Yes  No 
Outstanding Plugin! Works with Solaris 10/11
by merlyn9, September 30, 2015
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
Helpful? Yes  No 
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
5 (2)
Favorites
0
Views
45,475