diff options
author | Matthew Seaman <matthew@FreeBSD.org> | 2015-04-08 11:18:19 +0000 |
---|---|---|
committer | Matthew Seaman <matthew@FreeBSD.org> | 2015-04-08 11:18:19 +0000 |
commit | 02370bae7af618f34f1e1d7f36374d388ce51378 (patch) | |
tree | e81e311dd732d1aa90f4700dc10700d151dfb5e3 /net-mgmt/nagios-check_postgres/files/patch-check__postgres.pl | |
parent | Basic and Digest HTTP authentication for Flask routes. (diff) |
I've had reports from colleagues of check_postgres not finding psql
when run via nrpe. Hardcode the directory (${LOCALBASE}/bin) expected
to contain the postgres client and other binaries.
Diffstat (limited to 'net-mgmt/nagios-check_postgres/files/patch-check__postgres.pl')
-rw-r--r-- | net-mgmt/nagios-check_postgres/files/patch-check__postgres.pl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net-mgmt/nagios-check_postgres/files/patch-check__postgres.pl b/net-mgmt/nagios-check_postgres/files/patch-check__postgres.pl new file mode 100644 index 000000000000..b4c66f976785 --- /dev/null +++ b/net-mgmt/nagios-check_postgres/files/patch-check__postgres.pl @@ -0,0 +1,11 @@ +--- check_postgres.pl.orig 2015-04-08 10:32:58 UTC ++++ check_postgres.pl +@@ -47,7 +47,7 @@ our $DEFAULT_OUTPUT = 'nagios'; + + ## If psql binaries are not in your path, it is recommended to hardcode it here, + ## as an alternative to the --PGBINDIR option +-$PGBINDIR = ''; ++$PGBINDIR = '%%LOCALBASE%%/bin'; + + ## If this is true, $opt{PSQL} and $opt{PGBINDIR} are disabled for security reasons + our $NO_PSQL_OPTION = 1; |