Author: sardzent Date: Fri Nov 30 16:36:15 2007 GMT Module: SOURCES Tag: HEAD ---- Log message: - init
---- Files affected: SOURCES: nginx-light.monitrc (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SOURCES/nginx-light.monitrc diff -u /dev/null SOURCES/nginx-light.monitrc:1.1 --- /dev/null Fri Nov 30 17:36:15 2007 +++ SOURCES/nginx-light.monitrc Fri Nov 30 17:36:10 2007 @@ -0,0 +1,33 @@ +check process nginx-light with pidfile /var/run/nginx-light.pid + group www + start program = "/etc/rc.d/init.d/nginx-light start" + stop program = "/etc/rc.d/init.d/nginx-light stop" + if failed url http://localhost/ timeout 10 seconds then restart +# if failed host 192.168.1.1 port 443 type TCPSSL +# certmd5 12-34-56-78-90-AB-CD-EF-12-34-56-78-90-AB-CD-EF +# protocol HTTP request /monit/token then restart + if 5 restarts within 5 cycles then timeout +# alert [EMAIL PROTECTED] +# alert [EMAIL PROTECTED] on { timeout } + depends on nginx-light_bin + depends on nginx-light_rc + +check file nginx-light_bin with path /usr/sbin/nginx-light + group nginx + if failed checksum then unmonitor + if failed permission 755 then unmonitor + if failed uid root then unmonitor + if failed gid root then unmonitor +# alert [EMAIL PROTECTED] + +check file nginx-light_rc with path /etc/rc.d/init.d/nginx-light + group nginx + if failed checksum then unmonitor + if failed permission 754 then unmonitor + if failed uid root then unmonitor + if failed gid root then unmonitor +# alert [EMAIL PROTECTED] + +check file nginx-light.conf path /etc/nginx/nginx-light.conf + if changed sha1 checksum + then exec "/etc/init.d/nginx-light graceful" ================================================================ _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit