From: Greg Sabino Mullane Date: Sat, 12 Feb 2011 17:49:10 +0000 (-0500) Subject: Fix MRTG for check_locks. X-Git-Tag: 2.18.0~78 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=f0b76538649f2767067da63119411a276d5d3e71;p=check_postgres.git Fix MRTG for check_locks. --- diff --git a/check_postgres.pl b/check_postgres.pl index 77302cfe6..dfa813538 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -4226,8 +4226,7 @@ sub check_locks { } if ($MRTG) { - $stats{$db->{dbname}} = $totallock{total}; - next; + do_mrtg( {one => $totallock{total}, msg => "DB: $db->{dbname}" } ); } # Nagios perfdata output