]> git.pld-linux.org Git - packages/pgpool-II.git/blob - pgpool.monitrc
- rc-script added
[packages/pgpool-II.git] / pgpool.monitrc
1 check process pgpool with pidfile /var/run/pgpool.pid
2         group pgpool
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 }
9         depends on pgpool_bin
10         depends on pgpool_rc
11
12 check file pgpool_bin with path /usr/sbin/pgpool
13         group 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
19
20 check file pgpool_rc with path /etc/rc.d/init.d/pgpool
21         group 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
27
This page took 0.060166 seconds and 3 git commands to generate.