monit-dev
[Top][All Lists]
Advanced

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

[monit-dev] PostgreSQL Example


From: Raymond Barkhouse
Subject: [monit-dev] PostgreSQL Example
Date: Thu, 20 Dec 2007 13:50:25 -0500

Attached is an example for PostgreSQL using the pgsql protocol for both
socket and TCP/IP connections. I didn't see any submission guideline so
if you want a contextual diff or some other format email me.

Thanks for a great project.
Index: examples.php
===================================================================
RCS file: /sources/monit/monit/web/doc/examples.php,v
retrieving revision 1.19
diff -r1.19 examples.php
97a98
>         <LI><A HREF="#postgresql">PostgreSQL Server</A></LI>
700a702,715
> <h3><a name="postgresql">PostgreSQL</a></h3>
> <p>
>   Generally choosing either the socket <em>or</em> a TCP/IP connect is 
> sufficient.
> </p>
> <pre>
> check process postgres with pidfile /var/postgres/postmaster.pid
>    group database
>    start program = "/etc/init.d/postgresql start"
>    stop  program = "/etc/init.d/postgresql stop"
>    if failed unixsocket /var/run/postgresql/.s.PGSQL.5432 protocol pgsql then 
> restart
>    if failed host       192.168.1.1 port 5432             protocol pgsql then 
> restart
>    if 5 restarts within 5 cycles then timeout
> </pre>
> 

reply via email to

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