View previous topic :: View next topic |
Author |
Message |
JD
Joined: 05 May 2009 Posts: 6
|
Posted: Thu Sep 03, 2009 8:12 am Post subject: repeat on advance mode |
|
|
hi
how can i stop check condition to start action
after 1 repeat on advance mode ?
my condition is "(%FailedCnt% >= 2)" |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu Sep 03, 2009 8:57 am Post subject: |
|
|
Not sure I understand the question.
Do you need to start action once after 2nd consecutive failure? Then use expression like ('%SimpleStatus%'=='DOWN') and (%Recurrences%==2)
On the other hand you may use standard action for this purpose.
Regards
Alex |
|
Back to top |
|
|
JD
Joined: 05 May 2009 Posts: 6
|
Posted: Sat Sep 05, 2009 11:17 pm Post subject: repeat on advance mode |
|
|
That's exactly
Thank you very much |
|
Back to top |
|
|
hcarcamo
Joined: 08 Oct 2009 Posts: 3
|
Posted: Thu Oct 08, 2009 1:11 am Post subject: |
|
|
KS-Soft wrote: | Not sure I understand the question.
Do you need to start action once after 2nd consecutive failure? Then use expression like ('%SimpleStatus%'=='DOWN') and (%Recurrences%==2)
On the other hand you may use standard action for this purpose.
Regards
Alex |
Hello,
I need a test to alert me when the host is down in one hour intervals; however, when it reaches 24 times, I need it to alert me every 24 hours.
So far I got the first part (one hour intervals) but cannot figure how to change the repeatition of the alert.
Any help appreciated.
Thanks |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Thu Oct 08, 2009 9:06 am Post subject: |
|
|
hcarcamo wrote: |
Hello,
I need a test to alert me when the host is down in one hour intervals; however, when it reaches 24 times, I need it to alert me every 24 hours.
So far I got the first part (one hour intervals) but cannot figure how to change the repeatition of the alert.
Any help appreciated.
Thanks |
Hi,
Not sure I understand your question. Do you need to change time interval between tests after 24 consecutive fails? If so should use "Change test interval" action with "Start when 24 consecutive "Bad" results occur" and "Set to 24:00:00".
Regards,
Tom |
|
Back to top |
|
|
hcarcamo
Joined: 08 Oct 2009 Posts: 3
|
Posted: Thu Oct 08, 2009 9:56 am Post subject: |
|
|
This is the way it is now:
-TCP connection every two minutes. When it fails it changes the test to every minute.
-At the second consecutive bad result it sends an email and does it for 5 times.
-After more than 5 consecutive bad results the test will send an email only every hour but continues testing every minute
I want it to continue testing every minute. At this point i'm receiving an email every hour. I want to change it to only receive the email every day after it reaches 24 emails. Makes Sense? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu Oct 08, 2009 12:48 pm Post subject: |
|
|
So, right now you have 3 "bad" actions, like the following
1) "Change test interval" standard action
- "Start when 1 consecutive Bad results occur"
- repeat 1 time
2) "Send e-mail" standard action
- "Start when 2 consecutive Bad results occur"
- repeat 5 times
3) "Send e-mail" advanced action
condition to start action like ('%SimpleStatus%'=='DOWN') and (%Recurrences% mod 60 == 0)
Right? So you want to change properties of 3rd action?
I don't see any problem, just replace one number
('%SimpleStatus%'=='DOWN') and (%Recurrences% mod 60 == 0) to ('%SimpleStatus%'=='DOWN') (%Recurrences% mod 1440 == 0)
Regards
Alex |
|
Back to top |
|
|
hcarcamo
Joined: 08 Oct 2009 Posts: 3
|
Posted: Thu Oct 08, 2009 6:00 pm Post subject: |
|
|
Thanks for the response,
I do have it like your statements; however, if I change it from ('%SimpleStatus%'=='DOWN') and (%Recurrences% mod 60 == 0) to ('%SimpleStatus%'=='DOWN') (%Recurrences% mod 1440 == 0) I will only get the message every 24 hours.
To summarize, I do want to get the messages for one day every 60 minutes, but I also want to get the messages once a day after 24 have been sent.
Mine looks like this:
('%SimpleStatus%'==DOWN) and (%Recurrences% mod 55 == 1) and ('%Recurrences%' > 5)
What if I add another statement like this and change to the mod 1440 ==0, would that work?
55 because of the 5000 milliseconds it takes to the TCP to fail the test. |
|
Back to top |
|
|
|