]> git.pld-linux.org Git - packages/nginx.git/blame - nginx.monitrc
Up to 1.26.0
[packages/nginx.git] / nginx.monitrc
CommitLineData
61cffbcc 1check process nginx with pidfile /var/run/nginx.pid
618be6ce 2 group www
61cffbcc
ER
3 start program = "/etc/rc.d/init.d/nginx start"
4 stop program = "/etc/rc.d/init.d/nginx stop"
618be6ce 5 if failed url http://localhost/ timeout 10 seconds then restart
6# if failed host 192.168.1.1 port 443 type TCPSSL
7# certmd5 12-34-56-78-90-AB-CD-EF-12-34-56-78-90-AB-CD-EF
8# protocol HTTP request /monit/token then restart
9 if 5 restarts within 5 cycles then timeout
10# alert root@localhost
11# alert 123456@sms on { timeout }
61cffbcc
ER
12 depends on nginx_bin
13 depends on nginx_rc
618be6ce 14
61cffbcc 15check file nginx_bin with path /usr/sbin/nginx
618be6ce 16 group nginx
17 if failed checksum then unmonitor
18 if failed permission 755 then unmonitor
19 if failed uid root then unmonitor
20 if failed gid root then unmonitor
21# alert root@localhost
22
61cffbcc 23check file nginx_rc with path /etc/rc.d/init.d/nginx
618be6ce 24 group nginx
25 if failed checksum then unmonitor
26 if failed permission 754 then unmonitor
27 if failed uid root then unmonitor
28 if failed gid root then unmonitor
29# alert root@localhost
30
61cffbcc 31check file nginx-stanard.conf path /etc/nginx/nginx.conf
618be6ce 32 if changed sha1 checksum
61cffbcc 33 then exec "/etc/rc.d/init.d/nginx graceful"
This page took 0.132654 seconds and 4 git commands to generate.