out-of-schedule status

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
avery_larry
Posts: 25
Joined: Thu Sep 11, 2008 11:06 am

out-of-schedule status

Post by avery_larry »

I want to run a test once each Mon. through Fri. morning at 7:00 am.

I don't think that can be setup in irregular or regular schedule directly. I've setup the test to run on a regular schedule every 2 hours, and then I setup a Schedule that is enabled Mon. through Fri. at 7:00 am.

What I want is the test to show the last status of the test when it was in schedule instead of showing a status of out of schedule. Can that be done with the optional status processing? Instead of fumbling through trying to figure it out, I thought I'd ask here.

Or perhaps this should be a wish list? Add more options to the irregular schedule? For example:
Daily -- then you can specify multiple set times each day
Weekly -- then you can specify multiple set times with a checkbox for which days to run on (this would be perfect for what I want to do).
Monthly -- could add options for "first Mon. of the month" or "last Fri. of the month" in addition to the specific day of the month.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I want to run a test once each Mon. through Fri. morning at 7:00 am. I don't think that can be setup in irregular or regular schedule directly. I've setup the test to run on a regular schedule every 2 hours, and then I setup a Schedule that is enabled Mon. through Fri. at 7:00 am.
Yes, you need to use schedule profile.
What I want is the test to show the last status of the test when it was in schedule instead of showing a status of out of schedule. Can that be done with the optional status processing?
No, it will not work in such case.
The only solution I see - use longer test interval. E.g. if you set test interval to 23 hours then HostMonitor will set "Out of Schedule" status only between 6:00 and 7:00 (also it may set "Out of Schedule" status when somebody "refreshes" test items). You may set test interval to 23 hours and 50 minutes. Do not set 23:59 - if HostMonitor will be busy performing other tests, test execution time for this item can be moved slightly every day...
Or perhaps this should be a wish list? Add more options to the irregular schedule? For example:
Daily -- then you can specify multiple set times each day
Weekly -- then you can specify multiple set times with a checkbox for which days to run on (this would be perfect for what I want to do).
Monthly -- could add options for "first Mon. of the month" or "last Fri. of the month" in addition to the specific day of the month
H'm... low priority task

Regards
Alex
avery_larry
Posts: 25
Joined: Thu Sep 11, 2008 11:06 am

Post by avery_larry »

KS-Soft wrote:
I want to run a test once each Mon. through Fri. morning at 7:00 am. I don't think that can be setup in irregular or regular schedule directly. I've setup the test to run on a regular schedule every 2 hours, and then I setup a Schedule that is enabled Mon. through Fri. at 7:00 am.
Yes, you need to use schedule profile.
What I want is the test to show the last status of the test when it was in schedule instead of showing a status of out of schedule. Can that be done with the optional status processing?
No, it will not work in such case.
The only solution I see - use longer test interval. E.g. if you set test interval to 23 hours then HostMonitor will set "Out of Schedule" status only between 6:00 and 7:00 (also it may set "Out of Schedule" status when somebody "refreshes" test items). You may set test interval to 23 hours and 50 minutes. Do not set 23:59 - if HostMonitor will be busy performing other tests, test execution time for this item can be moved slightly every day...
I'll have to test that. I think what you're saying is it'll only show a status of out-of-schedule if it actually tries to run when it's out-of-schedule. So then it'll show the last status unless I click the refresh button or I shutdown/restart hostmonitor. This also assumes that it will ALWAYS run immediately upon the test entering the in-schedule status. Otherwise, if I set it for 23 hours and then I refresh at 3:00pm (which won't run because it's out-of-schedule), it's not scheduled to repeat until 2:00pm the next day. I'm assuming that it will instead run immediately at 7:00 am when the test changes to in-schedule.
Or perhaps this should be a wish list? Add more options to the irregular schedule? For example:
Daily -- then you can specify multiple set times each day
Weekly -- then you can specify multiple set times with a checkbox for which days to run on (this would be perfect for what I want to do).
Monthly -- could add options for "first Mon. of the month" or "last Fri. of the month" in addition to the specific day of the month
H'm... low priority task
I can understand that. I'm surprised you haven't had more requests for this type of scheduling flexibility.

BTW--the other method to accomplish this (which I might use) is to create 5 separate tasks--one for each day--and use the weekly irregular option instead of the daily. Guess I'm glad I got the Pro version instead of Standard.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I think what you're saying is it'll only show a status of out-of-schedule if it actually tries to run when it's out-of-schedule
Correct.
So then it'll show the last status unless I click the refresh button or I shutdown/restart hostmonitor
Correct
This also assumes that it will ALWAYS run immediately upon the test entering the in-schedule status
Well, not always. However if "out of schedule" time interval is longer than test interval then yes.
Otherwise, if I set it for 23 hours and then I refresh at 3:00pm (which won't run because it's out-of-schedule)
If you are using HostMonitor 7.50+, it will ask for confirmation and it will run the test if you confirm operation (and you have enough rights for such operation).
it's not scheduled to repeat until 2:00pm the next day. I'm assuming that it will instead run immediately at 7:00 am when the test changes to in-schedule
H'm.. if you setup test interval to 23 hours and you refresh test at 3pm then HostMonitor will not start test at 7.00 :(
However there is another solution - use built in scheduler to "refresh" test at 7:00 (create "on the schedule" action to start HMScript with "RefreshTest" command)
http://www.ks-soft.net/hostmon.eng/mfra ... #actScript

Yeah, complicated :(

Regards
Alex
avery_larry
Posts: 25
Joined: Thu Sep 11, 2008 11:06 am

Post by avery_larry »

KS-Soft wrote:However there is another solution - use built in scheduler to "refresh" test at 7:00 (create "on the schedule" action to start HMScript with "RefreshTest" command)
http://www.ks-soft.net/hostmon.eng/mfra ... #actScript

Yeah, complicated :(

Regards
Alex
I'll have to mess around and see if I can figure that out. My other idea of 5 separate tests won't work as I'm checking the NT event log--which I only want to check the events from the last day, not the events from the last week.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

IMHO its much better to use 1 item instead of 5...

Regards
Alex
avery_larry
Posts: 25
Joined: Thu Sep 11, 2008 11:06 am

Post by avery_larry »

KS-Soft wrote:H'm.. if you setup test interval to 23 hours and you refresh test at 3pm then HostMonitor will not start test at 7.00 :(
I think that's only true if you manually refresh and force it to run even though it's out-of-schedule. Like this:

Test is set to run every 23 hours.
Schedule is setup to only allow a 20 minute window at 7:00am Mon-Fri.

Test runs at 7:00 am. If I click the Global refresh button, then the test will attempt to run but fail because of out-of-schedule. Status changes to out-of-schedule. However, since it didn't actually run, it's still going to run at 7:00 am the next morning.

If, however, I chose to refresh the selected test after it's in out-of-schedule status and I chose to force it even though it's not-in-schedule, THEN it won't run the next morning because it'll be less than 23 hours since the last time it ran (I'm ignoring the refresh test idea in this example).
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

think that's only true if you manually refresh and force it to run even though it's out-of-schedule
Yes. That's what I meant

Regards
Alex
Post Reply