diff options
-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 403e7eefa..de2cc694d 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -814,7 +814,7 @@ while (my $arg = pop @ARGV) { if (@badargs) { warn "Invalid arguments:\n"; for (@badargs) { - print " $_\n"; + warn " $_\n"; } die $USAGE; } @@ -1175,6 +1175,7 @@ sub add_response { $db->{perf} =~ s/^ +//; $perf .= sprintf '%s%s', length($perf) ? ' ' : '', $db->{perf}; } + ## Strip trailing semicolons as allowed by the Nagios spec $perf =~ s/; / /; $perf =~ s/;$//; |