|
From: | Mark Olliver |
Subject: | RE: restart after cycles |
Date: | Wed, 5 Oct 2011 17:02:06 +0100 |
Ok that gives me the following, but how do I tell it only to alert me where I have said alert and not for other event types like pid change? check process postgresql with pidfile /var/run/postgresql/8.4-main.pid start program = "/etc/init.d/postgresql-8.4 start" stop program = "/etc/init.d/postgresql-8.4 stop" if failed unixsocket /var/run/postgresql/.s.PGSQL.5432 protocol pgsql retry 2 2 cycles then restart if failed unixsocket /var/run/postgresql/.s.PGSQL.5432 protocol pgsql 3 cycles then alert if failed host localhost port 5432 protocol pgsql retry 2 2 cycles then restart if failed host localhost port 5432 protocol pgsql 3 cycles then alert if 3 restarts within 6 cycles then timeout alert address@hidden group database Regards Mark |
[Prev in Thread] | Current Thread | [Next in Thread] |