/[monit]/monit/monit.pod
ViewVC logotype

Diff of /monit/monit.pod

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

revision 1.50 by hauk, Sun Dec 22 15:34:11 2002 UTC revision 1.51 by hauk, Mon Dec 30 15:55:52 2002 UTC
# Line 1  Line 1 
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
# Line 1309  web-server listening on the default port Line 1310  web-server listening on the default port
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"
# Line 1392  Here is an example to show the usage of Line 1392  Here is an example to show the usage of
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"
# Line 1412  statement: Line 1412  statement:
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

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

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