check process postgres with pidfile /var/lib/pgsql/data/postmaster.pid
	group db
	group postgresql
	start program = "/sbin/service postgresql start"
	stop  program = "/sbin/service postgresql stop"
	if failed unixsocket /tmp/.s.PGSQL.5432 protocol pgsql 
		then restart
	if failed host localhost port 5432 protocol pgsql then restart
	if 5 restarts within 5 cycles then timeout
	depend on postgresql_bin

check file postgresql_bin with path /usr/bin/postgres
	group postgresql
	include /etc/monitrc.d/templates/rootbin
