Expression Problem

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
rarens
Posts: 5
Joined: Thu Mar 25, 2010 8:29 am

Expression Problem

Post by rarens »

I want to use:
This test depends on Expression:
if the current time is 1 hour later then the last state change
of is there a way to work with %h-[1h]% or anything like this

thank you for your help
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You cannot use such operation.
Please chekc the manual: http://www.ks-soft.net/hostmon.eng/mfra ... m#userexpr

Regards
Alex
rarens
Posts: 5
Joined: Thu Mar 25, 2010 8:29 am

Post by rarens »

Do you have an other suggestion, how I can manage my problem:
I want to get an alert, when the state of the mastertest is bad for more than 1 hour

Thank you so much for your help
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

There is %CurrentStatusDuration_sec% variable.
You expression may look like ('%::MasterTestName::SimpleStatus%'=='DOWN') and (%::MasterTestName::CurrentStatusDuration_sec%>3600)

If you want to start some alerts based on this condition, I think you need to use this expression for "advanced mode" action assigned to that master test. You don't need to use this expression for dependant tests.
Unless I misunderstood your needs...

Please check list of variables that you can use: http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro
Also you may check manual in MS Word format (manual.doc file located in HostMonitor folder)

Regards
Alex
rarens
Posts: 5
Joined: Thu Mar 25, 2010 8:29 am

Post by rarens »

Yes, that was it, what I wanted ... I have the german manual and there I didn't find anything of:
Variables that represent parameters of some explicitly specified test

That made the job I wanted!!

Thank you for your good help!!
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You are welcome.
BTW: We do not have German translation of the manual. We just working on it.

Regards
Alex
Paul_NHS
Posts: 59
Joined: Wed Feb 25, 2009 6:17 am

Post by Paul_NHS »

I have a similar problem, but I only have one action and 4 tests that may trigger the action.
2 x master test. Trigger action if bad for > X time.
2 x dependant tests. Trigger action immediately.
I can see how to create 4 actions, but I would like to use the one action for all of the tests as I may need to add additional master/dependant tests.

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

Post by KS-Soft »

You want to use 2 different conditions so I think you should use 2 action profiles: 1 for master tests, another for dependant tests

Regards
Alex
Post Reply