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 18:13] – dhinesh | 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 | + | This document explains how you can use monit to keep your Trisul Probe processes running. |
- | ==== Install Monit on Ubuntu 16.04 ==== | + | <note important> |
+ | |||
+ | </ | ||
+ | |||
+ | ===== 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 16: | 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 26: | Line 28: | ||
</ | </ | ||
+ | |||
+ | This snippet monitors the trisul probe process and restarts if stopped. | ||
+ | |||
3. Restart the monit | 3. Restart the monit | ||
Line 36: | 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 ===== | ||
Line 62: | Line 71: | ||
===== Sample File ===== | ===== Sample File ===== | ||
+ | < | ||
############################################################################### | ############################################################################### | ||
## Monit control file | ## Monit control file | ||
Line 362: | Line 372: | ||
start program = "/ | start program = "/ | ||
stop program = "/ | stop program = "/ | ||
+ | </ | ||
monit/monitoring_and_maintain_trisul_process.1538570638.txt.gz · Last modified: 2018/10/03 18:13 by dhinesh