From a0465b393dd5b1967bc38b5a06412433206a7de0 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 10 Jun 2008 10:01:31 -0400 Subject: [PATCH] Add some tips from Ioannis Tambouras into a new section. --- check_postgres.pl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/check_postgres.pl b/check_postgres.pl index fa1950f13..0e6bdcf6b 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -3665,6 +3665,15 @@ make sure that the databases can be contacted, and that certain per-action prerequisites are met, such as whether the user is a superuser, if the version of Postgres is new enough, and if stats_row_level is on. +=head1 TIPS AND TRICKS + +Since this program uses the B program, make sure it is accesible to the +uer running the script. If run as a cronjob, this often means modifying the +B environment variable. + +If you are using Nagios in embedded Perl mode, use the --action argument +instead of symlinks, so that the plugin only gets compiled one time. + =head1 DEPENDENCIES Access to a working version of psql, and the following very standard Perl modules: @@ -3854,7 +3863,6 @@ Some example Nagios configuration settings using this script: check_command check_postgres_locks!2!3 } - =head1 LICENSE AND COPYRIGHT Copyright (c) 2007-2008 Greg Sabino Mullane . -- 2.39.5