View previous topic :: View next topic |
Author |
Message |
rasc
Joined: 11 Oct 2009 Posts: 95
|
Posted: Fri Nov 23, 2012 1:45 pm Post subject: repeated alert actions every n'th time |
|
|
Hi,
we sincerely miss the option to repeat actions not 20 times or forever but every 100th time.
Why? Cause we'd like to check [whatever] every minute (it might have got 'alive' in between) but not get a mail every minute. On the other hand we do not want to only get a single mail at 'start'. We'd like to get a mail every 100th occurence. Or every 67th, You get it, I think.
Thank you. |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
|
Back to top |
|
|
rasc
Joined: 11 Oct 2009 Posts: 95
|
Posted: Fri Nov 23, 2012 2:11 pm Post subject: |
|
|
Thank you, "Mr. Europe"! |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Fri Nov 23, 2012 2:21 pm Post subject: |
|
|
You are welcome ! |
|
Back to top |
|
|
rasc
Joined: 11 Oct 2009 Posts: 95
|
Posted: Sat Nov 24, 2012 4:35 am Post subject: |
|
|
KS-Soft Europe wrote: | action will be started on 1, 101, 201, ... Bad recurrence. |
...almost never a good idea to alert on the very 1st error. We at least re-test before alerting.
So I slightly enhanced your example (it's easy once one knows where to start off ) by "and (%Recurrences% > 1)"
Code: | ('%SimpleStatus%'=='DOWN') and (%Recurrences% > 1) and (%Recurrences% mod 100==1) |
Just in case someone else stumbles over your tip.
Regards |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Mon Nov 26, 2012 8:00 am Post subject: |
|
|
Quote: | ...almost never a good idea to alert on the very 1st error. We at least re-test before alerting. |
Thanks for your notice.
Quote: | ('%SimpleStatus%'=='DOWN') and (%Recurrences% > 1) and (%Recurrences% mod 100==1) |
With this expression, you'll get alert only after 101-st Bad status.
Maybe it's better to start first action after 5-th or 10-th bad recurrence?
In such case expression will look like the following:
('%SimpleStatus%'=='DOWN') and (%Recurrences% mod 100==10) |
|
Back to top |
|
|
|