216 |
# error occured on any service. This statement is optional. |
# error occured on any service. This statement is optional. |
217 |
# More than one alert statement is allowed. |
# More than one alert statement is allowed. |
218 |
# |
# |
|
# set collector -- Specifies one or more XML event notification and status |
|
|
# receiver. This statement is optional. |
|
|
# |
|
219 |
# set httpd port -- Must be followed by a portnumber for the monit http |
# set httpd port -- Must be followed by a portnumber for the monit http |
220 |
# set httpd port -- Must be followed by a portnumber for the monit http |
# set httpd port -- Must be followed by a portnumber for the monit http |
221 |
# server. |
# server. |
282 |
## Send alert to system admin on any event |
## Send alert to system admin on any event |
283 |
# set alert sysadm@foo.bar |
# set alert sysadm@foo.bar |
284 |
# |
# |
|
## Send event notification and status to main or backup receivers. |
|
|
## The first example shows all options, including explicit connection timeout, |
|
|
## ssl version definition and expected server certificate md5 checksum. |
|
|
## Second example show simplier https specification for collector |
|
|
## listening on standard https port with default connection timeout 5 seconds, |
|
|
## ssl version autodetection, no cert md5 sum specified. Third example shows |
|
|
## another simple example (non ssl based). |
|
|
# 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 |
|
|
# |
|
285 |
## Make monit start its web-server. |
## Make monit start its web-server. |
286 |
# set httpd port 2812 and |
# set httpd port 2812 and |
287 |
# use address localhost # and only accept connection from localhost |
# use address localhost # and only accept connection from localhost |