[Zope] Python monitoring script for Zope?

Stephane Bortzmeyer bortzmeyer@pasteur.fr
Tue, 27 Feb 2001 13:03:38 +0100


On Monday 26 February 2001, at 11 h 27, the keyboard of Will Dennis 
<willd@p-wave.com> wrote:

> I am wondering if someone has already written a Python script that will
> monitor Zope and do a stop/start if Zope is not responding (we are
> experiencing a problem with a customer's site in that Zope stops
> responding to GET/POST requests, but the Zope processes are still
> running.)

Why in Python?

#!/bin/sh

# http://echoping.sourceforge.net/
if ! echoping -h / www.mysite.org 2>&1 >/dev/null 
then
                         cd /local/zope
                         ./stop
   	                 ./start
fi