From 70a6a535a23876b8cf2bec75d231e8a4d9d9ad48 Mon Sep 17 00:00:00 2001
From: Greg Sabino Mullane
This documents describes check_postgres.pl version 1.6.0
+This documents describes check_postgres.pl version 1.6.1
## Create all symlinks - check_postgres.pl --action=build_symlinks+ check_postgres.pl --symlinks
## Check connection to Postgres database 'pluto': check_postgres.pl --action=connection --db=pluto@@ -257,11 +257,11 @@ inside of it. For example, to run the action "timesync", you may eithe
check_postgres_timesync
All the symlinks are created for you in the current directory -if use the action "build_symlinks":
+if use the option --symlinks- perl check_postgres.pl --action="build_symlinks"+ perl check_postgres.pl --symlinks
If the file name already exists, it will not be overwritten. If the file exists -and is a symlink, you can force it to overwrite by using "build_symlinks_force"
+and is a symlink, you can force it to overwrite by using "--action=build_symlinks_force"Most actions take a --warning and an --critical option, indicating at what point we change from OK to WARNING, and what point we go to CRITICAL. Note that because criticals are always checked first, setting the warning equal to the @@ -373,11 +373,13 @@ Takes no --warning or --critical options.
Runs a custom query of your choosing, and parses the results. The query itself is passed in through
the custom_query
argument, and should be kept as simple as possible. If at all possible, wrap it in
-a view of function to keep things easier to manage. The query should return exactly two columns: the first
-is the result that will be checked, and the second is any performance data you want sent. At least one
-of warning or critical must be set. What they are set to depends on the type of query you are running.
-There are four types of custom_queries that can be run, specified by the checktype
argument. If none
-is specified, this action defaults to 'integer'. The four types are:
At least one warning or critical argument must be specified. What these are set to depends on the type of
+query you are running. There are four types of custom_queries that can be run, specified by the checktype
+argument. If none is specified, this action defaults to 'integer'. The four types are:
integer: @@ -815,7 +817,8 @@ If no units are given, the unit are assumed to be seconds.
but simply creates symlinks in the current directory for each action, in the form check_postgres_<action_name>. If the file already exists, it will not be overwritten. If the action is rebuild_symlinks_force, -then symlinks will be overwritten. +then symlinks will be overwritten. The option --symlinks is a shorter way of saying +--action=rebuild_symlinkscheck_postgres_settings_checksum
)
@@ -1071,6 +1074,12 @@ is needed by the check_disk_space action.
Add --symlinks option as a shortcut to --action=rebuild_symlinks
+Add the custom_query action.