Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame^] | 1 | ############################################################################### |
| 2 | ## Monit control file |
| 3 | ############################################################################### |
| 4 | ## |
| 5 | ## Comments begin with a '#' and extend through the end of the line. Keywords |
| 6 | ## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'. |
| 7 | ## |
| 8 | ## Below you will find examples of some frequently used statements. For |
| 9 | ## information about the control file and a complete list of statements and |
| 10 | ## options, please have a look in the Monit manual. |
| 11 | ## |
| 12 | ## |
| 13 | ############################################################################### |
| 14 | ## Global section |
| 15 | ############################################################################### |
| 16 | ## |
| 17 | ## Start Monit in the background (run as a daemon): |
| 18 | # |
| 19 | set daemon 30 # check services at 30 seconds intervals |
| 20 | # with start delay 240 # optional: delay the first check by 4-minutes (by |
| 21 | # # default Monit check immediately after Monit start) |
| 22 | # |
| 23 | # |
| 24 | ## Set syslog logging. If you want to log to a standalone log file instead, |
| 25 | ## specify the full path to the log file |
| 26 | # |
| 27 | set log syslog |
| 28 | |
| 29 | set httpd port 2812 |
| 30 | allow 0.0.0.0/0 # allow localhost to connect to the server and |
| 31 | allow admin:monit # require user 'admin' with password 'monit' |
| 32 | #with ssl { # enable SSL/TLS and set path to server certificate |
| 33 | # pemfile: /etc/ssl/certs/monit.pem |
| 34 | #} |
| 35 | |
| 36 | ############################################################################### |
| 37 | ## Includes |
| 38 | ############################################################################### |
| 39 | ## |
| 40 | ## It is possible to include additional configuration parts from other files or |
| 41 | ## directories. |
| 42 | # |
| 43 | include /etc/monit.d/* |
| 44 | |