Regular schedule/test every feature

General chat about HostMonitor (all messages posted before March 07, 2003 available here).
Locked
Guest

Post by Guest »

We have ping tests setup and have created regular schedules. However, we have varying "test every" requirements and it seems that we need to create a new schedule and duplicate the test to accomodate these changes. Is there an easier way? For example, we ping the same set of servers every 5 minutes M-F 9 to 5 and then we ping them every 30 minutes at all other times. It doesn't let you add multiple schedules to one test, and therefore our screen gets crowded by the same things repeated, just at differing "test every" intervals.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Sorry, there no easier way. Current version of HostMonitor supports only one schedule/interval per test. Probably in future versions schedules will be completely redesigned, but it will be in September-October or late.

Regards
Alex
jricha34
Posts: 59
Joined: Sun Jul 07, 2002 6:00 pm
Location: USA

Post by jricha34 »

Could you copy the hml file and then have one file for the weekdays and one for the weekends. Once you have made the copy change the one schedule setting and then have a script that switches you between the two.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Yes, you can do it. You can create two sets of tests with different test intervals, e.g. workday.hml and weekend.hml.

Create 2 scripts those will change current list of test, like
friday.hms
SaveTestList
LoadTestList weekend.hml
monday.hms
SaveTestList
LoadTestList workday.hml

Create 2 alert profiles those will start scripts, e.g.
- alert profile "load weekend tests"; add "Execute HMScript" action to start friday.hml script
- alert profile "load workday tests"; add "Execute HMScript" action to start monday.hml script
Use "Repeat: until status changes" option in the Action Properties dialog

Also you need to create 2 tests with irregular schedules to start action profiles in Friday evening and in Monday morning, e.g.
- 1st test: ping 127.0.0.1; irregular schedule: start test one time per week (Friday at 18:00); alert profile: "load weekend tests"
- 2st test: ping 127.0.0.1; irregular schedule: start test one time per week (Monday at 9:00); alert profile: "load workday tests"
Ping 127.0.0.1 always will return "Host is alive" status, and HostMonitor will start "Good" actions. If you created "Bad" actions, to start scripts use "Reverse alert" option in the Test Properties dialog.

Regards
Alex
Locked