repeated alert actions every n'th time

Need new test, action, option? Post request here.
Post Reply
rasc
Posts: 95
Joined: Sun Oct 11, 2009 8:25 am

repeated alert actions every n'th time

Post by rasc »

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.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

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
rasc
Posts: 95
Joined: Sun Oct 11, 2009 8:25 am

Post by rasc »

Thank you, "Mr. Europe"! :D
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You are welcome !
rasc
Posts: 95
Joined: Sun Oct 11, 2009 8:25 am

Post by rasc »

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: Select all

('%SimpleStatus%'=='DOWN') and (%Recurrences% > 1) and (%Recurrences% mod 100==1)
Just in case someone else stumbles over your tip.


Regards
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

...almost never a good idea to alert on the very 1st error. We at least re-test before alerting.
Thanks for your notice.
('%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)
Post Reply