diff options
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index 2afb72d5d..cc75dfd04 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -7981,10 +7981,17 @@ Instead, one should use a .pgpass or pg_service.conf file. =item B<--dbservice=NAME> -The name of a service inside of the pg_service.conf file. This file is in your home directory by -default and contains a simple list of connection options. You can also pass additional information +The name of a service inside of the pg_service.conf file. Before version 9.0 of Postgres, this is +a global file, usually found in /etc/pg_service.conf. If you are using version 9.0 or higher of +Postgres, you can use the file ".pg_service.conf" in the home directory of the user running +the script, e.g. nagios. + +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 + =back The database connection options can be grouped: I<--host=a,b --host=c --port=1234 --port=3344> |