Hi all, We have a global setting set to.
set alert [email protected] and an alert about a process check check process my-process with pidfile /var/run/my-process.pid start program = "/usr/sbin/service my-process start" stop program = "/usr/sbin/service my-process stop" if failed port 1234 for 3 times within 4 cycles then restart We would like to get notified only when the service is failling after some time the restart and not when monit is gonna to restart it. This process "die" on a daily basis due to log rotation issue. We want monit to detect it and restart it -> this part is ok But in fact, we would like to be notified ony when service is still failling after 10 check so someting like this if failed port 1234 for 3 times within 4 cycles then restart with noalert if failed port 1234 for 8 times within 10 cycles then alert Is that possible ? within one check ? Do we have to duplicate the check to have two check/notification rules ? Thanks to response. -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/IT d(+) s++:- a C++$ ULC(+)>+++$ !P--- L+>$ !E---? W+++$ !N* !o-- K--? w(+) !O---? !M- !V--? PS+? !PE Y+ PGP++>+++ !t-- !5 !X- R(+)>++* tv-? b(-) DI !D- G(+)>+ e+++ h--() r->$ y?* ------END GEEK CODE BLOCK------
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
