Home Contact Download

Search




Ohloh statistics

Hosted by

LDAP Tool Box project: even LDAP administrators need help



Check slurpd status

Presentation

This Nagios plugin check sluprd (OpenLDAP replication dameon) status. It must be run on the sluprd physical server to access to slurpd files. Use check_by_ssh or NRPE to integrate it in Nagios.

Replicated entries can be in four states:

  • transition: between slapd and slurpd
  • waiting: in slurpd queue
  • rejected: not accepted by slave
  • propagated: accepted by slave

The script will allow to define warning and critical levels for those states.

Configuration

Required Perl modules:

  • Getopt::Std
  • List::Util

Edit the script to modify some default parameters:

  • slurpd_tempdir: Directory where slurpd stores his files (default: /var/openldap-slurp/replica)
  • slapd_replog_file: Replog file beetween slapd and slurpd, as written in slapd.conf (default: /var/replog)

Usage

$ perl check_ldap_slurpd_status -w warning_level -c critical_level [-h hostname] [-p hostport] [-v]

Mandatory options

  • -w: warning level
  • -c: critical level

How to set levels:

  • The level must be given with 3 integers, for exemple 100,5,30
  • The first integer are the entries in transition (not picked up by slurpd)
  • The second integer are the rejected entries (not accepted by the slave)
  • The third integer are the waiting entries (picked up by slurpd but not sent to the slave)
  • If only one integer is given, the level will be the max of all entries (in transition + rejected + waiting)

Other options

  • -h: hostname as it is set in slurpd configuration (default: localhost)
  • -p: port as it is set in slurpd configuration (default: 0)
  • -v: verbose mode

Download

This plugin, along with all other Nagios plugins from this site, can be downloaded in a single archive.