KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Expression Problem

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
rarens



Joined: 25 Mar 2010
Posts: 5

PostPosted: Thu Mar 25, 2010 8:39 am    Post subject: Expression Problem Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Mar 25, 2010 10:41 am    Post subject: Reply with quote

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

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
rarens



Joined: 25 Mar 2010
Posts: 5

PostPosted: Thu Mar 25, 2010 2:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Mar 25, 2010 3:39 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
rarens



Joined: 25 Mar 2010
Posts: 5

PostPosted: Fri Mar 26, 2010 6:31 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Fri Mar 26, 2010 11:32 am    Post subject: Reply with quote

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

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Paul_NHS



Joined: 25 Feb 2009
Posts: 59

PostPosted: Fri Aug 27, 2010 1:30 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Fri Aug 27, 2010 10:24 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index