How to use Monitor to monitor for the size of a file.

Article:HOWTO31144  |  Created: 2010-08-04  |  Updated: 2012-02-21  |  Article URL
Article Type
How To

  1. Right click on the folder you want to add your new policy to and select New > Monitor Policy (Agent-Based)

  2. Go to your new policy and give it a name

  3. On the Rules tab click the blue plus icon

  4. Click the New icon and select “Metric"

  5. Give your new rule a name and select a category for this rule

  6. Click the yellow wheel icon to create a new Metric

  7. Click “Select Metric”

  8. Click the New icon and select ‘Command’

  9. Give the metric a name, description, polling interval as desired.

  10. Select “Command line” under “Use” and type the following line in the command:

for %I in (path\ do @echo %~zI

(make sure you have the complete path and file name – In parenthesis)

  1. Add a “Return value column” amount of ‘0’

  2. Click OK twice

  3. Leave the Statistics at “none and change the condition to your custom type.

  4. Add the “Value” you want to measure for and click OK.

  5. Configure the Repeat as desired

  6. Configure any Actions you would like

    1. Note: You can configure Actions on the rule and/or the policy.  If you want the rule to trigger an alert or action, configure it from this screen.
  7. Click OK

  8. Ensure your new rule is selected and click OK

  9. Configure the Detection tab as desired or leave it blank

  10. Configure the Action tab as desired

  11. At the bottom of the window, select the target(s) you would like your policy to apply to

  12. Save Changes

Once your agents have downloaded a new configuration, the Monitor Agent will start monitoring the requested file. 


Article URL

Terms of use for this information are found in Legal Notices