1 check process pgpool with pidfile /var/run/pgpool.pid
3 start program = "/etc/rc.d/init.d/pgpool start"
4 stop program = "/etc/rc.d/init.d/pgpool stop"
5 if loadavg(5min) greater than 5 for 8 cycles then restart
6 if failed host 127.0.0.1 port 9999 type tcp then restart
7 if 5 restarts within 5 cycles then timeout
8 # alert 123456@sms on { timeout }
12 check file pgpool_bin with path /usr/sbin/pgpool
14 if failed checksum then unmonitor
15 if failed permission 755 then unmonitor
16 if failed uid root then unmonitor
17 if failed gid root then unmonitor
18 # alert root@localhost
20 check file pgpool_rc with path /etc/rc.d/init.d/pgpool
22 if failed checksum then unmonitor
23 if failed permission 754 then unmonitor
24 if failed uid root then unmonitor
25 if failed gid root then unmonitor
26 # alert root@localhost