projects
/
check_postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24cf533
)
Fix custom logic.
author
Andreas Mager
<quattro@geizhals.at>
Wed, 7 Apr 2010 15:34:23 +0000
(11:34 -0400)
committer
Greg Sabino Mullane
<greg@endpoint.com>
Wed, 7 Apr 2010 15:34:23 +0000
(11:34 -0400)
check_postgres.pl
patch
|
blob
|
blame
|
history
diff --git
a/check_postgres.pl
b/check_postgres.pl
index c6522c9b202ff3ff0755de7a483cd17f859267ba..1c306f266a939e98375cb0af0def05c55148079e 100755
(executable)
--- a/
check_postgres.pl
+++ b/
check_postgres.pl
@@
-2238,8
+2238,14
@@
sub validate_range {
ndie msg('range-int-pos', 'critical');
}
- if (length $warning and length $critical and $warning > $critical) {
- return if $opt{reverse};
+ if (length $warning
+ and length $critical
+ and (
+ ($opt{reverse} and $warning < $critical)
+ or
+ (!$opt{reverse} and $warning > $critical)
+ )
+ ) {
ndie msg('range-warnbig');
}
}