About these ads

David Vassallo's Blog

If at first you don't succeed; call it version 1.0

Adding LDAP support to Nagios


Quick note:

I wanted to enable the check_ldap plugin in Nagios. You need to install the following package and recompile before you can use it:

apt-get install libldap2-dev

Quick example on how to use it:

In the commands.cfg:

define command{
command_name    check_ldap
command_line    $USER1$/check_ldap -H $HOSTADDRESS$ -b dc=david,dc=org -3 -4 -D cn=nagios,cn=Users,dc=david,dc=org -P nagios
}

In the windows.cfg / hosts.cfg:

define service{

use                                            generic-service

host_name                            my_ldap_server

service_description          LDAP

check_command               check_ldap

}

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 154 other followers

%d bloggers like this: