summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2010-02-11 03:30:51 +0000
committerGreg Sabino Mullane2010-02-11 03:30:51 +0000
commit8eb4df478492cb03a6110a4382fd867884d80a54 (patch)
tree400b67bf46fee6b24f0697d1b5dc4667ee2137f0 /check_postgres.pl
parentfa4e10dc529871967a6bebd3701f501b43748fdb (diff)
Support MRTG for slony_status action.
Diffstat (limited to 'check_postgres.pl')
-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);