diff options
author | Greg Sabino Mullane | 2011-02-09 18:36:06 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2011-02-09 18:36:06 +0000 |
commit | 974cd7007ef6271a1f43c11498df73c52faa6a07 (patch) | |
tree | 6be911b8c4c418e57bf66e5a6c64d776f980c847 /check_postgres.pl | |
parent | e09b9cfa4d2c9fdda71892dce845e37a51e0075c (diff) |
Better perfdata trailing semicolon cleanup.
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; |