Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Unix/Linux Check Diskspace of Partition/Volume/Mount
2013-12-07
- Nagios 3.x
- Nagios 4.x
- Nagios XI
45504
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!
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
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
}
#################################################
./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
}
#################################################
bymerlyn9, September 2, 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
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