Old files check

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
User avatar
Stoltze
Posts: 174
Joined: Tue Feb 03, 2004 1:58 am
Location: Denmark

Old files check

Post by Stoltze »

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?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: Old files check

Post by KS-Soft Europe »

Stoltze wrote:But the tests sometimes reports bad, even though there aren't any old files. Typically when there is no file at all.
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?

Regards,
Max
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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.
What is "EDIIN"? File or folder?
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
User avatar
Stoltze
Posts: 174
Joined: Tue Feb 03, 2004 1:58 am
Location: Denmark

Post by Stoltze »

KS-Soft wrote:
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.
What is "EDIIN"? File or folder?
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.

Any ideas?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

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.
Sorry, could not reproduce the problem. Probably, there are some hidden files located in the folder? Could you verify that?

Regards,
Max
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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...

Regards
Alex
User avatar
Stoltze
Posts: 174
Joined: Tue Feb 03, 2004 1:58 am
Location: Denmark

Post by Stoltze »

KS-Soft Europe wrote:Probably, there are some hidden files located in the folder? Could you verify that?

Just verified. No hidden files
User avatar
Stoltze
Posts: 174
Joined: Tue Feb 03, 2004 1:58 am
Location: Denmark

Post by Stoltze »

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...
Hmm... Not sure I get this.. :-?

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?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
User avatar
Stoltze
Posts: 174
Joined: Tue Feb 03, 2004 1:58 am
Location: Denmark

Post by Stoltze »

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
Didn't see that option under Count Files.. :)

Changed my test to use this method instead..

Thnx for your suggestion Alex.. :)
User avatar
Stoltze
Posts: 174
Joined: Tue Feb 03, 2004 1:58 am
Location: Denmark

Post by Stoltze »

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..

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...?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We cannot reproduce problem.
2 files in the directory, timestamp 13:23
At 13:24:44 the tests goes bad. Only these 2 files are present..
What timespamp have you checked? Creation date or Modification date? What do you see in reply field of the test? 2?

Regards
Alex
User avatar
Stoltze
Posts: 174
Joined: Tue Feb 03, 2004 1:58 am
Location: Denmark

Post by Stoltze »

KS-Soft wrote:We cannot reproduce problem.
2 files in the directory, timestamp 13:23
At 13:24:44 the tests goes bad. Only these 2 files are present..
What timestamp have you checked? Creation date or Modification date? What do you see in reply field of the test? 2?
Have just doublechecked. Modification and creation timestamp is the same.
Replyfield is eg 4, if there's 4 files in the directory
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
User avatar
Stoltze
Posts: 174
Joined: Tue Feb 03, 2004 1:58 am
Location: Denmark

Post by Stoltze »

Hi,

Sorry about the late respons... :-?

But the problem seems to have disappered somehow..

Now we're running 7.11, without problems.. Close the issue... :-)
Post Reply