Differences

This shows you the differences between two versions of the page.

Link to this comparison view

documentation:nagios-plugins:check_berkeleydb_locks [2017/01/25 12:09] (current)
Line 1: Line 1:
 +====== 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 =====
 +
 +<​code>​
 +$ perl check_berkeley_db.pl -H <​db_home>​ [-S <​db_stat>​] [-h] [-v] [-V]
 +</​code>​
 +
 +==== 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 [[:​download#​monitoring|downloaded]] in a single archive.