]> git.pld-linux.org Git - packages/apache1.git/commitdiff
- monit file for apache1, not tested... auto/ac/monit-rc-apache1-1_1-1
authorPaweł Gołaszewski <blues@pld-linux.org>
Mon, 30 Aug 2004 19:00:25 +0000 (19:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1.monitrc -> 1.1

apache1.monitrc [new file with mode: 0644]

diff --git a/apache1.monitrc b/apache1.monitrc
new file mode 100644 (file)
index 0000000..327e9fc
--- /dev/null
@@ -0,0 +1,32 @@
+check process apache with pidfile /var/run/apache.pid
+   group www
+   start program = "/etc/rc.d/init.d/apache start"
+   stop  program = "/etc/rc.d/init.d/apache stop"
+   if failed host 127.0.0.1 port 80 
+        protocol HTTP request / 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 apache_bin
+   depends on apache_rc
+
+ check file apache_bin with path /usr/sbin/apache
+   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 apache_rc with path /etc/rc.d/init.d/apache
+   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.030375 seconds and 4 git commands to generate.