diff options
author | Greg Sabino Mullane | 2010-02-11 03:30:51 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2010-02-11 03:30:51 +0000 |
commit | 8eb4df478492cb03a6110a4382fd867884d80a54 (patch) | |
tree | 400b67bf46fee6b24f0697d1b5dc4667ee2137f0 /check_postgres.pl | |
parent | fa4e10dc529871967a6bebd3701f501b43748fdb (diff) |
Support MRTG for slony_status action.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 4 |
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); |