How to setup monit for email alerts.

Issue #864 closed
Mayur Zanjad created an issue

I have monit on my linux (ubuntu 16.04) system working fine.

how to setup monit for email alerts. (how to set mailserver).

if I want alerts on “myemail@gmail.com“ for the following process when cpu > 95%,

what extra things do I need to install?

Thanks in advance.

following is my monitrc file.

check process eat_cpu_x86 with pidfile /var/run/eat_cpu_x86.pid
    start program = "/etc/init.d/eat_cpu_x86 start" with timeout 10 seconds
    stop program = "/etc/init.d/eat_cpu_x86 stop"
    if cpu > 95% for 2 cycles then alert

Comments (3)

  1. Log in to comment