From 6df6358148cd3399284e7495b62e024e18ab3f91 Mon Sep 17 00:00:00 2001
From: Greg Sabino Mullane
Date: Sun, 5 Apr 2009 23:18:57 -0400
Subject: [PATCH] Fix typos, mention pg_service.conf in same breath as .pgpass
---
check_postgres.pl | 12 ++++++------
check_postgres.pl.html | 10 +++++-----
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/check_postgres.pl b/check_postgres.pl
index 8c30a9fdb..ccaa1f25d 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -4498,11 +4498,11 @@ argument, for example:
--output=simple,MB
-=head3 Simple output
+=head3 Cacti output
The Cacti output consists of one or more items on the same line, with a simple name, a colon, and
then a number. At the moment, the only action with explicit Cacti output is 'dbstats', and using
-the --output option is not needed in this case, Cacti is the only output for this action. For many
+the --output option is not needed in this case, as Cacti is the only output for this action. For many
other actions, using --simple is enough to make Cacti happy.
=head1 DATABASE CONNECTION OPTIONS
@@ -4538,7 +4538,7 @@ it defaults to 'postgres'.
=item B<--dbpass=PASSWORD>
Provides the password to connect to the database with. Use of this option is highly discouraged.
-Instead, one should use a .pgpass file.
+Instead, one should use a .pgpass or pg_service.conf file.
=item B<--dbservice=NAME>
@@ -4722,7 +4722,7 @@ given. This choice does not use the B setting. Second, the
percentage of available connections can be given. Third, a negative number can
be given which represents the number of connections left until B
is reached. The default values for I<--warning> and I<--critical> are '90%' and '95%'.
-You can also filter the databases by use of the <--include> and I<--exclude> options.
+You can also filter the databases by use of the I<--include> and I<--exclude> options.
See the L"BASIC FILTERING"> section for more details.
To view only non-idle processes, you can use the I<--noidle> argument. Note that the
@@ -5205,14 +5205,14 @@ Example 2: Give a critical if there are no active LISTEN requests matching 'grim
check_postgres_listener --db oskar --critical=~grimm
For MRTG output, returns a 1 or a 0 on the first, indicating success or failure. The name of the notice must
-be provided via the <--mrtg> option.
+be provided via the I<--mrtg> option.
=head2 B
(C) Check the total number of locks on one or more databases. There is no
need to run this more than once per database cluster. Databases can be filtered
with the I<--include> and I<--exclude> options. See the L"BASIC FILTERING"> section
-for more details.
+for more details.
The I<--warning> and I<--critical> options can be specified as simple numbers,
which represent the total number of locks, or they can be broken down by type of lock.
diff --git a/check_postgres.pl.html b/check_postgres.pl.html
index 3c04f6459..c6ec590cb 100644
--- a/check_postgres.pl.html
+++ b/check_postgres.pl.html
@@ -25,7 +25,7 @@
Nagios output
MRTG output
Simple output
- Simple output
+ Cacti output
@@ -190,7 +190,7 @@ argument, for example:
The Cacti output consists of one or more items on the same line, with a simple name, a colon, and
then a number. At the moment, the only action with explicit Cacti output is 'dbstats', and using
-the --output option is not needed in this case, Cacti is the only output for this action. For many
+the --output option is not needed in this case, as Cacti is the only output for this action. For many
other actions, using --simple is enough to make Cacti happy.
@@ -230,7 +230,7 @@ it defaults to 'postgres'.
Provides the password to connect to the database with. Use of this option is highly discouraged.
-Instead, one should use a .pgpass file.
+Instead, one should use a .pgpass of pg_service.conf file.
--dbservice=NAME
@@ -421,7 +421,7 @@ given. This choice does not use the max_connections setting. Se
percentage of available connections can be given. Third, a negative number can
be given which represents the number of connections left until max_connections
is reached. The default values for --warning and --critical are '90%' and '95%'.
-You can also filter the databases by use of the <--include> and --exclude options.
+You can also filter the databases by use of the --include and --exclude options.
See the BASIC FILTERING section for more details.
To view only non-idle processes, you can use the --noidle argument. Note that the
user you are connecting as must be a superuser for this to work properly.
@@ -814,7 +814,7 @@ check.
check_postgres_listener --db oskar --critical=~grimm
For MRTG output, returns a 1 or a 0 on the first, indicating success or failure. The name of the notice must
-be provided via the <--mrtg> option.
+be provided via the --mrtg option.
--
2.39.5