View previous topic :: View next topic |
Author |
Message |
Nedmobiel
Joined: 13 Dec 2011 Posts: 3
|
Posted: Tue Dec 13, 2011 8:37 am Post subject: Only report when 2 seperate tests fail |
|
|
We want to test if our internet connection is working. To test this we want to use 2 url tests, one to www.microsoft.com and one to www.google.com. We only want an internet connection failed alert when both tests fail.
Is it possible to only alert when 2 specific tests both fail?
How can we set this up? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12798 Location: USA
|
Posted: Tue Dec 13, 2011 8:43 am Post subject: |
|
|
If you want to start alert when both servers do not respond, use "advanced" mode for the action and condition like ('%::TestA::SimpleStatus%'=='DOWN') and ('%::TestB::SimpleStatus%'=='DOWN') and (%Recurrences%==1)
Regards
Alex |
|
Back to top |
|
|
Nedmobiel
Joined: 13 Dec 2011 Posts: 3
|
Posted: Tue Dec 13, 2011 9:36 am Post subject: |
|
|
KS-Soft wrote: | If you want to start alert when both servers do not respond, use "advanced" mode for the action and condition like ('%::TestA::SimpleStatus%'=='DOWN') and ('%::TestB::SimpleStatus%'=='DOWN') and (%Recurrences%==1)
Regards
Alex |
Thanks Alex, but I don't have it working yet. My line is:
('%::Internet verbinding test 1::SimpleStatus%'=='DOWN') and ('%::Internet verbinding test 2::SimpleStatus%'=='DOWN') and (%Recurrences%==1)
I have put this line in the advanced mode of the first test (Internet verbinding test 1). For the second test, have put the alert profile on "do nothing".
There must be something wrong because no email is sent when I force both tests to Status = No answer.
Any ideas? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12798 Location: USA
|
Posted: Tue Dec 13, 2011 9:48 am Post subject: |
|
|
Quote: | I have put this line in the advanced mode of the first test (Internet verbinding test 1). For the second test, have put the alert profile on "do nothing". |
Yes, this is wrong.
You should use the same action for both tests
Regards
Alex |
|
Back to top |
|
|
Nedmobiel
Joined: 13 Dec 2011 Posts: 3
|
Posted: Thu Dec 15, 2011 3:14 am Post subject: |
|
|
Yep that did the trick.
Did some testing and it worked. Only thing is, sometimes the first test generates an alert and sometimes the second one. But thats just how it works I guess. Would be nice to have a general alert that does not mention test 1 or 2, but just says "Internet connection down" |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12798 Location: USA
|
Posted: Thu Dec 15, 2011 5:24 am Post subject: |
|
|
Quote: | Would be nice to have a general alert that does not mention test 1 or 2, but just says "Internet connection down" |
It can say anything you want (unless you are using "show popup window" action).
What exactly action do you use?
Regards
Alex |
|
Back to top |
|
|
|