Linux

Check UNIX Disk usage

Description:

Checks, in UNIX-like systems, the space used on local filesystems.

Current Version

0.1b

Last Release Date

2011-05-30

Compatible With

  • Nagios 3.x

License

GPL


Project Photos
Project Notes
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.
Reviews (0) Add a Review
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
0 (0)
Favorites
0
Views
106,240