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:
ccfbebf
)
Fix check_hot_standby_delay perfdata output
author
Nicolas Thauvin
<
[email protected]
>
Mon, 27 Jun 2011 15:05:54 +0000
(17:05 +0200)
committer
Guillaume Lelarge
<
[email protected]
>
Mon, 27 Jun 2011 15:05:54 +0000
(17:05 +0200)
There was a missing space in the perfdata output for this action.
check_postgres.pl
patch
|
blob
|
blame
|
history
diff --git
a/check_postgres.pl
b/check_postgres.pl
index 847a17a75412a6e3ba67047f80cc0130e40c13dd..0294eecf3be108794d3ff2fcc91f32298ef361a0 100755
(executable)
--- a/
check_postgres.pl
+++ b/
check_postgres.pl
@@
-4338,9
+4338,9
@@
sub check_hot_standby_delay {
$MRTG and do_mrtg({one => $rep_delta, two => $rec_delta});
- $db->{perf} = sprintf '%s=%s;%s;%s',
+ $db->{perf} = sprintf '
%s=%s;%s;%s',
perfname(msg('hs-replay-delay')), $rep_delta, $warning, $critical;
- $db->{perf} .= sprintf '%s=%s;%s;%s',
+ $db->{perf} .= sprintf '
%s=%s;%s;%s',
perfname(msg('hs-receive-delay')), $rec_delta, $warning, $critical;
## Do the check on replay delay in case SR has disconnected because it way too far behind