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

Help with "advanced mode" action

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



Joined: 23 Dec 2008
Posts: 32

PostPosted: Mon Sep 12, 2011 1:50 pm    Post subject: Help with "advanced mode" action Reply with quote

Hi,

I hope you can help me with this issue.

I would like to achieve this result:

1) If the test is bad for 4 consecutive iterations then send email "A" for each iteration
2) If the same test is bad for more than 4 consecutive iterations then send ONE email "B" (and not send any other emails "A" or "B" until the test is good again and the cycle starts from scratch).

For example:

If there are 3 bads and then 1 good it will send emails: A, A, A
If there are 5 bads and then 1 good it will send emails: A, A, A, A, B
If there are 20 bads and then 1 good it will send emails: A, A, A, A, B (same as the above)

I tried creating 2 "bad" actions on one profile. Both with advanced mode like this:

('%SimpleStatus%'<>'UP') and (%CurrentStatusIteration% < 5) will send email "A"

('%SimpleStatus%'<>'UP') and (%CurrentStatusIteration% > 4) will send email "B"

Only problem is that e-mail "B" is being sent multiple times for every consecutive bad > 4

I also tried to have this combination:
('%SimpleStatus%'<>'UP') and (%CurrentStatusIteration% < 5) will send email "A"

('%SimpleStatus%'<>'UP') and (%CurrentStatusIteration% = 5) will send email "B"

But for some reason if there are a lot of bad events in a short time (within a second or two) it doesn't seem to catch the "=5" event and I only get 4 "A" emails and nothing else.

Any idea will be appreciated.

Thanks!
Ix
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Mon Sep 12, 2011 2:05 pm    Post subject: Help with "advanced mode" action Reply with quote

Quote:
I also tried to have this combination:
('%SimpleStatus%'<>'UP') and (%CurrentStatusIteration% < 5) will send email "A"

('%SimpleStatus%'<>'UP') and (%CurrentStatusIteration% = 5) will send email "B"

Please use double equal signs ("==") instead of single equal sign ("=") to compare values.

e.g.:
('%SimpleStatus%'<>'UP') and (%CurrentStatusIteration% < 5) will send email "A"
('%SimpleStatus%'<>'UP') and (%CurrentStatusIteration% == 5) will send email "B"
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ixtab



Joined: 23 Dec 2008
Posts: 32

PostPosted: Tue Sep 13, 2011 6:29 am    Post subject: Reply with quote

Oops, thanks!
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