Correct extra space in perfdata
authorAdrien nayrat <[email protected]>
Thu, 13 Nov 2014 13:02:39 +0000 (14:02 +0100)
committerChristoph Berg <[email protected]>
Thu, 26 May 2016 17:37:26 +0000 (19:37 +0200)
The extra space result in two spaces between the metrics and its incorrectly parse by centreon.

check_postgres.pl

index 56ff7bfa10c5a490b27118f0d0ac8b0bc369684d..527ab3802b2e807d69545a3a6f1e796b952e0e8b 100755 (executable)
@@ -5121,7 +5121,7 @@ sub check_hot_standby_delay {
         {one => $rep_delta, two => $rec_delta});
 
     if (defined $rep_delta) {
-        $db->{perf} = sprintf ' %s=%s;%s;%s ',
+        $db->{perf} = sprintf ' %s=%s;%s;%s',
             perfname(msg('hs-replay-delay')), $rep_delta, $warning, $critical;
     }
     if (defined $rec_delta) {