[check_postgres] [commit] Fix typo, add missing exabyte regex. Both found by Selena Deckelmann.

check_postgres at bucardo.org check_postgres at bucardo.org
Mon Mar 23 19:13:43 UTC 2009


Committed by Greg Sabino Mullane <greg at endpoint.com>

Fix typo, add missing exabyte regex. Both found by Selena Deckelmann.
Tidy up the sizing docs section.

---
 check_postgres.pl |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/check_postgres.pl b/check_postgres.pl
index d1538fa..ef1be1e 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -922,7 +922,7 @@ sub finishup {
 
 
 ## For options that take a size e.g. --critical="10 GB"
-our $sizere = qr{^\s*(\d+\.?\d?)\s*([bkmgtpz])?\w*$}i; ## Don't care about the rest of the string
+our $sizere = qr{^\s*(\d+\.?\d?)\s*([bkmgtepz])?\w*$}i; ## Don't care about the rest of the string
 
 ## For options that take a time e.g. --critical="10 minutes" Fractions are allowed.
 our $timere = qr{^\s*(\d+(?:\.\d+)?)\s*(\w*)\s*$}i;
@@ -1853,7 +1853,7 @@ sub validate_range {
 			}
 		}
 		elsif (!length $critical) {
-			ndie mgn('range-nosize');
+			ndie msg('range-nosize');
 		}
 	}
 	elsif ($type =~ /integer/) {
@@ -4743,9 +4743,9 @@ The I<--include> and I<--exclude> options can be used to filter out which tables
 to look at. See the L</"BASIC FILTERING"> section for more details.
 
 The I<--warning> and I<--critical> options can be specified as sizes or percents.
-Valid size units are bytes, kilobytes, megabytes, gigabytes, terabytes, and exabytes. 
-You can abbreviate all of those with the first letter. Items without units are 
-assumed to be 'bytes'. The default values are '1 GB' and '5 GB'. The value 
+Valid size units are bytes, kilobytes, megabytes, gigabytes, terabytes, exabytes, 
+petabytes, and zettabytes. You can abbreviate all of those with the first letter. Items 
+without units are assumed to be 'bytes'. The default values are '1 GB' and '5 GB'. The value 
 represents the number of "wasted bytes", or the difference between what is actually 
 used by the table and index, and what we compute that it should be.
 
-- 
1.6.0.5



More information about the Check_postgres mailing list