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

repeat on advance mode

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
JD



Joined: 05 May 2009
Posts: 6

PostPosted: Thu Sep 03, 2009 8:12 am    Post subject: repeat on advance mode Reply with quote

hi
how can i stop check condition to start action
after 1 repeat on advance mode ?
my condition is "(%FailedCnt% >= 2)"
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Sep 03, 2009 8:57 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
JD



Joined: 05 May 2009
Posts: 6

PostPosted: Sat Sep 05, 2009 11:17 pm    Post subject: repeat on advance mode Reply with quote

That's exactly
Thank you very much
Back to top
View user's profile Send private message
hcarcamo



Joined: 08 Oct 2009
Posts: 3

PostPosted: Thu Oct 08, 2009 1:11 am    Post subject: Reply with quote

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



Joined: 16 May 2006
Posts: 2832

PostPosted: Thu Oct 08, 2009 9:06 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
hcarcamo



Joined: 08 Oct 2009
Posts: 3

PostPosted: Thu Oct 08, 2009 9:56 am    Post subject: Reply with quote

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



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Oct 08, 2009 12:48 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
hcarcamo



Joined: 08 Oct 2009
Posts: 3

PostPosted: Thu Oct 08, 2009 6:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting 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