Check OpenLDAP cn=monitor information¶
Presentation¶
This Nagios plugin gets different information from OpenLDAP cn=monitor backend like:
- Current connections
- Total connections
- LDAP operations
- BDB backend caches
- MDB used and free pages
With performance data, it allows to create graph to follow evolution of these indicators.
Usage¶
$ perl check_ldap_monitor.pl -T type -H hostname [-p port] [-D binddn -P bindpw] [-m mode]
Mandatory Options
-H | LDAP server hostname or IP, or LDAP URI |
-w | Warning threshold |
-c | Critical threshold |
-T | Type of information to check:
|
Other options
-p | LDAP server port (not working if LDAP URI is set in -H) |
-D | Bind DN |
-P | Bind password |
-v | Verbose |
-V | Print version and exit |
-h | Print help and exit |
-f | Performance data |
-t | Timeout |
-F | Filter of the LDAP search |
-s | Scope of the LDAP search |
-b | Base of the LDAP search |
-m | Mode (default: lesser):
|
Download¶
This plugin, along with all other Nagios plugins from this site, can be downloaded in a single archive.
For example:
$ perl check_ldap_monitor.pl -H 'ldap+tls://ldap.example.org' -D 'cn=monitor' -P 'secret' -b "cn=monitor" -T mdbpagesfreerelative -w 20 -c 10 -m lesser
OK - 34.375 percent of free pages in MDB database returned