Check eDirectory LDAP Statistics (Visit this link)
from 0 votesCheck the number of different searches and errors from your LDAP server.
**Description:**
This check program queries the ldap server for it\'s ldap statistics and compares those values against them from the last run. It uses timestamps to calculate the number of searches / erros per second and if the number of searches or errors exceeds the warning or critical limit a matching output is written and the exitcode is set.
This program was tested with Novell eDirectory 8.7 and 8.8
When the ldap server is reloaded the counters I use are set back to zero I check that and then just create a new history file for the next run.
**Usage:** ./check_edir_ldap_stats.sh -options-
Options:
|| [-H host] || host name to check || default: localhost ||
|| [-P port] || port number, 389 for ldap, 636 for ldaps or any other port || default: 636 ||
|| [-T ldap_type] || ldap protocol, ldap or ldaps || default: ldaps ||
|| [-w warn] || number of ldap searches per second since last check to produce a warning state || default: 50 ||
|| [-c crit] || number of ldap searches per second since last check to produce a critical state || default: 100 ||
|| [-u user] || ldap bind user, if empty anonymous bind is tried || default: empty, anonymous bind ||
|| [-p passw] || password of the ldap bind user || default: empty ||
**Requirements:**
The openldap2-client package must be installed and the ldapsearch
command accessible through the search path of the user.
**Sample:**
Command: ./check_edir_ldap_stats.sh -H srv01 -P 636 -T ldaps -w 50 -c 100
First run produces the following output:
//**Script started the first time, writing just the history file /tmp/ldap_history.tmp**//
and this are the contents of the /tmp/ldap_history.tmp:
TIME: 1192464864
wholeSubtreeSearchOps: 1264376
oneLevelSearchOps: 575343
searchOps: 7017481
errors: 1141
securityErrors: 1175
The second run now compares those values against the current values and if any one of this values exceeds the warning or critical value, it is reported.
//**LDAPSTATS CRITICAL: wholeSubtreeSearchOps: 160 oneLevelSearchOps: 130 searchOps: 531 errors: 0 securityErrors: 0 - warn: 100 crit: 50| wholeSubtreeSearchOps=16;50;100; oneLevelSearchOps=130;50;100; searchOps=531;50;100; errors=0;50;100; securityErrors=0;50;100;**//
The output of the check program then just shows the difference between the first and the second run. So there were 160 subtree searches per second, 130 one level searches per second, ... during the last run.
**Changelog:**
version 1.0 - initial release
version 1.1 - changed the name of the logfiles to contain the ldap hostname so more then one ldap server can be monitored. Thanks to AIX5L fort this hint !
version 1.2 - added performance data output. Thanks to Christian Mies for the patch to do this !
This check program queries the ldap server for it\'s ldap statistics and compares those values against them from the last run. It uses timestamps to calculate the number of searches / erros per second and if the number of searches or errors exceeds the warning or critical limit a matching output is written and the exitcode is set.
This program was tested with Novell eDirectory 8.7 and 8.8
When the ldap server is reloaded the counters I use are set back to zero I check that and then just create a new history file for the next run.
**Usage:** ./check_edir_ldap_stats.sh -options-
Options:
|| [-H host] || host name to check || default: localhost ||
|| [-P port] || port number, 389 for ldap, 636 for ldaps or any other port || default: 636 ||
|| [-T ldap_type] || ldap protocol, ldap or ldaps || default: ldaps ||
|| [-w warn] || number of ldap searches per second since last check to produce a warning state || default: 50 ||
|| [-c crit] || number of ldap searches per second since last check to produce a critical state || default: 100 ||
|| [-u user] || ldap bind user, if empty anonymous bind is tried || default: empty, anonymous bind ||
|| [-p passw] || password of the ldap bind user || default: empty ||
**Requirements:**
The openldap2-client package must be installed and the ldapsearch
command accessible through the search path of the user.
**Sample:**
Command: ./check_edir_ldap_stats.sh -H srv01 -P 636 -T ldaps -w 50 -c 100
First run produces the following output:
//**Script started the first time, writing just the history file /tmp/ldap_history.tmp**//
and this are the contents of the /tmp/ldap_history.tmp:
TIME: 1192464864
wholeSubtreeSearchOps: 1264376
oneLevelSearchOps: 575343
searchOps: 7017481
errors: 1141
securityErrors: 1175
The second run now compares those values against the current values and if any one of this values exceeds the warning or critical value, it is reported.
//**LDAPSTATS CRITICAL: wholeSubtreeSearchOps: 160 oneLevelSearchOps: 130 searchOps: 531 errors: 0 securityErrors: 0 - warn: 100 crit: 50| wholeSubtreeSearchOps=16;50;100; oneLevelSearchOps=130;50;100; searchOps=531;50;100; errors=0;50;100; securityErrors=0;50;100;**//
The output of the check program then just shows the difference between the first and the second run. So there were 160 subtree searches per second, 130 one level searches per second, ... during the last run.
**Changelog:**
version 1.0 - initial release
version 1.1 - changed the name of the logfiles to contain the ldap hostname so more then one ldap server can be monitored. Thanks to AIX5L fort this hint !
version 1.2 - added performance data output. Thanks to Christian Mies for the patch to do this !
Submitted by: RainerBrunold
Hits: 1278
Overall downloads: 176
Added: 2007-10-15 00:00:00
Last Modified: 2009-12-11 09:28:42
| Filename | Preview | Size | Description | DL |
|---|---|---|---|---|
| check_edir_ldap_stats.sh | ![]() |
7 kb | version 1.1 | 700 |
| _check_edir_ldap_stats.sh | ![]() |
8 kb | version 1.2 | 180 |
Comments
Be the first to comment this project.
Leave a reply
If you just want to rate the project leave the other field empty.
Even though it would be nice if you would drop a line.
-
check oes linux nss volume usage
1.5 from 3 votesThis check programs allows you to check the volume usage of nss volumes running on OES linux systems and monitor several other parameters. -
check_dxml_drvstate
from 0 votesNovell DirXML 1.1 and Identity Manager 2.x/3.x driver state detector plugin for Nagios -
Groupwise Checks
from 0 votesSome scripts we use to monitor our groupwise integrations. All written in php, yet the logic may be interesting for some. -
GroupWise
from 0 votesCheck the status of the POA, MTA, GWIA and GWWEB agents by SNMP. -
check_idm_sync
from 0 votesCheck Novell Identity Manager synchronization between eDirectory trees using ldap.
-
Plugin/Agent for Netware 5.0 - 6.5
from 0 votesNWNAGMON is an NLM plugin for Netware 5.0 .. 6.5 checks some basic server props and sends them directly to a nagios server (nsca v3 packets) -
check_gwiarl
from 0 votescheck_gwiarl is a Bash script to parse Novell GroupWise XML Log Files that are created by Redline from Beginfinate including Performance Data. -
check_nwstat with Performancedata
from 0 votespatched Version of check_nwstat ( codebase of check_nwstat.c from Nagios Plugins 1.4.2 ) Published in Nagios-Plugins CVS and so in the next release of Nagios Plugins. -
check_ipp
from 0 votesA check-plugin for NDPS and IPP Printer Queue Size. -
check_ndslogin
from 0 votescheck_ndslogin can used by Nagios to check every configured Server for eDirectory Login




