]> TLD Linux GIT Repositories - packages/lighttpd.git/blob - lighttpd.monitrc
- updated to 1.4.73, build with lua54
[packages/lighttpd.git] / lighttpd.monitrc
1 check process lighttpd with pidfile /var/run/lighttpd.pid
2    group www
3    start program = "/etc/rc.d/init.d/lighttpd start"
4    stop  program = "/etc/rc.d/init.d/lighttpd stop"
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 }
12    depends on lighttpd_bin
13    depends on lighttpd_rc
14
15  check file lighttpd_bin with path /usr/sbin/lighttpd
16    group www
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
23  check file lighttpd_rc with path /etc/rc.d/init.d/lighttpd
24    group www
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
31