1013 |
|
|
1014 |
The following example is a hack for restarting a process after a |
The following example is a hack for restarting a process after a |
1015 |
certain time. Sometimes this is a necessary workaround for some |
certain time. Sometimes this is a necessary workaround for some |
1016 |
third-party applications, until the vendor fix a problem (we |
third-party applications, until the vendor fix a problem: |
|
didn't mention zeus did we?): |
|
1017 |
|
|
1018 |
check file zerver.pid path /var/run/zerver.pid |
check file server.pid path /var/run/server.pid |
1019 |
if timestamp > 7 days |
if timestamp > 7 days |
1020 |
then exec "/usr/local/zerver/restart-zerver" |
then exec "/usr/local/server/restart-server" |
1021 |
|
|
1022 |
|
|
1023 |
=head2 FILE SIZE TESTING |
=head2 FILE SIZE TESTING |
1367 |
|
|
1368 |
TCPSSL [SSLAUTO|SSLV2|SSLV3|TLSV1] [CERTMD5 md5sum] |
TCPSSL [SSLAUTO|SSLV2|SSLV3|TLSV1] [CERTMD5 md5sum] |
1369 |
|
|
1370 |
B<proto(col):PROTO {protcols}>. Optionally specify the protocol |
B<proto(col):PROTO {protocols}>. Optionally specify the protocol |
1371 |
monit should speak when a connection is established. At the |
monit should speak when a connection is established. At the |
1372 |
moment monit knows how to speak I<HTTP>, I<SMTP>, I<FTP>, I<POP>, |
moment monit knows how to speak I<HTTP>, I<SMTP>, I<FTP>, I<POP>, |
1373 |
I<IMAP>, I<NNTP>, I<SSH>, I<DWP>, I<LDAP2>, I<LDAP3>, I<RDATE> |
I<IMAP>, I<NNTP>, I<SSH>, I<DWP>, I<LDAP2>, I<LDAP3>, I<RDATE> |
2204 |
Here's a more advanced example for monitoring an apache |
Here's a more advanced example for monitoring an apache |
2205 |
web-server listening on the default portnumber for HTTP and |
web-server listening on the default portnumber for HTTP and |
2206 |
HTTPS. In this example monit will restart apache if it's not |
HTTPS. In this example monit will restart apache if it's not |
2207 |
accepting connections at the portnumbers. The method monit use |
accepting connections at the port numbers. The method monit use |
2208 |
for a process restart is to first execute the stop-program, wait |
for a process restart is to first execute the stop-program, wait |
2209 |
for the process to stop and then execute the start-program. (If |
for the process to stop and then execute the start-program. (If |
2210 |
monit was unable to stop or start the service a failed alert |
monit was unable to stop or start the service a failed alert |