Action depends on "bad" one for Advanced Mode

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
ckratsch

Action depends on "bad" one for Advanced Mode

Post by ckratsch »

I know that the Advanced Mode for action profiles does not allow me to use "Action depends on bad one" - but I'd really like it to. I'm trying to sort out a way to replicate this with a macro variable. We have a number of tests which only trigger actions when %Recurrences% is 6, or 10, or 20.

I see that there are variables for %PreviousStatusDuration% and %PreviousStatusDuration_sec%, but I'm not seeing anything for the number of recurrences of the previous status.

Am I missing something?

Edit: I may have been able to build my own global macro variable with:

Code: Select all

%PreviousStatusDuration_sec% div %Interval_sec%
So, if the previous status duration in seconds is 360, and the test interval is every minute, that should return the value 6.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I see that there are variables for %PreviousStatusDuration% and %PreviousStatusDuration_sec%, but I'm not seeing anything for the number of recurrences of the previous status.
You are right, there is no such variable and it will not help in case when "good" action should be executed after several "good" iterations as well...
Edit: I may have been able to build my own global macro variable with:
%PreviousStatusDuration_sec% div %Interval_sec%
Yes, this expression should provide number of recurrences for previous status.

Regards
Alex
Post Reply