File age test problem

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).
Post Reply
timn
Posts: 184
Joined: Thu Nov 20, 2003 9:57 am
Location: United States

File age test problem

Post by timn »

I'm having a problem with 'false positives' (i.e. false bad results)

First the basics: AHM v4.16 running on Win2K, RMA 1.11 running on Win2K

The test is supposed to alert when any file in the specified folder is older than 2 hours (120 minutes).

Sometimes the test 'fails' even though there are NO files in the specified folder. Any thoughts? Thx.

The test details:

Method = FileExists
;--- Common properties ---
RMAgent = HOST7
Title = File age in folder: MyFolder - HOST7
Comment = HOST7^MWarning: File age limit exceeded ^
10.33.23.2^MF:\Inetpub\ftproot\MyFolder8
RelatedURL =
ScheduleMode= Regular
Schedule =
Interval = 1200
Alerts = Do nothing
ReverseAlert= No
UnknownIsBad= Yes
UseCommonLog= Yes
PrivLogMode = Default
CommLogMode = Default
SyncCounters= Yes
SyncAlerts = No
DependsOn = list
MasterTest-Alive = 10.33.23.2 Master Connectivity - HOST7
;--- Test specific properties ---
File = F:\Inetpub\ftproot\MyFolder8\*.*
OkIfExists = No
UseMacros = No
MaxAge = 120
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

If you specify wildcards in the path, FileExists test works with 1st matched file/folder. In your case it means HostMonitor works with '..' (directory itself) when there are no files in the folder, so HM sets "bad" status when folder is empty for 120 min.
The test is supposed to alert when any file in the specified folder is older than 2 hours (120 minutes).
You have chosen wrong test method. Use Count Files instead.

Regards
Alex
timn
Posts: 184
Joined: Thu Nov 20, 2003 9:57 am
Location: United States

Post by timn »

:oops: Funny how things work once I've followed your advice... :oops:
Post Reply