KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Idle/Active test check

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
LANTONIO



Joined: 24 Apr 2019
Posts: 6

PostPosted: Tue Oct 06, 2020 7:58 am    Post subject: Idle/Active test check Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12454
Location: USA

PostPosted: Tue Oct 06, 2020 10:39 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12454
Location: USA

PostPosted: Tue Oct 06, 2020 11:06 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
LANTONIO



Joined: 24 Apr 2019
Posts: 6

PostPosted: Wed Oct 07, 2020 4:56 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12454
Location: USA

PostPosted: Wed Oct 07, 2020 5:04 am    Post subject: Reply with quote

(%Recurrences%==1) and ('%::server1testname::SimpleStatus%'=='DOWN') and ('%::server2testname::SimpleStatus%'=='DOWN')

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index