NSM7 TEMP folder full of log files (250 000 !)
|
Logged in as: Guest
|
|
Users viewing this topic:
none
|
|
Login | |
|
NSM7 TEMP folder full of log files (250 000 !) - 7.Apr.2009 2:55:10 AM
|
|
|
pjgfi
Posts: 57
Joined: 7.Jan.2008
Status: offline
|
Hello, I make a dedicated thread because I'd like to get an answer to this particular problem, hoping it's linked to my service-not-starting problem. The TEMP folder in Program Files\GFI\Network Server Monitor 7\ is full of log files although logs are disabled. The folder takes minutes to open, there are more than 250 000 files, that all say "TRUE". May I delete those file and prevent GFI from creating them. Thanks. PJ
< Message edited by pjgfi -- 7.Apr.2009 2:59:32 AM >
|
|
|
|
RE: NSM7 TEMP folder full of log files (250 000 !) - 20.Apr.2009 3:24:23 AM
|
|
|
pjgfi
Posts: 57
Joined: 7.Jan.2008
Status: offline
|
It looks like it did the trick ! But I'd like to know how to disable this log because it generates about 600 files a day, all saying "TRUE" ! Thanks. PJ
|
|
|
|
RE: NSM7 TEMP folder full of log files (250 000 !) - 6.May2009 5:34:07 AM
|
|
|
Saam
Posts: 7
Joined: 29.Apr.2009
Status: offline
|
dear Pj, i also had the same problem about that temp folder, but it wasn't in NSM. i faced it in Mail Archiver but i think this issue is kinda common in gfi eve though it's so rare to face it... well, i solved it but i donno if the same way works in NSM or not... we have NSM but i haven't faced it yet. what i did was, i renamed the original Temp folder as a TempOrigin and i created a new folder in the same path and i named it Temp. gfi mail archiver is set to deal with a folder called Temp, so once i renamed the new folder to Temp, it starts archiving and the size of Temp changed a little bit which is normal and i got back to the Old Temp folder which i renamed it as a TempOrigin and i deleted the contents. problem solved :) but why it grows for some unknown reason?? well, you can try the same way in NSM... good luck
|
|
|
|
RE: NSM7 TEMP folder full of log files (250 000 !) - 6.May2009 7:30:08 AM
|
|
|
pjgfi
Posts: 57
Joined: 7.Jan.2008
Status: offline
|
Thanks for your message ! In fact, I just moved files from TEMP folder to another one (just in case) but even this took ages ! I had no problem since. Now, I just checked and I already have 10700 files from 20/04/09 !! GFI Team, TELL ME HOW TO STOP THIS LOGGING !
|
|
|
|
RE: NSM7 TEMP folder full of log files (250 000 !) - 7.May2009 3:40:05 AM
|
|
|
2dS
Posts: 20
Joined: 30.Apr.2009
Status: offline
|
Pjgfi, could you give me a sample of how do the files from your Temp folder look like?
|
|
|
|
RE: NSM7 TEMP folder full of log files (250 000 !) - 7.May2009 6:09:24 AM
|
|
|
2dS
Posts: 20
Joined: 30.Apr.2009
Status: offline
|
Pjgfi, those are the files in which are written the results of the vbscripts executed by the NSM checks. Usually those files are erased just after the vbscript execution ended, except the case when the result file already exists or if the temp vbscript file cannot be opened or when the result file deletion failed.
< Message edited by 2dS -- 7.May2009 6:14:15 AM >
|
|
|
|
RE: NSM7 TEMP folder full of log files (250 000 !) - 7.May2009 7:20:21 AM
|
|
|
pjgfi
Posts: 57
Joined: 7.Jan.2008
Status: offline
|
Thanks for the information. Any idea on how to get rid of those ? Clear temp folder ? I'll have a look at the checks if this script is of any use... EDIT : I should find some "Generic VB Script" check, right ? Can't find any !
< Message edited by pjgfi -- 7.May2009 7:28:22 AM >
|
|
|
|
RE: NSM7 TEMP folder full of log files (250 000 !) - 7.May2009 8:02:52 AM
|
|
|
2dS
Posts: 20
Joined: 30.Apr.2009
Status: offline
|
Yes the Generic VB Script are the checks using vbscripts, but there are other predefined checks that are using vbscripts behind the scenes. I don't think that clearing the Temp folder would not help, because new files will be generated by NSM when vbscripts checks are executed. The solution would be to see which of the situations from above is happening. Do you have debug logging enabled for NSM?
< Message edited by 2dS -- 22.May2009 3:08:41 AM >
|
|
|
|
RE: NSM7 TEMP folder full of log files (250 000 !) - 22.May2009 2:31:47 AM
|
|
|
2dS
Posts: 20
Joined: 30.Apr.2009
Status: offline
|
Pjgfi, yes those are the keys you should alter to enable the debug logging. You will have to set the Debug to 1 and the DebugLevel to 3 and then restart the NSM services. After the restart NSM will start logging debugging information in the DebugLogs folder from the installation directory. You can always disable the debug logging by setting de Debug and DebugLevel to 0 and restart he NSM services.
|
|
|
|
RE: NSM7 TEMP folder full of log files (250 000 !) - 22.May2009 2:40:28 AM
|
|
|
pjgfi
Posts: 57
Joined: 7.Jan.2008
Status: offline
|
Thanks for the information, it's working. Any idea where I should look for those errors ?
|
|
|
|
RE: NSM7 TEMP folder full of log files (250 000 !) - 22.May2009 2:57:34 AM
|
|
|
2dS
Posts: 20
Joined: 30.Apr.2009
Status: offline
|
I think you should look into the CThreadCheckVbScript logs from the DebugLogs\NSMEngine files, and maybe you could post here on the forum a complete log for a check using a vbscript. It should be in one of the files mentioned before and it starts with a lot of “=” characters and it ends when a new check is starting, so again a log of equal signs. Please be careful to remove any sensitive data before doing this.
|
|
|
|
RE: NSM7 TEMP folder full of log files (250 000 !) - 22.May2009 3:17:56 AM
|
|
|
pjgfi
Posts: 57
Joined: 7.Jan.2008
Status: offline
|
Thanks, I did not even notice the NSMEEngine folder ! Here's a log where I could find a temp file with the same ID. It looks like EVERY VBscript check fails ! "info ","CThreadCheckVbScript000","= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =" "info ","CThreadCheckVbScript000","Starting check execution" "info ","CThreadCheckVbScript000","ID: 73 | Name: xxx - CPU Usage CPU0 max 95" "info ","CThreadCheckVbScript000","Running the 'Run' function..." "info ","CThreadCheckVbScript000","Creating instance of CLSID_VBScript..." "info ","CThreadCheckVbScript000","Initializing script objects..." "info ","CThreadCheckVbScript000","size of:664 " "info ","CThreadCheckVbScript000","Creating mutex for script editing..." "info ","CThreadCheckVbScript000","Creating temp script file..." "info ","CThreadCheckVbScript000","after strncpy" "info ","CThreadCheckVbScript000","after wsprintf" "info ","CThreadCheckVbScript000","after lstrcat" "info ","CThreadCheckVbScript000","before code clear" "info ","CThreadCheckVbScript000","Opening temp script file 'c:\program files\gfi\network server monitor 7\Scripts\Os.vbs'" "info ","CThreadCheckVbScript000","Temp script file written. Releasing mutex..." "info ","CThreadCheckVbScript000","Running the script..." "info ","CThreadCheckVbScript000","Script execution finished" "info ","CThreadCheckVbScript000","Script parsed successfully" "info ","CThreadCheckVbScript000","Script processed. Maybe OnScriptError was called, implicating an error" "info ","CThreadCheckVbScript000","Uknown message inserted" "info ","CThreadCheckVbScript000","First line in result file is:1 " "info ","CThreadCheckVbScript000","VALUE Inserted" "info ","CThreadCheckVbScript000","First line in result file is:CPU usage is below maximum; usage=[1%] " "info ","CThreadCheckVbScript000","Result Inserted" "info ","CThreadCheckVbScript000","Releasing objects..." "info ","CThreadCheckVbScript000","All objects released successfully!" "info ","CThreadCheckVbScript000","Releasing interfaces..." "info ","CThreadCheckVbScript000",">> CMyFrameWnd::TerminateScEngine" "error ","CThreadCheckVbScript000"," CMyFrameWnd::TerminateScEngine -InterruptScriptThread returned An argument was invalid." "info ","CThreadCheckVbScript000","<< CMyFrameWnd::TerminateScEngine" "info ","CThreadCheckVbScript000","All interfaces released successfully!" "info ","CThreadCheckVbScript000","END: Run" "info ","CThreadCheckVbScript000","VBScript was called, result: 1, explanation: CPU usage is below maximum; usage=[1%], value 1" "info ","CThreadCheckVbScript000","Ended check execution" "info ","CThreadCheckVbScript000","<< CThreadCheckVbScript::OnFunc1"
|
|
|
|
RE: NSM7 TEMP folder full of log files (250 000 !) - 22.May2009 3:40:50 AM
|
|
|
2dS
Posts: 20
Joined: 30.Apr.2009
Status: offline
|
Pjgfi, from the log you’ve posted I can see that the check is running properly. Could you please tell me which build of NSM are you using? You can find this information in the main configuration window GFI Network Server Monitor -> General -> Version Information.
|
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|