View previous topic :: View next topic |
Author |
Message |
rarens
Joined: 25 Mar 2010 Posts: 5
|
Posted: Thu Mar 25, 2010 8:39 am Post subject: Expression Problem |
|
|
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 |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12801 Location: USA
|
|
Back to top |
|
|
rarens
Joined: 25 Mar 2010 Posts: 5
|
Posted: Thu Mar 25, 2010 2:32 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12801 Location: USA
|
Posted: Thu Mar 25, 2010 3:39 pm Post subject: |
|
|
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/mframe.htm#actions.htm#macro
Also you may check manual in MS Word format (manual.doc file located in HostMonitor folder)
Regards
Alex |
|
Back to top |
|
|
rarens
Joined: 25 Mar 2010 Posts: 5
|
Posted: Fri Mar 26, 2010 6:31 am Post subject: |
|
|
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!! |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12801 Location: USA
|
Posted: Fri Mar 26, 2010 11:32 am Post subject: |
|
|
You are welcome.
BTW: We do not have German translation of the manual. We just working on it.
Regards
Alex |
|
Back to top |
|
|
Paul_NHS
Joined: 25 Feb 2009 Posts: 59
|
Posted: Fri Aug 27, 2010 1:30 am Post subject: |
|
|
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 |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12801 Location: USA
|
Posted: Fri Aug 27, 2010 10:24 am Post subject: |
|
|
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 |
|
Back to top |
|
|
|