[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: OpenLDAP watchdog

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 Altepeter[SMTP:aaltepet@cs.und.edu]
> Sent: 	Friday, August 10, 2001 5:18 PM
> To: 	Jeff Costlow
> Cc: 	'openldap-software@openldap.org'
> 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?
> >