File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -201,21 +201,21 @@ EOT
201
201
function monit_def_apache {
202
202
cat << EOT >/etc/monit/conf.d/apache2.cfg
203
203
check process apache with pidfile /var/run/apache2.pid
204
- start program = "/etc/init.d/apache2 start" with timeout 30 seconds
204
+ start program = "/etc/init.d/apache2 start"
205
205
stop program = "/etc/init.d/apache2 stop"
206
206
if cpu > 60% for 2 cycles then alert
207
207
if cpu > 80% for 5 cycles then alert
208
208
if totalmem > 200.0 MB for 5 cycles then alert
209
209
if children > 250 then alert
210
210
if loadavg(5min) greater than 10 for 8 cycles then stop
211
- if failed host localhost port 80 protocol HTTP request / within 2 cycles then restart
211
+ if failed host localhost port 80 protocol HTTP request / within 2 cycles then alert
212
212
if failed host localhost port 80 protocol apache-status
213
213
dnslimit > 25% or loglimit > 80% or waitlimit < 20% retry 2 within 2 cycles then alert
214
- if 5 restarts within 5 cycles then timeout
214
+ # if 5 restarts within 5 cycles then timeout
215
215
depends on apache_bin
216
216
depends on apache_rc
217
217
group www
218
-
218
+
219
219
check file apache_bin with path /usr/sbin/apache2
220
220
if failed checksum then unmonitor
221
221
if failed permission 755 then unmonitor
You can’t perform that action at this time.
0 commit comments