SOURCES: pgpool.monitrc (NEW) - init

sardzent sardzent at pld-linux.org
Fri Jun 13 23:14:47 CEST 2008


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 123456 at sms 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 root at localhost
+
+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 root at localhost
+
================================================================


More information about the pld-cvs-commit mailing list