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

check_disk

Rating
3 votes
Favoured:
1
Hits
179374
Files:
FileDescription
check_disk.plcheck_disk.pl

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

An alternative Perl implementation of check_disk for Unix hosts.
This plugin is an alternative of check_disk scripts with SSH capability. It use 'df -k' unix command to verify filesystems utilisation. You can :
- specify different threshold by FS
- use regexp to include or exclude FS
- specify a FS configuration file to use different threshold and units :

#FS WARN CRIT
/ 400M 300M
/home 20 15
/var 1G 500M

./check_disk.pl [-H ] [-w ] [-c ] [-u ] [-p ] [-i ] [-f ] [-h] [-C ]
-h | --help : Display this help
-w | --warning : % free space to send warning alert (default 10)
-c | --critical : % free space to send critical alert (default 5)
-H | --host : host you want to check by SSH (default localhost)
-u | --user : user for SSH connection (default nagios)
-i | --ignore : Filesystem you want to ignore
-r /pattern/ : include all filesystems matching this regexp
-R /pattern/ : exclude all filesystems matching this regexp
-f | --filesystem : filesystems or device you have to check (default all)
-C | --conf : specify a configuration file for filesystems threshold definitions
-v | --verbose : plugin output contain all FS(default : output shows only warning or critical FS).
--srvperf dir : Save datas external files placed on this directory
--html : Add in plugin output to improve the Web interface output.

Reviews (1)
bychristoph.mueller, May 25, 2017
Works fine. I've just changed line 356 to add performance data to output:

print "DISK $retour $output|$perf_data\n";