[packages/monit-rc-apache1] sync formatting changes from monit-rc-apache
glen
glen at pld-linux.org
Mon Sep 24 11:33:23 CEST 2012
commit 47af444d0f88fd36ce3795af93e56031a701914c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Sep 24 12:29:34 2012 +0300
sync formatting changes from monit-rc-apache
apache1.monitrc | 53 ++++++++++++++++++++++++++---------------------------
1 file changed, 26 insertions(+), 27 deletions(-)
---
diff --git a/apache1.monitrc b/apache1.monitrc
index 327e9fc..81b981f 100644
--- a/apache1.monitrc
+++ b/apache1.monitrc
@@ -1,32 +1,31 @@
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
+ 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 at localhost
-# alert 123456 at 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 at 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 at localhost
+ if 5 restarts within 5 cycles then timeout
+# alert root at localhost
+# alert 123456 at 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 at 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 at localhost
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/monit-rc-apache1.git/commitdiff/6fdf79cc7020e0fb75ee5e921e186c92fcd57dfa
More information about the pld-cvs-commit
mailing list