View previous topic :: View next topic |
Author |
Message |
LANTONIO
Joined: 24 Apr 2019 Posts: 13
|
Posted: Tue Oct 06, 2020 7:58 am Post subject: Idle/Active test check |
|
|
Hi,
HM v.12.50
windows server 2008
We need to check a particolar service trough a TCP Connection test to 2 server.
We need to check server1:port if it failed then check server2:port if all server are in KO send the email, this should be work switching the server checked, so if server2:port failed then check server1:port if all are down the send email.
is it possible?
Thanks |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12807 Location: USA
|
Posted: Tue Oct 06, 2020 10:39 am Post subject: |
|
|
Send e-mail when both servers do not answer?
- setup server1 test as Master for server2 test (perform server2 test when server1 has "bad" or "unknown" status;
- assign alert profile with "Send e-mail" action to server2 test
https://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#Master
Regards
Alex |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12807 Location: USA
|
Posted: Tue Oct 06, 2020 11:06 am Post subject: |
|
|
PS
Unless you need to test both servers all the time for statistics?
Then you may use either
- 3rd "helper" test item with assigned action (dependant on server1 and server2)
- or use "advanced mode" action assigned to server1 and server2 actions. You may use expression like
('%::server1testname::SimpleStatus%'=='DOWN') and ('%::server2testname::SimpleStatus%'=='DOWN')
Regards
Alex |
|
Back to top |
|
|
LANTONIO
Joined: 24 Apr 2019 Posts: 13
|
Posted: Wed Oct 07, 2020 4:56 am Post subject: |
|
|
KS-Soft wrote: | PS
- or use "advanced mode" action assigned to server1 and server2 actions. You may use expression like
('%::server1testname::SimpleStatus%'=='DOWN') and ('%::server2testname::SimpleStatus%'=='DOWN')
Regards
Alex |
I think this one is the best for our intent.
But in this case HM will send the mail every time the schedule check the status. Is it right? How can I set to send just one time the email? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12807 Location: USA
|
Posted: Wed Oct 07, 2020 5:04 am Post subject: |
|
|
(%Recurrences%==1) and ('%::server1testname::SimpleStatus%'=='DOWN') and ('%::server2testname::SimpleStatus%'=='DOWN')
Regards
Alex |
|
Back to top |
|
|
|