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
best way to run tests in a row / specific order
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/mfr ... htm#Master
Regards
Alex
https://www.ks-soft.net/hostmon.eng/mfr ... htm#Master
Regards
Alex
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
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
Because my test doesn't have the correct status as you mentioned in the help.Why you do not want to setup Master tests?
I prefer the schedule method , if thats possible.dependent test based on the status of the Master test:
- "Alive";
- "Alive" or "Unknown";
- "Dead";
- "Dead" or "Unknown".
..else i will search for an other solution.
thx Alex
Menno
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:
So you may use expression that will suit your needs, e.g.
('%::Test1::Status%'<>'Unknown')
or
('%::Test1::Reply%'<>'')
...
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
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: Select all
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.
('%::Test1::Status%'<>'Unknown')
or
('%::Test1::Reply%'<>'')
...
You may try "Irregular schedule by expression" option and expressions likeI prefer the schedule method , if thats possible
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