Home Directory Plugins Operating Systems Linux Check UNIX Disk usage

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

Check UNIX Disk usage

Current Version
0.1b
Last Release Date
2011-05-30
Compatible With
  • Nagios 3.x
Owner
License
GPL
Hits
106310
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 UNIX Disk usage
Checks, in UNIX-like systems, the space used on local filesystems.
This plugin checks, in Unix-like systems, the space used on local filesystems.

Even existing similar plugins, even an "official" one distributed in the Nagios plugins package, this plugin has been developed with the aim of solving some
common problems present in them:

- It only checks local filesystems suitable to both being used as storage and changing its size in time . Thus, filesystem types as debugfs, devpts, romfs or nfs, nfsv4 and smbfs are excluded.
- User can extend the excluded filesystem list by specifying additional items with the "-x" command line argument.
- Problems found in the "official" check_disk when checking huge filesystems returning a negative value as used space have been corrected.
- User output message is carefully managed by using units that best fits to the used space and thus avoiding values difficult to read.
- Performance data is always returned in bytes, avoiding tricky chart axis scales (kiloMegabytes, MegaKilobytes,...) when using tools like RRDTools.

Plugin is Nagios 3.x (ePN) compatible.



USAGE EXAMPLES

- Normal usage:

check_unix_disk_usage.pl -w 80 -c 90

It returns WARNING if disk space usage is higher than 80% in any of the filesystems in system, and CRITICAL if the disk usage is higher than 90% in any of the filesystems in system.

In other cases it returns OK if check has been performed succesfully.

Note: Thresholds of both WARNING and CRITICAL must be passed in percentage. debugfs, devpts, nfs, nfs4, proc, romfs and smbfs filesystem types are not checked.


- Adding filesystems to check use:

check_unix_disk_usage.pl -f /,/var -w 80 -c 90

It returns WARNING if disk space usage is higher than 80% in any of both filesystems specified, / and /var, and CRITICAL if the disk usage is higher than 90% in any of both filesystems specified, / and /var.

In other cases it returns OK if check has been performed succesfully.

Note: thresholds of both WARNING and CRITICAL must be passed in percentage. Is not checking the next filesystem types: debugfs, devpts, nfs, nfs4, proc, romfs and smbfs.


- Excluding types of filesystems use:

check_unix_disk_usage.pl -x tmpfs -w 80 -c 90

It returns WARNING if disk space usage is higher than 80% in any of the filesystems in system, and CRITICAL if the disk usage is higher than 90% in any of the filesystems in system.

In other cases it returns OK if check has been performed succesfully.

Note: Thresholds of both WARNING and CRITICAL must be set as percentage. debugfs, devpts, nfs, nfs4, proc, romfs, smbfs filsystem types checks are excluded by default. Additioinally, tmpfs filesystem types is excluded by the "-x" command line argument.