Some of my test is running every 10 min. in a scheduler 10-14. I want the test to stop if the result is ok, and not start before next day at start of my scheduler, at this moment at 10:00 clock.
How to?
Stop test if ok, and start at next day at start of scheduler
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
I would suggest you to assign an alert profile with two "Change test interval" actions. http://www.ks-soft.net/hostmon.eng/mfra ... etInterval
First "Change test interval" action should be placed into "Good status actions" area and should set test interval to 4 hours (04:00:00). It means, if test status becomes Good, HostMonitor will try perform this text next time after 4 hours, that is out of schedule interval, so test will not be performed.
Second "Change test interval" action should be placed into "Bad status actions" area with "Restore original value" option. In "Action properties" window for this action, you should select "advanced mode" from "Condition to start action" dropdown and use following expression: This means HostMonitor revert test interval back to 10 minutes when first "Out of schedule" event occur. http://www.ks-soft.net/hostmon.eng/mfra ... ncedaction
Regards,
Max
First "Change test interval" action should be placed into "Good status actions" area and should set test interval to 4 hours (04:00:00). It means, if test status becomes Good, HostMonitor will try perform this text next time after 4 hours, that is out of schedule interval, so test will not be performed.
Second "Change test interval" action should be placed into "Bad status actions" area with "Restore original value" option. In "Action properties" window for this action, you should select "advanced mode" from "Condition to start action" dropdown and use following expression:
Code: Select all
(%StatusID% == 12)
Regards,
Max
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
According to the manual, %StatusId% == 12 stands for "Out of schedule" status. Quote from the manual:fve wrote:What is :
(%StatusID% == 12)
http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro
============================
%StatusID% - A 2 digits number that represents status of the test
00- Not tested
01- Host is alive
02- No answer
03- Unknown
04- Unknown host
05- Checking
06- Resolving
07- Ok
08- Bad
09- Disabled
10- Bad contents
11- Wait for Master
12- Out of schedule
13- Paused
14- Warning
15- Normal
============================
That's why you need second "Change test interval" action with (%StatusID% == 12) expression. This action will be fired when "Out of schedule status" occurs and this action sets the test interval back to 10 minutes ("Restore original value" option).fve wrote:And fuerthermore will the scheduler restore automatic? I ask because when the first success came up- it will change the schedule to "out of schedule" but will the normaly schedule restore again?
Regards,
Max
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact: