Fix check_hot_standby_delay perfdata output
authorNicolas Thauvin <[email protected]>
Mon, 27 Jun 2011 15:05:54 +0000 (17:05 +0200)
committerGuillaume 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

index 847a17a75412a6e3ba67047f80cc0130e40c13dd..0294eecf3be108794d3ff2fcc91f32298ef361a0 100755 (executable)
@@ -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