title: PostgreSQL Locks
agents: linux
catalog: app/postgresql
license: GPL
distribution: check_mk
description:
 This check allows you to monitor the amount of shared access and exclusive
 locks currently active on a postgres server.
 You can configure limits for the shared access and exclusive locks.

 This check relies on data reported by the agent-side plugin {mk_postgres}

inventory:
 One service per database.

perfdata:
 Two values. Shared and exclusive locks.

[parameters]
parameters(dict): The parameters are a dictionary with the following optional keys

    {'levels_shared'}: An int tuple specifiy the WARN and CRIT limit for shared access locks.

    {'levels_exclusive'}: An int tuple specifiy the WARN and CRIT limit for exclusive locks.
