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

Diff of /monit/monit.pod

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

revision 1.100 by hauk, Sat Sep 6 00:18:14 2003 UTC revision 1.101 by hauk, Mon Sep 8 22:52:03 2003 UTC
# Line 236  This is the hello galaxy version of a mo Line 236  This is the hello galaxy version of a mo
236   check file httpd.conf   check file httpd.conf
237       with path /usr/local/apache/conf/httpd.conf       with path /usr/local/apache/conf/httpd.conf
238       # Restart apache if the httpd.conf file was changed       # Restart apache if the httpd.conf file was changed
239       if failed checksum then restart       if failed checksum
240            then exec "/usr/local/apache/bin/apachectl graceful"
241    
242   check file httpd.bin   check file httpd.bin
243       with path /usr/local/apache/bin/httpd       with path /usr/local/apache/bin/httpd
# Line 276  service and then goes to sleep for the g Line 277  service and then goes to sleep for the g
277  will poll all services described in your F<~/.monitrc> file every  will poll all services described in your F<~/.monitrc> file every
278  5 minutes.  5 minutes.
279    
280  It is possible and also strongly recommended to you set the poll  It is possible and also strongly recommended to set the poll
281  interval in your ~/.monitrc file by using 'set daemon B<n>',  interval in your ~/.monitrc file by using 'set daemon B<n>',
282  where B<n> is an integer number of seconds.  If you do this,  where B<n> is an integer number of seconds.  If you do this,
283  monit will always start in daemon mode (as long as no action  monit will always start in daemon mode (as long as no action
# Line 2098  gid. Line 2099  gid.
2099               as uid nobody and gid nobody               as uid nobody and gid nobody
2100         stop program  = "/etc/init.d/tomcat stop"         stop program  = "/etc/init.d/tomcat stop"
2101               # You can also use id numbers instead and write:               # You can also use id numbers instead and write:
2102               as uid 99 and with gid 99               as uid 99 and with gid 99
2103         if failed port 8080 then alert         if failed port 8080 then alert
2104    
2105  In this example we use udp for connection testing to check if the  In this example we use udp for connection testing to check if the
# Line 2305  Finally an example with all statements: Line 2306  Finally an example with all statements:
2306    
2307   check file httpd.conf with path /usr/local/apache/conf/httpd.conf   check file httpd.conf with path /usr/local/apache/conf/httpd.conf
2308         group server         group server
2309         if timestamp was changed then restart         if timestamp was changed
2310              then exec "/usr/local/apache/bin/apachectl graceful"
2311         every 2 cycles         every 2 cycles
2312         alert bofh@bar with mail-format {from: monit@foo.bar.no}         alert bofh@bar with mail-format {from: monit@foo.bar.no}
2313         depends on datafs         depends on datafs
# Line 2343  Finally an example with all statements: Line 2345  Finally an example with all statements:
2345                       :0 ftp connection failed"                       :0 ftp connection failed"
2346         alert hauk@tildeslash.com         alert hauk@tildeslash.com
2347    
2348  Note; only the B<check> and B<pidfile or path statement> are  Note; only the B<check type>, B<pidfile/path> statements are
2349  mandatory, the other statements are optional and the order of the  mandatory, the other statements are optional and the order of the
2350  optional statements is not important.  optional statements is not important.
2351    
2352    
2353  =head2 Monit with Heartbeat  =head1 Monit with Heartbeat
2354    
2355  You can download I<heartbeat> from  You can download I<heartbeat> from
2356  http://www.linux-ha.org/download/. It might be useful to have a  http://www.linux-ha.org/download/. It might be useful to have a
# Line 2619  running will wake up the daemon. Line 2621  running will wake up the daemon.
2621    
2622  This is a very silent program. Use the -v switch if you want to  This is a very silent program. Use the -v switch if you want to
2623  see what monit is doing, and tail -f the logfile. Optionally for  see what monit is doing, and tail -f the logfile. Optionally for
2624  testing purposes you can start monit with the -Iv switch. Monit  testing purposes; you can start monit with the -Iv switch. Monit
2625  will then print debug information to the console, to stop monit  will then print debug information to the console, to stop monit
2626  in this mode, simply press CTRL^C (i.e. SIGINT) in the same  in this mode, simply press CTRL^C (i.e. SIGINT) in the same
2627  console.  console.

Legend:
Removed from v.1.100  
changed lines
  Added in v.1.101

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