4.11 FileSizeSum

Use this Knowledge Script to monitor the total size of two files. This script raises an event if the total size of the two files exceeds the threshold you set.

4.11.1 Resource Objects

Windows 2003 Server or later

4.11.2 Default Schedule

The default schedule for this script is Every 5 minutes.

4.11.3 Setting Parameter Values

Set the following parameters as needed:

Description

How to Set It

Event Notification

Create event if the sum of the size of both files is above the threshold?

Select Yes to raise an event if the total size of both files exceeds the threshold you set. The default is Yes.

Severity - Sum size above threshold

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the size of both files exceeds the threshold. The default is 15 (yellow event indicator).

Create event if any file is missing?

Select Yes to raise an event if either of the specified files is missing. The default is Yes.

Severity - File missing

Set the event severity level, from 1 to 40, to indicate the importance of an event if either of the specified files is missing. The default is 15 (yellow event indicator).

Severity - Job failure

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the FileSizeSum job fails unexpectedly. The default is 5 (red event indicator).

Data Collection

Collect file size sum data?

Select Yes to collect data for charts and reports. If enabled, data collection returns the total size of the two files you specify. The default is unselected.

Monitoring

Select first file...

Click Browse [...] to select the first of the two files to monitor.

Select second file...

Click Browse [...] to select the second of the two files to monitor.

Sum size threshold

Specify the maximum file size allowed before an event is raised. The default is 2.

NOTE:Select units for the file size in the File size scale parameter.

File size scale

Select the unit of file size. The choices are:

  • bytes

  • kilobytes

  • megabytes

  • gigabytes

  • terabytes

The default is megabytes.