User Tools

Site Tools


monit:monitoring_and_maintain_trisul_process

**This is an old revision of the document!** ----

A PCRE internal error occured. This might be caused by a faulty plugin

You can use Monit to monitor daemon processes or similar programs running on localhost. ====== Monit Trisul Process ===== ==== Install Monit on Ubuntu 16.04 ==== <code bash> apt-get install monit </code> === Edit Configuration === 1. Open the monitrc configuration file <code>sudo vi /etc/monit/monitrc</code> 2. Add following lines at the end of file <code> check process trisul_flushd_context0 with pidfile /usr/local/var/lib/trisul-hub/domain0/hub0/context0/run/flushd.pid start program = "/usr/local/bin/trisulctl_hub start context context0" stop program = "/usr/local/bin/trisulctl_hub stop context context0" check process trisul_probe_context0 with pidfile /usr/local/var/lib/trisul-probe/domain0/probe0/context0/run/trisul-probe.pid start program = "/usr/local/bin/trisulctl_probe start context context0@probe0" stop program = "/usr/local/bin/trisulctl_probe stop context context0@probe0" </code> 3. Restart the monit <code bash> systemctl restart monit </code> 4. Start monit on boot <code bash> systemctl enable monit </code> ===== Email configuration for monit ===== If you want to receive email for trisul process status please add following lines in monitrc file <code > set mail-format { from: xxx@abc.com reply-to: abc@xxx.com subject: Trisul Monit $SERVICE $EVENT at $DATE message: Monit $ACTION $SERVICE at $DATE on $HOST: $DESCRIPTION. Yours sincerely, Trisul Network Analytics } set mailserver smtp.gmail.com port 587 username "xxx@abc.com" password "xxxxxxxxxxxxx" using tlsv1 set alert abc@xxx.com on {nonexist, timeout,resource} </code>

monit/monitoring_and_maintain_trisul_process.1528709436.txt.gz · Last modified: 2018/06/11 09:30 by dhinesh