KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

repeated alert actions every n'th time

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Wish list
View previous topic :: View next topic  
Author Message
rasc



Joined: 11 Oct 2009
Posts: 95

PostPosted: Fri Nov 23, 2012 1:45 pm    Post subject: repeated alert actions every n'th time Reply with quote

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
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Fri Nov 23, 2012 1:59 pm    Post subject: Reply with quote

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/mframe.htm#actions.htm#advancedaction
Back to top
View user's profile Send private message Send e-mail Visit poster's website
rasc



Joined: 11 Oct 2009
Posts: 95

PostPosted: Fri Nov 23, 2012 2:11 pm    Post subject: Reply with quote

Thank you, "Mr. Europe"!
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Fri Nov 23, 2012 2:21 pm    Post subject: Reply with quote

You are welcome !
Back to top
View user's profile Send private message Send e-mail Visit poster's website
rasc



Joined: 11 Oct 2009
Posts: 95

PostPosted: Sat Nov 24, 2012 4:35 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Mon Nov 26, 2012 8:00 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Wish list All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index