summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck_postgres.pl4
1 files changed, 4 insertions, 0 deletions
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);