From b688f97bb77ea2b7262ca601411cd951decdfbec Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Mon, 23 Mar 2009 15:12:47 -0400 Subject: [PATCH] Fix typo, add missing exabyte regex. Both found by Selena Deckelmann. Tidy up the sizing docs section. --- check_postgres.pl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/check_postgres.pl b/check_postgres.pl index d1538fa05..ef1be1e5d 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 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. -- 2.30.2