Check BerkeleyDB locks

Presentation

This plugin checks locks used (current and maximum) in a BerkeleyDB database. This allows to prevent running out of locks, a well known issue in OpenLDAP with BDB or HDB backend.

With performance data, it allows to create graph to follow evolution of these indicators.

Configuration

Required Perl modules:

  • Net::LDAP
  • Getopt::Std
  • File::Basename

You also require the db_stat utility.

Usage

$ perl check_berkeley_db.pl -H <db_home> [-S <db_stat>] [-h] [-v] [-V]

Mandatory Options

  • -H: Home of BDB files
  • -w: Warning threshold in percent
  • -c: Critical threshold in percent

Other options

  • -S: Path to db_stat utility
  • -v: Verbose
  • -V: Print version and exit
  • -h: Print help and exit
  • -f: Performance data
  • –current: Display performance data for current locks/lockers/lock objects
  • –maximum: Display performance data for maximum locks/lockers/lock objects

Download

This plugin, along with all other Nagios plugins from this site, can be downloaded in a single archive.