View previous topic :: View next topic |
Author |
Message |
Tommy
Joined: 01 Jul 2002 Posts: 22
|
Posted: Mon Sep 23, 2002 8:42 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12807 Location: USA
|
Posted: Mon Sep 23, 2002 10:17 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
Tommy
Joined: 01 Jul 2002 Posts: 22
|
Posted: Tue Sep 24, 2002 6:07 am Post subject: |
|
|
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 |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12807 Location: USA
|
Posted: Tue Sep 24, 2002 10:47 am Post subject: |
|
|
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 |
|
Back to top |
|
|
Tommy
Joined: 01 Jul 2002 Posts: 22
|
Posted: Tue Sep 24, 2002 10:52 am Post subject: |
|
|
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 |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12807 Location: USA
|
Posted: Tue Sep 24, 2002 1:22 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
Tommy
Joined: 01 Jul 2002 Posts: 22
|
Posted: Tue Sep 24, 2002 1:27 pm Post subject: |
|
|
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.
|
|
Back to top |
|
|
|