Check eDirectory LDAP Statistics (Visit this link)

rating from 0 votes
Check 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 !

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 Preview 7 kb version 1.1 700
_check_edir_ldap_stats.sh Preview 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.

Allowed tags: blockquote, strong, a, b, i, u, code

Captcha Reload Image


  • check oes linux nss volume usage

    rating1.5 from 3 votes
    This 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

    rating from 0 votes
    Novell DirXML 1.1 and Identity Manager 2.x/3.x driver state detector plugin for Nagios
  • Groupwise Checks

    rating from 0 votes
    Some scripts we use to monitor our groupwise integrations. All written in php, yet the logic may be interesting for some.
  • GroupWise

    rating from 0 votes
    Check the status of the POA, MTA, GWIA and GWWEB agents by SNMP.
  • check_idm_sync

    rating from 0 votes
    Check Novell Identity Manager synchronization between eDirectory trees using ldap.
  • Plugin/Agent for Netware 5.0 - 6.5

    rating from 0 votes
    NWNAGMON 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

    rating from 0 votes
    check_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

    rating from 0 votes
    patched 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

    rating from 0 votes
    A check-plugin for NDPS and IPP Printer Queue Size.
  • check_ndslogin

    rating from 0 votes
    check_ndslogin can used by Nagios to check every configured Server for eDirectory Login
Catalot 1.3.0 (appkit/v0.9.0-dev, Agavi/1.0.0) | www.netways.de | Legal
© 2009 NETWAYS GmbH. The Program is provided AS IS, without warranty. Licensed under GPLv3.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3.