+++ /dev/null
-/var/log/httpd/*access_log
-/var/log/httpd/*combined_log
-/var/log/httpd/*agent_log
-/var/log/httpd/*error_log
-/var/log/httpd/*referer_log
-/var/log/httpd/*request_log
-/var/log/httpd/*rewrite_log
-{
- olddir /var/log/archive/httpd
- sharedscripts
- postrotate
- /sbin/service httpd flush-logs > /dev/null
- endscript
-}
+++ /dev/null
-# Customized settings for Apache
-# $Id$
-
-# Nice level for apache
-SERVICE_RUN_NICE_LEVEL="+5"
-
-# config dir/file path. default is compiled in path
-#HTTPD_CONF="/etc/httpd/apache.conf"
-
-# other command-line options
-HTTPD_OPTS=""
-
-# choose MPM
-# prefork, worker, perchild (experimental), metuxmpm (experimental)
-# (note that some may be not available)
-HTTPD_MPM="prefork"
-
-# perhaps set 128MB memory limit
-#SERVICE_LIMITS="$DEFAULT_SERVICE_LIMITS -m 128000"
-
-# Skip apache restarts invoked from rpm installs.
-#RPM_SKIP_AUTO_RESTART=yes
+++ /dev/null
-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
-
-