Downloads: 55

Reviews: 0

  • ldap_org.PNG
    ldap_org.PNG

You want to monitor the number of entries on your LDAP trees. Please download and compile the ldap_org external input plugin, which you can find here.

  • Create your telegraf config file, with many LDAP instances as your need.
  • Test the plugin to ensure you are collecting the data as explained in the plugin README
  • Then install this dashboard and enjoy!

Tested with 389 Directory Server, but any LDAP server should work.

Collector Configuration Details

# LDAP Count by Org plugin
[[inputs.ldap_org]]
  # LDAP Host and post to query
  host = "localhost"
  port = 389

  # ldaps, starttls, or no encryption. default is an empty string, disabling all encryption.
  # note that port will likely need to be changed to 636 for ldaps
  # valid options: "" | "starttls" | "ldaps"
  tls = ""

  # skip peer certificate verification. Default is false.
  insecure_skip_verify = false

  # Path to PEM-encoded Root certificate to use to verify server certificate
  tls_ca = "/etc/ssl/certs.pem"

  # dn/password to bind with. If bind_dn is empty, an anonymous bind is performed.
  bindDn = ""
  bindPassword = ""

  # Where to count metrics
  # For instance ou=<metric_name>,o=myorg,c=en
  # In searchBase look for "retAttr=*", then for each DN look for Filter and count results.
  searchBase = "o=myorg,c=en"
  retAttr = "ou"
  filter = "(objectClass=*)"
Get this dashboard:
10591
Dependencies: