Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
minimalistic check_disk.sh
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!
Another but minimalistic disk check/status plugin. This script will show only local file-systems, local partitions are sorted from the most in use (as occupancy).
Generic check_disk plugin gives too much information so this script is intended to have at glance disk space occupancy and remaining space; a clean and more readable view of local file-systems.
Tested on: Debian 11/12 and Ubuntu 18/20/22
note: remember to assign execute permission to the script (chmod +x check_disk.sh)
=========
Usage: check_disk.sh -w WarningLevel -c CriticalLevel -x ExcludePartition1,ExcludePartition2,etc...
example => check_disk.sh -w 20 -c 10
example => check_disk.sh -w 20 -c 10 -x /var
example => check_disk.sh -w15 -c10 -x/var,/tmp
=arguments and default values if arg is missing=
-w = % warning level free space left as integer {def: 12}
-c = % critical level free space left as integer {def: 9}
-x = comma separated exclude list
--help = this help
.:: notes ::.
.: arguments order is not rilevant
.: between argument and value can be a space or not
.: default excluded fs: tmpfs, devtmpfs, overlay, vfat, squashfs (edit the script to include them)
Generic check_disk plugin gives too much information so this script is intended to have at glance disk space occupancy and remaining space; a clean and more readable view of local file-systems.
Tested on: Debian 11/12 and Ubuntu 18/20/22
note: remember to assign execute permission to the script (chmod +x check_disk.sh)
=========
Usage: check_disk.sh -w WarningLevel -c CriticalLevel -x ExcludePartition1,ExcludePartition2,etc...
example => check_disk.sh -w 20 -c 10
example => check_disk.sh -w 20 -c 10 -x /var
example => check_disk.sh -w15 -c10 -x/var,/tmp
=arguments and default values if arg is missing=
-w = % warning level free space left as integer {def: 12}
-c = % critical level free space left as integer {def: 9}
-x = comma separated exclude list
--help = this help
.:: notes ::.
.: arguments order is not rilevant
.: between argument and value can be a space or not
.: default excluded fs: tmpfs, devtmpfs, overlay, vfat, squashfs (edit the script to include them)
Reviews (0)
Be the first to review this listing!