From 5c83036f84f8a3579cadc3e3080142918a500105 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 14 Apr 2009 13:47:26 -0400 Subject: Testing tweaks. --- check_postgres.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'check_postgres.pl') diff --git a/check_postgres.pl b/check_postgres.pl index dcdf7bc31..1ebe1b5db 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -2785,8 +2785,8 @@ sub check_fsm_pages { my $info = run_command($SQL, {regex => qr[\d+] } ); for $db (@{$info->{db}}) { - SLURP: while ($db->{slurp} =~ /\s*(\d+) \|\s+(\d+) \|\s+(\d+)$/gsm) { - my ($pages,$max,$percent) = ($1,$2,$3); + SLURP: while ($db->{slurp} =~ /\s*(\d*) \|\s+(\d+) \|\s+(\d*)$/gsm) { + my ($pages,$max,$percent) = ($1||0,$2,$3||0); if ($MRTG) { do_mrtg({one => $percent, two => $pages}); -- cgit v1.2.3