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
File age test problem
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.
Regards
Alex
You have chosen wrong test method. Use Count Files instead.The test is supposed to alert when any file in the specified folder is older than 2 hours (120 minutes).
Regards
Alex