projects
/
check_postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa4e10d
)
Support MRTG for slony_status action.
author
Greg Sabino Mullane
<
[email protected]
>
Thu, 11 Feb 2010 03:30:51 +0000
(22:30 -0500)
committer
Greg Sabino Mullane
<
[email protected]
>
Thu, 11 Feb 2010 03:30:51 +0000
(22:30 -0500)
check_postgres.pl
patch
|
blob
|
blame
|
history
diff --git
a/check_postgres.pl
b/check_postgres.pl
index 5f1fe45a47614e0551cbeb233b582b615ee0ceae..2f0793c75738cd2b33ea3645467c34443872ba11 100755
(executable)
--- 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);