Export / Import

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

Post by jricha34 »

Alex,

Thanks for the export feature. I just did an export of current folder and subfolders and saw that it indicated the folders in the export file but then when I imported, it didn't use any of them

Also the tests are all failing that I exported and immediately re-imported into a new HML. I will try to figure out why and then let you know what I find.

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

Post by KS-Soft »

>Also the tests are all failing that I exported and immediately re-imported into a new HML. I will try to figure out why and then let you know what I find.

Problem fixed (HM worked incorrectly with "Reverse Alert" option). Please, try patch at http://www.ks-soft.net/download/hm331.zip

>I just did an export of current folder and subfolders and saw that it indicated the folders in the export file but then when I imported, it didn't use any of them

HostMonitor puts folder names into export file just for comments. Import utility imports all tests into current folder. In future import utility will be improved.

Regards
Alex
agressiv
Posts: 35
Joined: Sun Oct 06, 2002 6:00 pm

Post by agressiv »

Thanks for the "reverse action" fix. I noticed that if I have an NT service dependant on another NT service, and I try to export and import it, those dependant services will say "Unknown test name in line #X" - yet something such as a perf counter will retain this information (it's the same dependancy)

Basically, I'm making the lanmanserver service dependant on ping, and I'm making all other services dependant on lanmanservice. Only UNC (C drive for example) and our perf counters are correctly inheriting the dependancy. None of the other services (such as antivirus) are inheriting this and I'm having to go manually adjust them.

Thanks,

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

Post by KS-Soft »

Could you please send your HML file for testing to our address line1@ks-soft.net

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

Post by jricha34 »

Here is another bug I found in the export/import process. I think I have it nailed down for you.

o Created a folder structure like

--root
|
|------folder1
|
------folder2


o In folder 2 create test1
o In folder 1 create test2 and make it dependent on test1

The export file will look like this:

;-----------------------------------------------------------------------------
;- HostMonitor`s export/import file -
;- Generated by HostMonitor at 10/9/2002 6:36:42 PM -
;- Source file: -
;- Generation mode: All_Tests -
;-----------------------------------------------------------------------------

;-----------------------------------------------------------------------------
; Folder: Root
;-----------------------------------------------------------------------------
;-----------------------------------------------------------------------------
; Folder: RootFolder1
;-----------------------------------------------------------------------------

; ------- Test #01 -------


Method = Ping
;--- Common properties ---
Title = Test2
Comment =
RelatedURL =
ScheduleMode= Regular
Schedule =
Interval = 600
Alerts =
ReverseAlert= No
UnknownIsBad= Yes
UseCommonLog= Yes
PrivLogMode = Default
SyncCounters= Yes
SyncAlerts = No
MasterTest-Alive = Test1
;--- Test specific properties ---
Host = server2
Timeout = 2000
Retries = 4
MaxLostRatio= 100
DisplayMode = time

;-----------------------------------------------------------------------------
; Folder: RootFolder2
;-----------------------------------------------------------------------------

; ------- Test #02 -------


Method = Ping
;--- Common properties ---
Title = Test1
Comment =
RelatedURL =
ScheduleMode= Regular
Schedule =
Interval = 600
Alerts =
ReverseAlert= No
UnknownIsBad= Yes
UseCommonLog= Yes
PrivLogMode = Default
;--- Test specific properties ---
Host = server1
Timeout = 2000
Retries = 4
MaxLostRatio= 100
DisplayMode = time

;-----------------------------------------------------------------------------
; Exported 2 tests



When you try to import you will get an error like:


Opening input file "C:DDRIVEDevHostMonitorHM330test2.txt" .. Ok
Reading ..
Unknown test name in line #33
Done
tasks imported: 2
errors: 1
warnings: 0



The issue appears to be when a test with a dependency is attempted to be loaded prior to the dependency test being loaded. This would have to be fixed by either using a two pass import process or making sure that the export file has all of the dependencies written to it prior to anything using the dependencies.


joe

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

Post by KS-Soft »

I know about this problem. But its not a bug, its "design feature" :roll: Will be improved.
Thank you anyway

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

Post by KS-Soft »

Done. There is update http://www.ks-soft.net/download/hm333.zip

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

Post by jricha34 »

Well cool, I just got 332 downloaded. :eek:P
jricha34
Posts: 59
Joined: Sun Jul 07, 2002 6:00 pm
Location: USA

Post by jricha34 »

Just wanted to let you know I tested the export with dependencies and reimported immediately and it worked great.

thanks!
agressiv
Posts: 35
Joined: Sun Oct 06, 2002 6:00 pm

Post by agressiv »

Now the dependency out of order bit is fixed, but If I import a test that has a dependancy already defined (if its not in the text file) it will also fail.

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

Post by KS-Soft »

Yes, I know. Import file cannot contain links to outside of the file.

Regards
Alex
User avatar
M@ster
Posts: 78
Joined: Thu Oct 24, 2002 6:00 pm
Location: Germany

Post by M@ster »

On 2002-10-04 17:54, KS-Soft wrote:
HostMonitor puts folder names into export file just for comments. Import utility imports all tests into current folder. In future import utility will be improved.
I'd like this improvement :wink:
Do you think it will be implemented in HM 3.5?

René
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

I would welcome this feature......
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

No, its not implemented yet. In version 3.50 implemented 2 new reports (Compact HTML and Custom HTML), redesigned full screen chart (Log Analyzer tool), and implemented new HTTP test.

Regards
Alex
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

Then of course the next question would be: Is it scheduled for any near release?
Locked