]>
Commit | Line | Data |
---|---|---|
d91e4fc5 | 1 | check process pgpool with pidfile /var/run/pgpool.pid |
2 | group pgpool | |
7e871664 | 3 | start program = "/etc/rc.d/init.d/pgpool restart" |
d91e4fc5 | 4 | stop program = "/etc/rc.d/init.d/pgpool stop" |
5 | if loadavg(5min) greater than 5 for 8 cycles then restart | |
7e871664 | 6 | if failed host 127.0.0.1 port 9999 type tcp then restart |
d91e4fc5 | 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 | ||
7e871664 | 12 | check file pgpool_bin with path /usr/bin/pgpool |
d91e4fc5 | 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 |