no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | monit [2013/10/04 19:58] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Monit ====== | ||
| + | * [[Monit Examples]] | ||
| + | * [[SocketLabs]] | ||
| + | * [[dropbear]] | ||
| + | |||
| + | * [[http:// | ||
| + | |||
| + | Monit is a systems software watchdog. | ||
| + | ==== Monitoring Modes ==== | ||
| + | |||
| + | There are two ways for monit to operate: as active or passive. | ||
| + | |||
| + | ==== Init ==== | ||
| + | |||
| + | * [[upstart]] | ||
| + | |||
| + | For Gentoo / CentOS, add monit to ''/ | ||
| + | |||
| + | < | ||
| + | # monit | ||
| + | mo: | ||
| + | </ | ||
| + | |||
| + | ==== Ubuntu ==== | ||
| + | |||
| + | For Ubuntu, create ''/ | ||
| + | |||
| + | < | ||
| + | start on runlevel [2345] | ||
| + | stop on runlevel [06] | ||
| + | exec / | ||
| + | respawn | ||
| + | </ | ||
| + | |||
| + | Add monit to the default runlevels: | ||
| + | |||
| + | < | ||
| + | update-rc.d monit defaults | ||
| + | service monit start | ||
| + | </ | ||
| + | |||
| + | ==== CentOS ==== | ||
| + | |||
| + | Download and install the [[http:// | ||
| + | |||
| + | Add monit to startup: | ||
| + | |||
| + | < | ||
| + | |||
| + | ==== FreeBSD ==== | ||
| + | |||
| + | * [[FreeBSD]] | ||
| + | |||
| + | * [[http:// | ||
| + | |||
| + | Add monit to startup: | ||
| + | |||
| + | < | ||
| + | echo monit_enable=YES >> / | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | == Todo == | ||
| + | |||
| + | * Find out how to run monit all the time. See '' | ||
| + | |||
| + | ==== NetBSD ==== | ||
| + | |||
| + | * [[NetBSD]] | ||
| + | |||
| + | < | ||
| + | |||
| + | The following files should be created for monit-4.10.1nb2: | ||
| + | |||
| + | / | ||
| + | [/ | ||
| + | </ | ||
| + | |||
| + | ==== Outgoing Email ==== | ||
| + | |||
| + | Monit can be configured to use SocketLabs SMTP relay server to send outgoing email. | ||
| + | |||
| + | < | ||
| + | set mailserver smtp.socketlabs.com username < | ||
| + | set mailserver smtp.socketlabs.com port 587 username < | ||
| + | </ | ||