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
96091
Files:
FileDescription
check_ldap_fdcheck_ldap_fd
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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.