monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

restart and alert email


From: sashk
Subject: restart and alert email
Date: Mon, 11 Jan 2021 21:17:27 -0500

Hi,

I have following check:

check program script with path "/path/to/check_script" as uid "user" and gid "user"
    start program = "/path/to/script start" as uid "user" and gid "user"
    stop program  = "/path/to/script stop" as uid "user" and gid "user"
    if 2 restarts within 10 cycles then alert
    if status != 0 then restart

What happens: every time check fails, I receive failure email, then two minutes later I receive success email.

Two questions:

  1. Why success email arrives two minutes after failure? start/stop programs are pretty quick and execution time take few seconds.
  2. Is there a way to configure monit not to alert me unless 2 restarts happen within 10 cycles and status is still not zero?

Thanks.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]