Directory property monitor

The Directory property monitor can test the file count, directory sizes, relative size changes and ages of files in a directory. The test can be limited in scope to files matched by a wildcard.

  • System type: Windows
  • Category: Others

NOTE   Only monitor specific settings are documented here. See Standard monitor settings.

Monitor specific properties

  • Share - Name of share relative to the asset. File specification is required. Accepts wildcard formatting options. For example, \temp\*.?xt. See below for additional formatting options.
  • Ok if no files - If checked, the option makes the monitor pass the test if there are no matching files. The test passes without checking the subsequent tests.
  • Logon account - To override the asset default account, select an account from the list.
  • Max files - Enter the maximum file count in directory for test to pass. Leave blank to skip this test.
  • Min files - Enter the minimum file count in directory for test to pass. Leave blank to skip this test.
  • Max age - Enter the maximum file age of the oldest file in the directory in hours and minutes. For example, HH:MM. Leave blank to skip this test.
  • Max age newest - Enter the maximum file age of the newest file in the directory. Leave blank toskip this test.
  • Rel. threshold - The relative threshold test enables you to test for relative changes between the current test and the previous test. Select an option that will make the test fail if it evaluates to true.
  • Abs. threshold - The absolute threshold test can be used to test the directory size against an absolute threshold in MB. The threshold, together with the operation, should evaluate to true for the test to pass.

Path field formatting variables

The following formatting variables can be included when specifying the path of a share. For example, the format \sharename\*%[system.date_year]-%[system.date_month]-%[system.date_day_of_month].log matches the filenames: 2013-01-15.log, 2013-02-10.log, 2013-03-06.log.

  • %[system.time_hour] - Hour in 24-hour format (00 -23)
  • %[system.time_hour2]- Hour in 12-hour format (01 -12)
  • %[system.time_minute] - Minute as decimal number (00 -59)
  • %[system.time_second] - Second as decimal number (00 – 59)
  • %[system.date_year] - Year with century, as decimal number
  • %[system.date_year2] - Year without century, as decimal number
  • %[system.date_month] - Month as decimal number (01 – 12)
  • %[system.date_day_of_month] - Day of month as decimal number (01 – 31)
  • %[system.date_day_of_year] - Day of year as decimal number (001 – 366)
  • %[system.date_weekday] - Weekday as decimal number (0 – 6; Sunday is 0)