Old files check
Old files check
Hi,
I'm trying to set up a test:
Method = FileExists
;--- Common properties ---
;DestFolder = Root\VSRISEDI02\
RMAgent = VS-DOMAIN
Title = VSRISEDI02 - EDI incoming
Comment =
RelatedURL =
ScheduleMode= Regular
Schedule =
Interval = 300
Alerts = Do nothing
ReverseAlert= No
UnknownIsBad= Yes
WarningIsBad= Yes
UseCommonLog= Yes
PrivLogMode = Default
CommLogMode = Default
SyncCounters= Yes
SyncAlerts = No
DependsOn = list
MasterTest-Alive = VSRISEDI02
;--- Test specific properties ---
File = \\vsrisedi02\c$\Kodak-EDI\EDIIN
OkIfExists = No
UseMacros = No
MaxAge = 10
I want to check for files, older than 10minutes. The folder contains a queue of files. Once the file has been handled by the software, it will be moved to another folder.
But a file must not have been in the folder for more than 10minutes.
But the tests sometimes reports bad, even though there aren't any old files. Typically when there is no file at all.
Have I set this up the correct way?
I'm trying to set up a test:
Method = FileExists
;--- Common properties ---
;DestFolder = Root\VSRISEDI02\
RMAgent = VS-DOMAIN
Title = VSRISEDI02 - EDI incoming
Comment =
RelatedURL =
ScheduleMode= Regular
Schedule =
Interval = 300
Alerts = Do nothing
ReverseAlert= No
UnknownIsBad= Yes
WarningIsBad= Yes
UseCommonLog= Yes
PrivLogMode = Default
CommLogMode = Default
SyncCounters= Yes
SyncAlerts = No
DependsOn = list
MasterTest-Alive = VSRISEDI02
;--- Test specific properties ---
File = \\vsrisedi02\c$\Kodak-EDI\EDIIN
OkIfExists = No
UseMacros = No
MaxAge = 10
I want to check for files, older than 10minutes. The folder contains a queue of files. Once the file has been handled by the software, it will be moved to another folder.
But a file must not have been in the folder for more than 10minutes.
But the tests sometimes reports bad, even though there aren't any old files. Typically when there is no file at all.
Have I set this up the correct way?
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Re: Old files check
Your settings look correct. I cannot reproduce such a problem. Probably, the software moves the file just after HostMonitor found the file exists and reported bad status? Could you set up a test to check files older than, for unstance, 11 minutes?Stoltze wrote:But the tests sometimes reports bad, even though there aren't any old files. Typically when there is no file at all.
Regards,
Max
What is "EDIIN"? File or folder?File = \\vsrisedi02\c$\Kodak-EDI\EDIIN
But the tests sometimes reports bad, even though there aren't any old files. Typically when there is no file at all.
If you specify folder name, HostMonitor will check parameters of the folder. E.g. if folder was not modified for 10 min, status of the test will be changed to bad.
Regards
Alex
EDIIN is a folder. Tried changing it to EDIIN\*.*, but then I still get status Bad. Nothing in reply field. And by manual check, no files in the folder.KS-Soft wrote:What is "EDIIN"? File or folder?File = \\vsrisedi02\c$\Kodak-EDI\EDIIN
But the tests sometimes reports bad, even though there aren't any old files. Typically when there is no file at all.
Any ideas?
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Sorry, could not reproduce the problem. Probably, there are some hidden files located in the folder? Could you verify that?Stoltze wrote:EDIIN is a folder. Tried changing it to EDIIN\*.*, but then I still get status Bad. Nothing in reply field. And by manual check, no files in the folder.
Regards,
Max
Hmm... Not sure I get this..KS-Soft wrote:As I said "E.g. if folder was not modified for 10 min, status of the test will be changed to bad". I think everything works correctly...

I have a folder. In this there will be created several hundreds of files every day. A program move the files, when it has processed them. But, if for some reason, the program doesn't process them, they will stay there for a while.
If this testtype isn't the correct one to check for this, was is then? During the day, the folder can easily be empty for more than 10-15 minutes, but that's not an error.. Only if files existing in this folder gets older than 10minutes, it's a problem..
Any ideas?
Not exactly. This test method was designed to check specific file or folder.
If you use wildcards, HostMonitor will check first matched file only.
For your needs I would recommend to use Count Files test method.
- Folder: \\vsrisedi02\c$\Kodak-EDI\EDIIN
- File name mask: *.*
- Count files older than 10 min
- Alert when folder contains more than 0 files
Regards
Alex
If you use wildcards, HostMonitor will check first matched file only.
For your needs I would recommend to use Count Files test method.
- Folder: \\vsrisedi02\c$\Kodak-EDI\EDIIN
- File name mask: *.*
- Count files older than 10 min
- Alert when folder contains more than 0 files
Regards
Alex
Didn't see that option under Count Files..KS-Soft wrote:For your needs I would recommend to use Count Files test method.
- Folder: \\vsrisedi02\c$\Kodak-EDI\EDIIN
- File name mask: *.*
- Count files older than 10 min
- Alert when folder contains more than 0 files

Changed my test to use this method instead..
Thnx for your suggestion Alex..

Update on this one..
I still have problems..
To me it seems like it gives an error, if there's a file in the directory, regardsless of the age of the file..
2 files in the directory, timestamp 13:23
At 13:24:44 the tests goes bad. Only these 2 files are present..
¨
Any ideas what goes wrong...?
I still have problems..
To me it seems like it gives an error, if there's a file in the directory, regardsless of the age of the file..
2 files in the directory, timestamp 13:23
At 13:24:44 the tests goes bad. Only these 2 files are present..
Code: Select all
Method = CountFiles
;--- Common properties ---
;DestFolder = Root\VSRISEDI02\
RMAgent = VS-DOMAIN
Title = VSRISEDI02 - EDI incoming
Comment =
RelatedURL =
ScheduleMode= Regular
Schedule =
Interval = 300
Alerts = Do nothing
ReverseAlert= No
UnknownIsBad= Yes
WarningIsBad= Yes
UseCommonLog= Yes
PrivLogMode = Default
CommLogMode = Default
SyncCounters= Yes
SyncAlerts = No
DependsOn = list
MasterTest-Alive = VSRISEDI02
;--- Test specific properties ---
Folder = \\vsrisedi02\c$\Kodak-EDI\EDIIN
Mask = *.edi
SubFolders = No
UseMacros = No
CountMode = OlderThan
CountValue = 10
FilesLimit = 0
Any ideas what goes wrong...?
Have just doublechecked. Modification and creation timestamp is the same.KS-Soft wrote:We cannot reproduce problem.What timestamp have you checked? Creation date or Modification date? What do you see in reply field of the test? 2?2 files in the directory, timestamp 13:23
At 13:24:44 the tests goes bad. Only these 2 files are present..
Replyfield is eg 4, if there's 4 files in the directory
We cannot reproduce the problem
Could you please provice more information?
- What version of the agent (RMA) do you use?
- What Windows is installed on system where RMA is running? Service Pack?
- What OS is installed on target system (\\vsrisedi02)? Service Pack? What version of network client do you use?
- HostMonitor version?
Regards
Alex

Could you please provice more information?
- What version of the agent (RMA) do you use?
- What Windows is installed on system where RMA is running? Service Pack?
- What OS is installed on target system (\\vsrisedi02)? Service Pack? What version of network client do you use?
- HostMonitor version?
Regards
Alex