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> >
_______________________________________________ monit-dev mailing list monit-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/monit-dev