monit-general
[Top][All Lists]
Advanced

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

monit send alerts for different cycles fails to different e-mail address


From: Mesut GULNAZ
Subject: monit send alerts for different cycles fails to different e-mail addresses
Date: Wed, 5 Jul 2023 17:38:42 +0300

how can I set alerts for different cycles fails to different users (something like that) for the same service in monit?

I have tried the config like this below.

check host "Cluster0 Admin Panel" with address 192.168.5.80
          if failed port 4443 protocol https with timeout 10 seconds for 3 cycles then alert userA@mydomain.com
          if failed port 4443 protocol https with timeout 10 seconds then alert userB@mydomain.com

But syntax error occurred on the e-mail address lines.

this one sent emails to both users at 1st cycle and 3rd cycle

check host "Cluster0 Admin Panel" with address 192.168.5.80
          if failed port 4443 protocol https with timeout 10 seconds for 3 cycles then alert 
                alert userA@mydomain.com
          if failed port 4443 protocol https with timeout 10 seconds then alert 
                alert userB@mydomain.com

reply via email to

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