From: Magnus Hagander Date: Wed, 25 May 2016 09:44:37 +0000 (+0200) Subject: Update URLs to www.postgresql.org to be https X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=9f95e492ee3972943231de6f420762790c8253fe;p=check_postgres.git Update URLs to www.postgresql.org to be https The main PostgreSQL website is now https only. The versions.rss check still works by following the redirect, but it's more efficient to hit the https URL directly. In passing, also update all the direct links in the documentation to be https. --- diff --git a/check_postgres.pl b/check_postgres.pl index 8f63b85ef..178fb3763 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -5767,7 +5767,7 @@ sub check_new_version_pg { ## Check if a new version of Postgres is available - my $url = 'http://www.postgresql.org/versions.rss'; + my $url = 'https://www.postgresql.org/versions.rss'; ## Grab the local version my $info = run_command('SELECT version() AS version'); @@ -8064,7 +8064,7 @@ sub check_txn_wraparound { ## Supports: Nagios, MRTG ## Warning and critical are the number of transactions performed ## Thus, anything *over* that number will trip the alert - ## See: http://www.postgresql.org/docs/current/static/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND + ## See: https://www.postgresql.org/docs/current/static/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND ## It makes no sense to run this more than once on the same cluster my ($warning, $critical) = validate_range @@ -8392,7 +8392,7 @@ This file contains a simple list of connection options. You can also pass additi when using this option such as --dbservice="maindatabase sslmode=require" The documentation for this file can be found at -http://www.postgresql.org/docs/current/static/libpq-pgservice.html +https://www.postgresql.org/docs/current/static/libpq-pgservice.html =back @@ -9858,7 +9858,7 @@ The I<--warning> and I<--critical> options indicate the number of transactions d If either option is not given, the default values of 1.3 and 1.4 billion are used. There is no need to run this command more than once per database cluster. For a more detailed discussion of what this number represents and what to do about it, please visit the page -L +L The warning and critical values can have underscores in the number for legibility, as Perl does. diff --git a/check_postgres.pl.html b/check_postgres.pl.html index 6122ea33c..09304672f 100644 --- a/check_postgres.pl.html +++ b/check_postgres.pl.html @@ -230,7 +230,7 @@

This file contains a simple list of connection options. You can also pass additional information when using this option such as --dbservice="maindatabase sslmode=require"

-

The documentation for this file can be found at http://www.postgresql.org/docs/current/static/libpq-pgservice.html

+

The documentation for this file can be found at https://www.postgresql.org/docs/current/static/libpq-pgservice.html

@@ -1285,7 +1285,7 @@

txn_wraparound

-

(symlink: check_postgres_txn_wraparound) Checks how close to transaction wraparound one or more databases are getting. The --warning and --critical options indicate the number of transactions done, and must be a positive integer. If either option is not given, the default values of 1.3 and 1.4 billion are used. There is no need to run this command more than once per database cluster. For a more detailed discussion of what this number represents and what to do about it, please visit the page http://www.postgresql.org/docs/current/static/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND

+

(symlink: check_postgres_txn_wraparound) Checks how close to transaction wraparound one or more databases are getting. The --warning and --critical options indicate the number of transactions done, and must be a positive integer. If either option is not given, the default values of 1.3 and 1.4 billion are used. There is no need to run this command more than once per database cluster. For a more detailed discussion of what this number represents and what to do about it, please visit the page https://www.postgresql.org/docs/current/static/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND

The warning and critical values can have underscores in the number for legibility, as Perl does.