]> git.pld-linux.org Git - packages/monit-rc-apache1.git/blame - apache1.monitrc
sync formatting changes from monit-rc-apache
[packages/monit-rc-apache1.git] / apache1.monitrc
CommitLineData
2880d24c 1check process apache with pidfile /var/run/apache.pid
47af444d
ER
2 group www
3 start program = "/etc/rc.d/init.d/apache start"
4 stop program = "/etc/rc.d/init.d/apache stop"
5 if failed host 127.0.0.1 port 80
6 protocol HTTP request /
7 then restart
8# if failed host 192.168.1.1 port 443 type TCPSSL
2880d24c
PG
9# certmd5 12-34-56-78-90-AB-CD-EF-12-34-56-78-90-AB-CD-EF
10# protocol HTTP request /monit/token then restart
47af444d
ER
11 if 5 restarts within 5 cycles then timeout
12# alert root@localhost
13# alert 123456@sms on { timeout }
14 depends on apache_bin
15 depends on apache_rc
2880d24c 16
47af444d
ER
17check file apache_bin with path /usr/sbin/apache
18 group www
19 if failed checksum then unmonitor
20 if failed permission 755 then unmonitor
21 if failed uid root then unmonitor
22 if failed gid root then unmonitor
23# alert root@localhost
2880d24c 24
47af444d
ER
25check file apache_rc with path /etc/rc.d/init.d/apache
26 group www
27 if failed checksum then unmonitor
28 if failed permission 754 then unmonitor
29 if failed uid root then unmonitor
30 if failed gid root then unmonitor
31# alert root@localhost
This page took 0.460935 seconds and 4 git commands to generate.