[Date Prev][Date Next]
RE: OpenLDAP watchdog
Hi dear list
can i know for what reasons will LDAP server will stop
once a ideal server is started it should work
perfectly without any down why do we need to restart
till now this did not happen with me one reason can be
i dont have much of load on my server. your answer
will help in visioning the problems that may arise
my enviroment is openldap2 with qmail and courier-imap
--- "Doyon, Jean-Francois"
<Jean-Francois.Doyon@CCRS.NRCan.gc.ca> wrote: > I
haven't done it myself, but if I were to (And I
> probably will end up doing
> something like that), I'd use PerLDAP to try a
> connection and maybe send an
> e-mail or something, or attempt a restart, or
> something to that effect.
> This has the advantage of giving you far much
> detailed control over what you
> want to test, and how to react to problems ...
> > ----------
> > From: Andrew C
> > Sent: Friday, August 10, 2001 5:18 PM
> > To: Jeff Costlow
> > Cc: 'email@example.com'
> > Subject: Re: OpenLDAP watchdog
> > I use a script that tests using ldapsearch, and
> search for something that
> > will always be in the directory (like the basedn).
> > If slapd is down, then ldapsearch will return an
> error code. (it doesn't
> > return an error code if it doesn't just doesn't
> find what you are looking
> > for, hence searching for an entry that will always
> be there!).
> > You can wrap this inside a simple shell script
> that will then check the
> > return code (if 0, ldap is up, else ldap is
> down...restart slapd).
> > You can then put this script in a cron job and
> have it run every 15
> > minutes or so (or however much time you wish to
> check it with)
> > Hope this helps,
> > Andy
> > On Fri, 10 Aug 2001, Jeff Costlow wrote:
> > > By watchdog I mean a program that periodically
> wakes up and checks to
> > see if the server is alive. If it isn't it does
> something (usually
> > re-starts the server).
> > >
> > > Has anyone already written one?
> > >
Do You Yahoo!?
Send a newsletter, share photos & files, conduct polls, organize chat events. Visit http://in.groups.yahoo.com.