SURVIVOR: dblocks Check Module
About dblocks
basics
Module Type Scheduler Remote
check No Yes
syntax
     module dblocks {
       type (postgres)
       name <string>
       [username <string>]
       [password <password>]
       warn <number>
       prob <number>
     }
     via <transport>
 

Dependencies

  • Perl Modules

Arguments

Name Type Value
type string Database type. Currently supported types: postgres.
name string Database name or identifier.
username optional string Username to use if authentication is required.
password optional password Password to use if authentication is required.
warn number Number of locks at which to issue a warning.
prob number Number of locks at which to issue a problem.

Description

The dblocks module determines the number of locks held in a database by connecting to the specified database and then querying the system table responsible for listing the current database locks.

Examples

  1. To test the postgres database accounting with login survivor and password foo, warning if any locks are present:
         module dblocks {
           type     postgres
           name     accounting
           username survivor
           password foo
           warn     1
         }
         via remote
         

$Date: 2007/03/29 12:26:49 $
$Revision: 1.1 $
keywords
name
password
prob
type
username
warn