Stuck on another expression

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
xcentric
Posts: 176
Joined: Sat Oct 23, 2010 4:30 pm

Stuck on another expression

Post by xcentric »

I am having difficulty with an expression.

No matter how many recurrences there are for a test, I always want the first 4 failed probes to be a Warning status then 5 and after a Bad status.

I have part of the solution that works but stuck on completion due to a side effect.

I have

Code: Select all

("%SuggestedSimpleStatus%"=="DOWN") and (%Recurrences%<4)
This works however if there are more then 5 successful probes a subsequent failed probe issues a Bad status then Warning statuses after.

This happens because the previous recurrences was above 4. So no warning status is given until a second probe fails.

I have tried setting the recurreces in the exp to <>5 but this causes bad statuses after 5 recurrences to be warning statuses.

I tried using previous statuses in the mix but struggling to see this one though.

Please advise.

Regards
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You are using %SuggestedSimpleStatus% variable because manual states the following
====================
- HostMonitor performs the test;
- processes "Reverse alert" option;
- sets "suggested" macro variables (%SuggestedStatus%, %SuggestedSimpleStatus%, %SuggestedReply%, %SuggestedRecurrences% and %FailureIteration%) without touching regular counters (%Status%, %Reply%, %Recurrences%, etc);
- then HostMonitor evaluates "Warning", "Normal" and "Tune up Reply" expressions and finally modifies current test status, reply field and statistics counters (Status, Reply, Alive%, Passed tests, Failed tests, etc).
=====================
Right?
So, you should use %SuggestedRecurrences%

BTW: I think expression like ("%SuggestedSimpleStatus%"=="DOWN") and (%FailureIteration%<4) would suit your needs better

Regards
Alex
xcentric
Posts: 176
Joined: Sat Oct 23, 2010 4:30 pm

Post by xcentric »

Alex,

Your suggestion works perfectly.

Thank you for all of your help today. I really appreciate your knowledge and support.

Regards
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

No problem :)

Regards
Alex
Post Reply