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