problem monitoring ldap service

Hanspeter Kunz hkunz at ifi.uzh.ch
Fri Oct 23 22:30:04 CEST 2009


On Fri, 2009-10-23 at 13:14 -0700, Morris, Patrick wrote:
> Hanspeter Kunz wrote:
> > Hi,
> >
> > I'm trying to monitor an ldap service:
> >
> > define service {
> >         check_command                  check_ldap!dc=ifi,dc=uzh,dc=ch!-3
> >         host_name                      host.ifi.uzh.ch
> >         notification_period            24x7
> >         use                            generic-service
> >         service_description            host_check_ldap
> > }
> >
> > nagios tells me: 
> >
> >   Could not bind to the LDAP server
> >
> > However, if I execute the following command (on the nagios server)
> >
> >   check_ldap -H host.ifi.uzh.ch -b dc=ifi,dc=uzh,dc=ch -3
> >
> > (which should do correspond exactly to the above config as far as I
> > understand it)
> >   
> It does not correspond exactly, necessarily (and, in fact, most likely 
> does not).  It depends how your check_ldap command is defined in your 
> Nagios configuration.

check_ldap is defined as:

  check_ldap /usr/lib/nagios/plugins/check_ldap -H '$HOSTADDRESS$' -b
'$ARG1$'

and I can't find any difference to the shell command above.

Many thanks,
Hanspeter



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list