[ZODB-Dev] Monitoring ZEO

Chris Withers chrisw@nipltd.com
Tue, 15 Jan 2002 18:02:22 +0000


Chris McDonough wrote:
> 
> I'd like to be able to monitor a ZEO storage server for "upness" at a
> customer site.  The storage server listens on a TCP port.  I'd like to
> be able to monitor ZEO directly by connecting to it over the equivalent
> of telnet.  Is there any set of commands I could issue in plaintext in a
> telnet session to the ZEO server port that would give a known response
> indicating that the storage server is nominally "ok"?  Or is the best I
> could do just to try to connect to the port and if I'm able to establish
> a connection, to assume that ZEO is ok?

You could just set up a skeleton python script that imported Zope (with
INSTANCE_HOME set and a custom_zodb.py findable)

That way you could check the server was up and that it was handling ZEO-ish
information...

cheers,

Chris