monit:monitoring_and_maintain_trisul_process
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
monit:monitoring_and_maintain_trisul_process [2018/10/03 19:02] – [Monit Trisul Process] veera | monit:monitoring_and_maintain_trisul_process [2020/09/18 14:53] (current) – [Monit Trisul Process] veera | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Monit Trisul Process | ====== Monit Trisul Process | ||
- | 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> | + | <note important> |
</ | </ | ||
- | ==== Install Monit on Ubuntu 16.04 ==== | + | |
+ | ===== Install Monit on Ubuntu 16.04 and 18.04 ===== | ||
<code bash> apt-get install monit </ | <code bash> apt-get install monit </ | ||
- | === Edit Configuration | + | ===== Edit Configuration |
1. Open the monitrc configuration file | 1. Open the monitrc configuration file | ||
Line 19: | Line 20: | ||
2. Add following lines at the end of file | 2. Add following lines at the end of file | ||
+ | |||
< | < | ||
- | check process trisul_flushd_context0 with pidfile / | ||
- | start program = "/ | ||
- | stop program = "/ | ||
check process trisul_probe_context0 with pidfile / | check process trisul_probe_context0 with pidfile / | ||
start program = "/ | start program = "/ | ||
Line 29: | Line 28: | ||
</ | </ | ||
+ | |||
+ | This snippet monitors the trisul probe process and restarts if stopped. | ||
+ | |||
3. Restart the monit | 3. Restart the monit | ||
Line 39: | Line 41: | ||
<code bash> systemctl enable monit </ | <code bash> systemctl enable monit </ | ||
+ | |||
+ | ====== 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 / | ||
===== Email configuration for monit ===== | ===== Email configuration for monit ===== |
monit/monitoring_and_maintain_trisul_process.1538573567.txt.gz · Last modified: 2018/10/03 19:02 by veera