Author: sardzent                     Date: Fri Jun 13 21:14:46 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- init

---- Files affected:
SOURCES:
   pgpool.monitrc (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/pgpool.monitrc
diff -u /dev/null SOURCES/pgpool.monitrc:1.1
--- /dev/null   Fri Jun 13 23:14:47 2008
+++ SOURCES/pgpool.monitrc      Fri Jun 13 23:14:41 2008
@@ -0,0 +1,27 @@
+check process pgpool with pidfile /var/run/pgpool.pid
+       group pgpool
+       start program = "/etc/rc.d/init.d/pgpool start"
+       stop program = "/etc/rc.d/init.d/pgpool stop"
+       if loadavg(5min) greater than 5 for 8 cycles then restart
+        if failed host 127.0.0.1 port 9999 type tcp then restart
+       if 5 restarts within 5 cycles then timeout
+#      alert [EMAIL PROTECTED] on { timeout }
+       depends on pgpool_bin
+       depends on pgpool_rc
+
+check file pgpool_bin with path /usr/sbin/pgpool
+       group pgpool
+       if failed checksum then unmonitor
+       if failed permission 755 then unmonitor
+       if failed uid root then unmonitor
+       if failed gid root then unmonitor
+#      alert [EMAIL PROTECTED]
+
+check file pgpool_rc with path /etc/rc.d/init.d/pgpool
+       group pgpool
+       if failed checksum then unmonitor
+       if failed permission 754 then unmonitor
+       if failed uid root then unmonitor
+       if failed gid root then unmonitor
+#      alert [EMAIL PROTECTED]
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to