BUGS AND LIMITATIONS

The index bloat size optimization is rough.

Some actions may not work on older versions of Postgres (before 8.0).

Please report any problems to greg@endpoint.com.


AUTHOR

Greg Sabino Mullane <greg@endpoint.com>


NAGIOS EXAMPLES

Some example Nagios configuration settings using this script:

bash

  1. define command {
  2.      command_name    check_postgres_size
  3.      command_line    $USER2$/check_postgres.pl -H $HOSTADDRESS$ -u pgsql -db postgres --action database_size -w $ARG1$ -c $ARG2$
  4.  }
bash

  1. define command {
  2.      command_name    check_postgres_locks
  3.      command_line    $USER2$/check_postgres.pl -H $HOSTADDRESS$ -u pgsql -db postgres --action locks -w $ARG1$ -c $ARG2$
  4.  }
bash

  1. define service {
  2.      use                    generic-other
  3.      host_name              dbhost.gtld
  4.      service_description    dbhost PostgreSQL Service Database Usage Size
  5.      check_command          check_postgres_size!256000000!512000000
  6.  }
bash

  1. define service {
  2.      use                    generic-other
  3.      host_name              dbhost.gtld
  4.      service_description    dbhost PostgreSQL Service Database Locks
  5.      check_command          check_postgres_locks!2!3
  6.  }


LICENSE AND COPYRIGHT

Copyright (c) 2007-2008 Greg Sabino Mullane <greg@endpoint.com>.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

bash

  1. 1. Redistributions of source code must retain the above copyright notice,
  2.      this list of conditions and the following disclaimer.
  3.   2. Redistributions in binary form must reproduce the above copyright notice,
  4.      this list of conditions and the following disclaimer in the documentation
  5.      and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
OF SUCH DAMAGE.

Leave a Reply

Your email address will not be published. Required fields are marked *

clear formPost comment