Stop test if ok, and start at next day at start of scheduler

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
fve
Posts: 98
Joined: Sun Apr 27, 2008 11:25 am
Location: Denmark

Stop test if ok, and start at next day at start of scheduler

Post by fve »

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?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

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:

Code: Select all

(%StatusID% == 12)
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
fve
Posts: 98
Joined: Sun Apr 27, 2008 11:25 am
Location: Denmark

Post by fve »

Hi
What is :
(%StatusID% == 12)

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?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

fve wrote:What is :
(%StatusID% == 12)
According to the manual, %StatusId% == 12 stands for "Out of schedule" status. Quote from the manual:
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
============================
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?
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).

Regards,
Max
fve
Posts: 98
Joined: Sun Apr 27, 2008 11:25 am
Location: Denmark

Post by fve »

THANKS, you are the best!
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

fve wrote:THANKS, you are the best!
You are welcome! :-)

Regads,
Max
Post Reply