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

best way to run tests in a row / specific order

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



Joined: 21 May 2010
Posts: 157

PostPosted: Sun Oct 15, 2023 2:14 am    Post subject: best way to run tests in a row / specific order Reply with quote

Hello

I have a question how to run 5 tests in a row every 5 min.

For example i have 5 tests also names 1 to 5.
I want to first run 1 then 2 then 3 then 4 then 5 on every 5 min.
Important to run there in this order.
also important here is to don't start the 2nd job before the 1st one is finisched ..and so on ... so don't start the 3rd before the 2nd has finisched etc etc

Can you help me to define such test method ?
Many thanks in advance
Menno
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Sun Oct 15, 2023 1:16 pm    Post subject: Reply with quote

Test5 should be dependant on test4
Test4 should be dependant on test3
Test3 should be dependant on test2
Test2 should be dependant on test1

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



Joined: 21 May 2010
Posts: 157

PostPosted: Mon Oct 16, 2023 2:17 am    Post subject: Reply with quote

Thx Alex
I found the item in the test but all settings are grayed out.
Under "dependensies of this test" and "conditions" on the right side when i edit the 2nd test in this case

Am i doing something wrong here. ???
I am the admin opening this test.

Many thanks in advance
Menno[/url]
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon Oct 16, 2023 2:56 am    Post subject: Reply with quote

List of dependents is read only. You should set Master test. Please check the manual or visit our web site
https://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#Master

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



Joined: 21 May 2010
Posts: 157

PostPosted: Mon Oct 16, 2023 4:01 am    Post subject: Reply with quote

ok thx Alex

My conclusion is that what i want is not possible.

Is there a way to schedule test1 to test5 after each other.
So use the scheduler for this ?
So for example.

test1 starts at 10:00
after test1 is done start test2
after test2 is done start test3 .. etc etc

so in this case there is no "time" schedule for test2 to test5.

many thanks for the help so far !
Menno
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon Oct 16, 2023 4:11 am    Post subject: Reply with quote

Quote:
My conclusion is that what i want is not possible.

Its possible and easy. Why you do not want to setup Master tests?

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



Joined: 21 May 2010
Posts: 157

PostPosted: Mon Oct 16, 2023 4:26 am    Post subject: Reply with quote

Quote:
Why you do not want to setup Master tests?


Because my test doesn't have the correct status as you mentioned in the help.

Quote:
dependent test based on the status of the Master test:
- "Alive";
- "Alive" or "Unknown";
- "Dead";
- "Dead" or "Unknown".


I prefer the schedule method , if thats possible.
..else i will search for an other solution.

thx Alex
Menno
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon Oct 16, 2023 4:42 am    Post subject: Reply with quote

2nd paragraph in the manual
This test depends on expression
Instead of making test to be dependent on a list of Master tests you can define a condition to perform the test using logical expression.
This mode is more complicated than a standard list of Master tests but it is very flexible. Just several simple examples:
Code:

    with expression ('%::Ping Router::SimpleStatus%'=="UP") and ('%::Ping Router::Reply%'<'800 ms') HostMonitor performs a test when the test named "Ping Router" has a good status and the reply time for the router is below 800 ms;
    use expression like ('%::TestA::SimpleStatus%'=='UP') or ('%::TestB::SimpleStatus%'=='UP') to perform a test when either TestA or TestB has "good" status.

So you may use expression that will suit your needs, e.g.
('%::Test1::Status%'<>'Unknown')
or
('%::Test1::Reply%'<>'')
...

Quote:
I prefer the schedule method , if thats possible

You may try "Irregular schedule by expression" option and expressions like
test1: * * *:00,*:05,*:10,*:15,*:20,*:25,*:30,*:35,*:40,*:45,*:50,*:55
test2: * * *:01,*:06,*:11,*:16,*:21,*:26,*:31,*:36,*:41,*:46,*:51,*:56
...
(if 1 min is enough for each test to be checked)

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



Joined: 21 May 2010
Posts: 157

PostPosted: Mon Oct 16, 2023 4:49 am    Post subject: Reply with quote

Wonderfull ! thx for the quick reply
Menno
Back to top
View user's profile Send private message
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