This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
monit:monitoring_and_maintain_trisul_process [2018/10/03 14:02] veera [Install Monit on Ubuntu 16.04] |
monit:monitoring_and_maintain_trisul_process [2018/10/03 14:49] (current) veera [Monit Trisul Process] |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| You can use Monit to monitor daemon processes or similar programs running on localhost. This document explains how you can use monit to keep your Trisul Probe processes running. | You can use Monit to monitor daemon processes or similar programs running on localhost. This document explains how you can use monit to keep your Trisul Probe processes running. | ||
| - | <note important>Your Trisul Probe processes should never stop. If you are seeing crashes or memory issues , please read "Debugging Trisul Probe Crashes" and help us debug your setup. This guide is useful when Trisul is in production and you want to ensure uptime. | + | <note important>Your Trisul Probe processes should never stop. If you are seeing crashes or memory issues , please read "[[admin:debuggingcrash|Debugging Trisul Probe Crashes]]" and help us debug your setup. This guide is useful when Trisul is in production and you want to ensure uptime. |
| </note> | </note> | ||
| - | ==== Install Monit on Ubuntu 16.04 ==== | + | |
| + | ===== Install Monit on Ubuntu 16.04 ===== | ||
| <code bash> apt-get install monit </code> | <code bash> apt-get install monit </code> | ||
| - | === Edit Configuration === | + | ===== Edit Configuration ===== |
| 1. Open the monitrc configuration file | 1. Open the monitrc configuration file | ||
| Line 40: | Line 41: | ||
| <code bash> systemctl enable monit </code> | <code bash> systemctl enable monit </code> | ||
| + | |||
| + | ====== Advanced configuration - email when monit restarts ====== | ||
| + | |||
| + | You can have monit restart stopped processes and email you when that happens. Just copy the following snippet into /etc/monit/monitrc | ||
| ===== Email configuration for monit ===== | ===== Email configuration for monit ===== | ||