|
View previous topic :: View next topic |
Author |
Message |
fspiper
Joined: 02 Mar 2011 Posts: 3
|
Posted: Wed Mar 02, 2011 1:28 pm Post subject: after upgrade to 8.84, VbScript tests failing intermittently |
|
|
We just upgraded Host Monitor from 6.82 to 8.84 and we're experiencing a new problem which we did not see in the older version. The test, a VbScript, fails to run and does not appear to ever get called. The Host Monitor log shows the result
"Unknown"
immediately followed by
"Error: Cannot create temp file. The file exists."
The Host Monitor PC is running Windows XP SP 3; it has 1Gb RAM and about 35Gb free disk space.
We run a few dozen copies of the same VbScript test against remote servers every ten minutes around the clock. This means that occasionally the test is run on more than one server simultaneously; this was not a problem with the old version of Host Monitor.
The problem is occurring six or eight times a day. The problem is not associated with specific servers; it jumps around randomly.
All tests have the same parameters except for Params, Test name, Comment, and Alert profile.
When the problem occurs, the VbScript does not appear to ever get called. (The VbScript has its own log, and nothing is written to that log.)
The test description is as follows. (I obscured our customer's info by replacing it with "xxxcustomerxxinfoxxx".)
--------------
Method = ShellScript
;--- Common properties ---
DestFolder = Root\Monitor\
Title = xxxcustomerxxinfoxxx
Comment = xxxcustomerxxinfoxxxd
RelatedURL =
ScheduleMode= Regular
Schedule =
Interval = 600
Alerts = xxxcustomerxxinfoxxx
ReverseAlert= No
UnknownIsBad= Yes
WarningIsBad= Yes
UseCommonLog= Yes
PrivLogMode = Default
CommLogMode = Full
;--- Test specific properties ---
Script = lastcall1file||Windows
Params = xxxcustomerxxinfoxxx xxxcustomerxxIpAddressesxxx
Timeout = 200
UseMacros = No
--------------
This excerpt from the Host Monitor HTML log file shows one occurrence of the problem.
------------
</tr> <tr>
<td bgcolor="#D6D6D6" nowrap valign="top" align="center"> <font color=#008080><!--KSIM--><!--KSFD-02032011091158-->3/2/2011 9:11:58 AM<!--KSIM--></font> </td>
<td bgcolor="#D6D6D6" nowrap valign="top" align="left"> <font color=#008080><!--KSIM-->xxxcustomerxxnamexxx call processing<!--TI1690--><!--KSIM--></font> </td>
<td bgcolor="#D6D6D6" nowrap valign="top" align="left"> <font color=#008080><!--KSIM-->Unknown<!--KSIM--></font> </td>
<td bgcolor="#D6D6D6" nowrap valign="top" align="center"> <font color=#008080><!--KSIM-->Error: Cannot create temp file. The file exists.<!--KSIM--></font> </td>
<td bgcolor="#D6D6D6" nowrap valign="top" align="left"> <font color=#008080><!--KSIM-->Shell Script<!--KSIM--></font> </td>
------------
After checking the forum for similar occurrences, I confirmed that the userID that Host Monitor runs under has access to C:\temp and C:\Windows\temp, and also confirmed that the shortcut used to start Host Monitor has the correct directory for "Start in:".
If there is any solution, or anything else I can check, please let me know ASAP.
Thanks for your help. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Wed Mar 02, 2011 1:49 pm Post subject: |
|
|
Never seen such error...
Theoretically it may appear when HostMonitor cannot create any unique file name within specified pattern (e.g. HostMonitor runs for a while, creates temp files for scripts but unable to remove these files).
Could you check Temp folder? Is there a lot of files with name started with "tmp-"?
Note: If HostMonitor is started under some user account, you should check Temp folder specified for this user account (probably something like c:\Documents and Settings\UserName\Local Settings\Temp)
If HostMonitor started as service under local system account, Temp folder probably C:\Windows\TEMP
Regards
Alex |
|
Back to top |
|
|
fspiper
Joined: 02 Mar 2011 Posts: 3
|
Posted: Wed Mar 02, 2011 3:09 pm Post subject: |
|
|
Thanks very much for the reply.
Quote: | Is there a lot of files with name started with "tmp-"? | Yes indeed. In the folder c:\Documents and Settings\<username>\Local Settings\Temp, we found and deleted over 3000 temp files (mostly tmp-nnn-n*) going back to 2007 (the first year we used Host Monitor). I am hoping that deleting all those files will help Host Monitor function. We have not seen the error since we deleted the files; we'll monitor the server and post again tomorrow.
Many of the temp files contained copies of the VBscript we run. Is there a way to force Host Monitor to delete these temp files when it's finished with them, or not to create the files in the first place? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Wed Mar 02, 2011 3:35 pm Post subject: |
|
|
HostMonitor should removes temp files after Shell Script test execution. Why these files were not removed? Hard to say
Quote: | or not to create the files in the first place |
H'm, you think HostMonitor creates these files just for fun? It is necessary for Script test execution.
Regards
Alex |
|
Back to top |
|
|
fspiper
Joined: 02 Mar 2011 Posts: 3
|
Posted: Fri Mar 04, 2011 2:52 pm Post subject: |
|
|
Quote: | H'm, you think HostMonitor creates these files just for fun? |
No, not at all. Currently our test definitions point to a shell script loaded into Script Manager. I was thinking of changing the tests to point to an external file as described in the manual: Quote: | [...]if you want to store script in external file, command line may look like "c:\HostMonitor4\myscripts\MyPowerfulScript %Params%" |
If I make this change, will Host Monitor still create a temp file to contain the script?
Thanks again for your help. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Fri Mar 04, 2011 3:07 pm Post subject: |
|
|
Quote: | If I make this change, will Host Monitor still create a temp file to contain the script? |
Depends on software version and some options...
Normally HostMonitor version 8 will not create any temp files in such case.
Regards
Alex |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|