749 |
the SMTP server. |
the SMTP server. |
750 |
|
|
751 |
|
|
|
|
|
|
=head1 STATUS AND EVENTS UPSTREAM |
|
|
|
|
|
B<monit> allows to send status and events each cycle. The message |
|
|
is XML formatted and is carried by HTTP protocol. It is possible |
|
|
to use it for collecting data and receiving alerts on centralized |
|
|
monitoring system. Monit suppports definition of one or more |
|
|
collectors which will receive the data. In the case that the |
|
|
collector is not available, monit will try to connect to the next |
|
|
one in the list (i.e. upstream will fail over to backup recipient |
|
|
nodes). |
|
|
|
|
|
Full syntax: |
|
|
|
|
|
SET COLLECTOR {url} [TIMEOUT number] [ssl-version] [CERTMD5 string] |
|
|
|
|
|
I<url> defines the message receiver. It is possible to use HTTP or |
|
|
HTTPS protocol. Basic authentication is supported. This statement is |
|
|
required. |
|
|
|
|
|
I<TIMEOUT number> allows to define connection timeout for the |
|
|
recipient. This statement is optional, if it is not specified, |
|
|
it defaults to 5 seconds |
|
|
|
|
|
I<ssl-version> is choice of [SSLAUTO|SSLV2|SSLV3|TLSV1] strings |
|
|
which specify the ssl version used. This statement is optional, |
|
|
if it is not specified, it defaults to SSLAUTO (it is used only |
|
|
in the case that SSL protocol is used in collector URL). |
|
|
|
|
|
I<CERTMD5 string> expected md5 sum of the server's certificate. |
|
|
This statement is optional. |
|
|
|
|
|
Example: |
|
|
|
|
|
set collector |
|
|
https://monit:monit@mmonit.foo.bar:8080/collector |
|
|
with timeout 7 seconds |
|
|
sslv3 |
|
|
certmd5 "8c9f7f16a69c392f6a75383890e20d73", |
|
|
https://mmonit-backup.foo.bar/collector |
|
|
http://127.0.0.1/path/to/my/script |
|
|
|
|
|
|
|
|
|
|
752 |
=head1 SERVICE TIMEOUT |
=head1 SERVICE TIMEOUT |
753 |
|
|
754 |
B<monit> provides a service timeout mechanism for situations |
B<monit> provides a service timeout mechanism for situations |
2405 |
facility is 'log_local0' - 'log_local7' or |
facility is 'log_local0' - 'log_local7' or |
2406 |
'log_daemon'. If no facility is specified, |
'log_daemon'. If no facility is specified, |
2407 |
LOG_USER is used. |
LOG_USER is used. |
|
set collector Specifies one or more XML event notification |
|
|
and status receiver. This statement is |
|
|
optional. |
|
2408 |
set mailserver The mailserver used for sending alert |
set mailserver The mailserver used for sending alert |
2409 |
notifications. If the mailserver is not |
notifications. If the mailserver is not |
2410 |
defined, monit will try to use 'localhost' |
defined, monit will try to use 'localhost' |