Text File Import

General chat about HostMonitor (all messages posted before March 07, 2003 available here).
Locked
Tommy
Posts: 22
Joined: Mon Jul 01, 2002 6:00 pm

Post by Tommy »

I am working on a series of scripts for importing in order to speed up deployment and eliminate mistakes due to "mis-clicks". I am getting the following error - it does not seem to affect anything though.


Opening input file "C:Program FilesHostMonitor3BackupExecTests template.txt" .. Ok
Reading ..
Test method must be the first test parameter (line #5)
Done
tasks imported: 7
errors: 1
warnings: 0

This is what the text file looks like:

DefaultSchedule = 7 Days, 24 Hours
DefaultAlertProfile =
DefaultInterval = 120
DefaultComment = Comment1^MComment2^MComment3^MComment4^MComment5
UnknownIsBad = yes

;-------------------------------------------------------
; Service Tests
;-------------------------------------------------------

Method = Service
Title = xyzServerName Service Check for Exchange 2000 Imap
Service = imap4svc
Computer = \xyzServerName
UserName = xyzUser
Password = xyzPassword

I'll post the scripts for basic NT services, Compaq Insight Manager Services, Exchange 2000 services, and BackupExec services once this is cleared up.

tia

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

Post by KS-Soft »

Yes, problem is line "UnknownIsBad = yes" located in wrong place. "UnknownIsBad" is parameter of the test, so, it must be located in the test description. In your case

DefaultSchedule = 7 Days, 24 Hours
DefaultAlertProfile =
DefaultInterval = 120
DefaultComment = Comment1^MComment2^MComment3^MComment4^MComment5

;-------------------------------------------------------
; Service Tests
;-------------------------------------------------------

Method = Service
UnknownIsBad = yes
Title = xyzServerName Service Check for Exchange 2000 Imap
Service = imap4svc
Computer = \xyzServerName
UserName = xyzUser
Password = xyzPassword
;-------------------------------------------------------

Regards
Alex
Tommy
Posts: 22
Joined: Mon Jul 01, 2002 6:00 pm

Post by Tommy »

That was it. Sorry to miss something simple.

The other issue is that the Comment Lines are not taking the ^M to break the line and create multiple comment lines.

Example:

DefaultComment = Comment1^MComment2^MComment3^MComment4^MComment5
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

H'm yes, you can use '^M' in the test's comment and cannot use '^M' in DefaultComment. It will be fixed in next version (I hope new version will be available in next week).

Regards
Alex
Tommy
Posts: 22
Joined: Mon Jul 01, 2002 6:00 pm

Post by Tommy »

Thanks Alex.

I have just copied the COMMENT line to each test definition.

Is there an appropriate place for me to upload files for other HostMonitor users to have? I can only seem to past the contents of the file into a new post on this Buletin Board.

These files will save other users time and make the program easy to deploy for new servers. Most of them are service tests that are standard items on W2K servers. It took me a couple hours to put together last night. My deployment time has been cut from 30 minutes to 2 for a "typical" server.

If you want to see an example I can email it to you first.

thanks again for this great program.

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

Post by KS-Soft »

Thank you for the help.
You can send zip files to our e-mail address line1@ks-soft.net. I will upload files on our server and send links back to you.
Or if you don't mind, I can create section on HostMonitor's download page (e.g. "3rd party tools") with your scripts and some link to your web site or mail.

Regards
Alex
Tommy
Posts: 22
Joined: Mon Jul 01, 2002 6:00 pm

Post by Tommy »

Sounds great. I will pretty up the comment sections of the files to answer basic questions and email them over to you - probably later tonight. I am on Eastern Standard Time.

Locked