/[monit]/monit/web/monit.html
ViewVC logotype

Diff of /monit/web/monit.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by hauk, Sun Dec 22 15:34:11 2002 UTC revision 1.12 by hauk, Mon Dec 30 15:55:52 2002 UTC
# Line 1168  web-server listening on the default port Line 1168  web-server listening on the default port
1168  HTTPS. In this example monit will restart apache if it's not  HTTPS. In this example monit will restart apache if it's not
1169  accepting connections at the portnumbers. The method monit use  accepting connections at the portnumbers. The method monit use
1170  for a process restart is to first execute the stop-program, wait  for a process restart is to first execute the stop-program, wait
1171  for 10 seconds (to give the program time to terminate) and then  for the process to stop and then execute the start-program.</P>
 execute the start-program.</P>  
1172  <PRE>  <PRE>
1173   check apache with pidfile /var/run/httpd.pid   check apache with pidfile /var/run/httpd.pid
1174     start program = &quot;/etc/init.d/httpd start&quot;     start program = &quot;/etc/init.d/httpd start&quot;
# Line 1244  if it is not running:</P> Line 1243  if it is not running:</P>
1243  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
1244  child processes raises beyond 60% for over two cycles.  It is  child processes raises beyond 60% for over two cycles.  It is
1245  restarted when the CPU usage it over 80% for five cycles, the  restarted when the CPU usage it over 80% for five cycles, the
1246  memory usage over 100Mb for five cycles or the load average is  memory usage over 100Mb for five cycles or if the machines load
1247  beyond 10 for 8 cycles:</P>  average is beyond 10 for 8 cycles:</P>
1248  <PRE>  <PRE>
1249   check apache with pidfile /var/run/httpd.pid   check apache with pidfile /var/run/httpd.pid
1250     start program = &quot;/etc/init.d/httpd start&quot;     start program = &quot;/etc/init.d/httpd start&quot;
# Line 1262  statement:</P> Line 1261  statement:</P>
1261     stop program  = &quot;/etc/init.d/httpd stop&quot;     stop program  = &quot;/etc/init.d/httpd stop&quot;
1262     host www.tildeslash.com  port 80     host www.tildeslash.com  port 80
1263     checksum /usr/local/apache/bin/httpd     checksum /usr/local/apache/bin/httpd
1264     alert security@bar on {checksum}     alert security@bar on {checksum}
1265         with mail-format {subject: Alaaarrm! on $HOST}
1266     alert admin@bar on {restart, timeout}     alert admin@bar on {restart, timeout}
1267       with mail-format {       with mail-format {
1268                from:     bofh@$HOST                from:     bofh@$HOST

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26