Home Directory Plugins Network Protocols LDAP Check LDAP File Descriptors

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Check LDAP File Descriptors

Rating
1 vote
Favoured:
0
Owner
Website
Hits
96258
Files:
FileDescription
check_ldap_fdcheck_ldap_fd
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
This check plugin reports the number of file descriptors used by the daemon.
This check plugin checks for the process id of the slapd daemon and counts the number of file descriptors used by the daemon.

The command line argument for this script is:

ps -aef | grep 'slapd -D /local/sunone/ds/slapd-sunone1' | grep 'diruser' | awk '{print $2}' | xargs -I {} ls /proc/{}/fd | wc | awk '{print $1}'

You will need to change the following:

# change the "/local/sunone/ds/slapd-sunone1" below to the sunone ldap daemon you are running
LDAP="slapd -D /local/sunone/ds/slapd-sunone1"

# change the name below to the name the slapd daemon is running as
DIRUSER="diruser"

This needs to added to the NRPE config file locally on each host and be called from Nagios via check_nrpe.