check_postgres is a script for monitoring various attributes of your database (transaction id status, blocked queries, long running queries, connection status and more). It is designed to work with Nagios, MRTG, or in standalone scripts.
28 lines
1017 B
Plaintext
28 lines
1017 B
Plaintext
$OpenBSD: patch-check_postgres_pl,v 1.1.1.1 2012/05/21 11:05:38 sthen Exp $
|
|
--- check_postgres.pl.orig Wed Jan 18 03:12:05 2012
|
|
+++ check_postgres.pl Sat May 19 10:40:00 2012
|
|
@@ -864,12 +864,9 @@ if (! $opt{'no-check_postgresrc'}) {
|
|
elsif (-e "$ENV{HOME}/.check_postgresrc") {
|
|
$rcfile = "$ENV{HOME}/.check_postgresrc";
|
|
}
|
|
- elsif (-e '/etc/check_postgresrc') {
|
|
- $rcfile = '/etc/check_postgresrc';
|
|
+ elsif (-e '${SYSCONFDIR}/check_postgresrc') {
|
|
+ $rcfile = '${SYSCONFDIR}/check_postgresrc';
|
|
}
|
|
- elsif (-e '/usr/local/etc/check_postgresrc') {
|
|
- $rcfile = '/usr/local/etc/check_postgresrc';
|
|
- }
|
|
}
|
|
## We need a temporary hash so that multi-value options can be overridden on the command line
|
|
my %tempopt;
|
|
@@ -2034,7 +2031,7 @@ sub build_symlinks {
|
|
next;
|
|
}
|
|
|
|
- if (symlink $0, $file) {
|
|
+ if (symlink '${TRUEPREFIX}/bin/check_postgres.pl', $file) {
|
|
print msgn('symlink-create', $file);
|
|
}
|
|
else {
|