Home Contact Download

Search




Ohloh statistics

Hosted by

LDAP Tool Box project: even LDAP administrators need help



Check LDAP query

Presentation

This Nagios plugin counts entries returned by an LDAP search.

You can configure base, filter and scope of the search.

Configuration

Required Perl modules:

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

Usage

$ perl check_ldap_query.pl -H hostname [-p port] [-D binddn -W bindpw] -F filter -b base -s scope

Mandatory Options

  • -H: LDAP server hostname or IP, or LDAP URI
  • -b: Base of the LDAP search
  • -w: Warning threshold
  • -c: Critical threshold

Other options

  • -p: LDAP server port (not working if LDAP URI is set in -H)
  • -D: Bind DN
  • -W: 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

Download

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