Check LDAP query


This Nagios plugin counts entries returned by an LDAP search.

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


Required Perl modules:


$ perl -H hostname [-p port] [-D binddn -P bindpw] -F filter -b base -s scope -m mode

Mandatory Options


LDAP server hostname or IP, or LDAP URI


Base of the LDAP search


Warning threshold


Critical threshold



  • lesser: error is returned if found value is inferior to warning or critical level

  • greater: error is returned if found value is superior to warning or critical level

Other options


LDAP server port (not working if LDAP URI is set in -H)


Bind DN


Bind password




Print version and exit


Print help and exit


Performance data




Filter of the LDAP search


Scope of the LDAP search


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