From: Greg Sabino Mullane Date: Thu, 11 Feb 2010 03:30:51 +0000 (-0500) Subject: Support MRTG for slony_status action. X-Git-Tag: 2.14.0~2 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=8eb4df478492cb03a6110a4382fd867884d80a54;p=check_postgres.git Support MRTG for slony_status action. --- diff --git a/check_postgres.pl b/check_postgres.pl index 5f1fe45a4..2f0793c75 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -6503,6 +6503,10 @@ sub check_slony_status { return; } my $lagtime = $1; + if ($MRTG) { + do_mrtg({one => $lagtime}); + return; + } my $dbname = $db->{dbname}; $db->{perf} = "'$dbname'=$lagtime;$warning;$critical"; my $msg = msg('slony-lagtime', $lagtime);