1 |
# |
# |
2 |
# XEmacs -- set-variable: fill-column = 65 |
# The right margin in this file is 65 characters. |
3 |
|
# In XEmacs use -- set-variable: fill-column = 65 |
4 |
# |
# |
5 |
|
|
6 |
=head1 NAME |
=head1 NAME |
1310 |
HTTPS. In this example monit will restart apache if it's not |
HTTPS. In this example monit will restart apache if it's not |
1311 |
accepting connections at the portnumbers. The method monit use |
accepting connections at the portnumbers. The method monit use |
1312 |
for a process restart is to first execute the stop-program, wait |
for a process restart is to first execute the stop-program, wait |
1313 |
for 10 seconds (to give the program time to terminate) and then |
for the process to stop and then execute the start-program. |
|
execute the start-program. |
|
1314 |
|
|
1315 |
check apache with pidfile /var/run/httpd.pid |
check apache with pidfile /var/run/httpd.pid |
1316 |
start program = "/etc/init.d/httpd start" |
start program = "/etc/init.d/httpd start" |
1392 |
will send an alert when the CPU usage of the http daemon and it's |
will send an alert when the CPU usage of the http daemon and it's |
1393 |
child processes raises beyond 60% for over two cycles. It is |
child processes raises beyond 60% for over two cycles. It is |
1394 |
restarted when the CPU usage it over 80% for five cycles, the |
restarted when the CPU usage it over 80% for five cycles, the |
1395 |
memory usage over 100Mb for five cycles or the load average is |
memory usage over 100Mb for five cycles or if the machines load |
1396 |
beyond 10 for 8 cycles: |
average is beyond 10 for 8 cycles: |
1397 |
|
|
1398 |
check apache with pidfile /var/run/httpd.pid |
check apache with pidfile /var/run/httpd.pid |
1399 |
start program = "/etc/init.d/httpd start" |
start program = "/etc/init.d/httpd start" |
1412 |
stop program = "/etc/init.d/httpd stop" |
stop program = "/etc/init.d/httpd stop" |
1413 |
host www.tildeslash.com port 80 |
host www.tildeslash.com port 80 |
1414 |
checksum /usr/local/apache/bin/httpd |
checksum /usr/local/apache/bin/httpd |
1415 |
alert security@bar on {checksum} |
alert security@bar on {checksum} |
1416 |
|
with mail-format {subject: Alaaarrm! on $HOST} |
1417 |
alert admin@bar on {restart, timeout} |
alert admin@bar on {restart, timeout} |
1418 |
with mail-format { |
with mail-format { |
1419 |
from: bofh@$HOST |
from: bofh@$HOST |