]> git.pld-linux.org Git - packages/lighttpd.git/commitdiff
- added
authoraredridel <aredridel@pld-linux.org>
Wed, 4 Oct 2006 16:41:51 +0000 (16:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lighttpd.monitrc -> 1.1

lighttpd.monitrc [new file with mode: 0644]

diff --git a/lighttpd.monitrc b/lighttpd.monitrc
new file mode 100644 (file)
index 0000000..05ee897
--- /dev/null
@@ -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 root@localhost
+#   alert 123456@sms 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 root@localhost
+
+ 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 root@localhost
+
+
This page took 0.079957 seconds and 4 git commands to generate.