[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: postgresql test

From: Jan-Henrik Haukeland
Subject: Re: postgresql test
Date: Tue, 17 Jan 2006 12:24:13 +0100

On 17. jan. 2006, at 09.41, address@hidden wrote:

These struggles would be unncessary only if I knew how to "speak" to
postgres directly...

That is the key, monit provides a connected socket for you and instead of linking in the postgres client library to ping the server, you should send data using the postgres network protocol. Unless you can find documentation for the protocol, fire up Ethereal and see what happens both ways when when you send e.g. this query to postgres "select 1;" then send and expect those packages. Look at the protocol tests for mysql and oracle for inspiration.

Jan-Henrik Haukeland
Mobil +47 97141255

reply via email to

[Prev in Thread] Current Thread [Next in Thread]