Test must not run again before 06:00 next day?

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

Test must not run again before 06:00 next day?

Post by fve »

I want to run my test every 5 minutes all day all time 24/7.
But only if last status is down/bad.
First time a test return ok/up, it must not run again before 06:00 next day.

//Flemming
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You may assign HM Script action ("Good" action) to the test and use DisableTest %TestName% command to disable the item
www.ks-soft.net/hostmon.eng/mframe.htm# ... #actScript

In order to enable test at 06:00 you should do the following:
- create auxiliary alert profile
- add "on the schedule" HMScript action, use "EnableTest <specific name of the test>" command in the script
- setup schedule using built-in Scheduler (see Options dialog) to start this profile
http://www.ks-soft.net/hostmon.eng/mfra ... #SchedPage

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

Post by fve »

Hi

The first step work -> disable the test.

What is: create auxiliary alert profile?
And will the test be created in good or bad box?

Because I dont understand what trigger the event, now the test is disabled.

Regards
Flemming
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What is: create auxiliary alert profile?
Just create another alert profile.
And will the test be created in good or bad box?

It does not really matter for "on the schedule" actions
Because I dont understand what trigger the event

Sheduler

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

Post by fve »

Hi

Yes teh schedule will be the trigger. But for to make a test I do this.

The first point is ok, it disable my test.

I dont understand how to config it?
I made a schedule 06:00-06:01 only one minutes.
I attach the schedule to the point caled "time restriction"
is that corect?

Flemming
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Nope. "Schedule" and "Scheduler" are different things. Could you please check Scheduler page in the Options dialog and read the manual (I have posted link to on-line help in my 1st reply)? This one http://www.ks-soft.net/hostmon.eng/mfra ... #SchedPage

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

Post by fve »

Hi

Thanks but it's a bit complicated.

Okay I found the "event timer" schedule and try making 1 minuts event.
I still little confused,
In the menu Action properties I had selected use schedule as you suggest.
In the Option menu i had 1 minutes event but the right most dropdown I select do nothing.

In the test itself I had a action to disable and it working.
Another action is to enable but it dosent work? I had selected "on the schedule"

Sorry Flemming
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Lets start from begining:
1) create test file, e.g. enablescript1.hms, add "EnableTest name_of_the_test" line into file

2) click menu Profiles -> Action profiles
3) click "New", enter name of the profile (e.g. "EnableProfile")
4) click "Add" (either in good or bad columns), choose "Run HMScript" action
5) set "Condition to start action" to "on the schedule"
6) specify path to enablescript1.hms file
7) click Ok to save action
8. click Ok to save action profiles

9) click menu Option, go to "Scheduler" page
10) add "Daily at 06:00" task, choose "EnableProfile" alert profile
11) click Ok to save changes

Regards
Alex
Post Reply