Author: aredridel Date: Wed Oct 4 16:41:56 2006 GMT Module: SOURCES Tag: HEAD ---- Log message: - added
---- Files affected: SOURCES: lighttpd.monitrc (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SOURCES/lighttpd.monitrc diff -u /dev/null SOURCES/lighttpd.monitrc:1.1 --- /dev/null Wed Oct 4 18:41:56 2006 +++ SOURCES/lighttpd.monitrc Wed Oct 4 18:41:51 2006 @@ -0,0 +1,32 @@ +check process lighttpd with pidfile /var/run/lighttpd.pid + group www + start program = "/etc/rc.d/init.d/lighttpd start" + stop program = "/etc/rc.d/init.d/lighttpd stop" + check host localhost with address localhost + 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 lighttpd_bin + depends on lighttpd_rc + + check file lighttpd_bin with path /usr/sbin/lighttpd + group www + 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 lighttpd_rc with path /etc/rc.d/init.d/lighttpd + group www + 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] + + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
