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.
repeated alert actions every n'th time
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
You may use Advanced mode actions with expression like the following:
('%SimpleStatus%'=='DOWN') and (%Recurrences% mod 100==1)
action will be started on 1, 101, 201, ... Bad recurrence.
Please check for details at:
http://www.ks-soft.net/hostmon.eng/mfra ... ncedaction
('%SimpleStatus%'=='DOWN') and (%Recurrences% mod 100==1)
action will be started on 1, 101, 201, ... Bad recurrence.
Please check for details at:
http://www.ks-soft.net/hostmon.eng/mfra ... ncedaction
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
...almost never a good idea to alert on the very 1st error. We at least re-test before alerting.KS-Soft Europe wrote:action will be started on 1, 101, 201, ... Bad recurrence.
So I slightly enhanced your example (it's easy once one knows where to start off

Code: Select all
('%SimpleStatus%'=='DOWN') and (%Recurrences% > 1) and (%Recurrences% mod 100==1)
Regards
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Thanks for your notice....almost never a good idea to alert on the very 1st error. We at least re-test before alerting.
With this expression, you'll get alert only after 101-st Bad status.('%SimpleStatus%'=='DOWN') and (%Recurrences% > 1) and (%Recurrences% mod 100==1)
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)