Help with "advanced mode" action

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
ixtab
Posts: 32
Joined: Tue Dec 23, 2008 10:37 am

Help with "advanced mode" action

Post by ixtab »

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

Help with "advanced mode" action

Post by KS-Soft Europe »

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"
ixtab
Posts: 32
Joined: Tue Dec 23, 2008 10:37 am

Post by ixtab »

Oops, thanks!
Image
Post Reply