diff options
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index d8f4773f3..5a75800b4 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -1087,7 +1087,8 @@ sub add_response { $perf .= sprintf '%s%s', length($perf) ? ' ' : '', $db->{perf}; } ## Strip trailing semicolons as allowed by the Nagios spec - $perf =~ s/[; ]+$//; + $perf =~ s/; / /; + $perf =~ s/;$//; push @{$type->{$header}} => [$msg,$perf]; return; |