Specifying Master Test in text import

General chat about HostMonitor (all messages posted before March 07, 2003 available here).
Locked
jricha34
Posts: 59
Joined: Sun Jul 07, 2002 6:00 pm
Location: USA

Post by jricha34 »

How do you specify a master test for the import text file?

Ex:
I want to script the setup of several LDAP and ping tests, I want the LDAP tests to be dependent on the ping tests.
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I will implement new parameter in next version. Now this is impossible.

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

Post by jricha34 »

Ok cool. Any time frame on that? Also is there a web page with a list of coming enhancements with possible time lines?

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

Post by KS-Soft »

Tomorrow.
Sorry, our "to do" list for internal use only.

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

Post by KS-Soft »

Done. Update available at http://www.ks-soft.net/download/hm319c.zip

There are 6 new parameters those you can use in an import file:
SyncCounters = Yes|No
SyncAlerts = Yes|No
MasterTest-Alive = <Test name>
MasterTest-AliveOrUnknown = <Test name>
MasterTest-DeadOrUnknown = <Test name>
MasterTest-Dead = <Test name>

Example:
Method = Ping
Title = ping yahoo
Host = http://www.yahoo.com
Timeout = 3000
Retries = 4
DisplayMode = Received
MaxLostRatio = 90
MasterTest-DeadOrUnknown = ping altavista
MasterTest-Dead = ping google
SyncCounters = Yes
SyncAlerts = No


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

Post by jricha34 »

Excellent, thanks Alex.

Along this line, is it possible to tell the import text that it should be updating existing tests versus trying to create new ones? i.e. I have a couple of thousand tests configured and I want to set up just the master options on about 1800 of them how would I specify that?

Additionally is it possible to delete tests from the import file or through scripts?

thanks, joe
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You are welcome.

Unfortunately using script you cannot update or delete existing tests. However if you have all necessary tests in your import file, you can create new HML file, import tests, and save the file. E.g.
NewTestList
AppendTestList c:list1.hml
ImportFromFile c:import1.txt SkipDuplicates WriteLog
SaveTestList c:list2.hml

Probably it can be helpful in your case

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

Post by jricha34 »

So it sounds like for now if I want to automate the updating of the HML files I will need to maintain a separate database with all of the tests that need to be performed, write a script that will generate a text file for that when it changes and place it somewhere where it will trigger an event to cause a script to import the file to run. Unfortunately it means I can't make any changes to the HML within the GUI as there would be no way to maintain that info.

Would that be a correct summary?

thanks, joe
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Yes, you are right.
I will try to improve import utility.

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

Post by jricha34 »

Thanks.
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We do not changed import utility yet, but now HM script supports new command "DeleteTest <test name>". You will be able to remove old tests before importing new version of tests. There are update http://www.ks-soft.net/download/hm319e.zip

Regards
Alex
Locked