Navigation:  Remote Monitoring and Management > Proactive Monitoring > Windows Server and Workstation Monitoring > Daily Safety Checks >

File Size Check

Previous pageReturn to chapter overviewNext page

 

When files and folders grow unbounded in size, this can often be an early indicator of a problem on a system, for example a Microsoft SQL Server log file can easily grow to fill the entire disk. Similarly, if a file or folder is below an expected size then this can also indicate a problem, for example if an application has not written to its log file because it failed to run.

 

The File Size Check allows you to monitor the size of a group of files, folders (and subfolders) generating an alert when the size of the group is greater or less than the specified threshold.

 

Multiple files, folders and subfolders can be monitored per check, and multiple checks may be created on the same device for both 24x7 (critical files and folders) and Daily Safety Checks (non-essential files and folders).

 

Check configuration

The check is configured via the Dashboard or Advanced Monitoring Agent:

 

Dashboard

Log on to the Dashboard, select the target device in the north pane of the Servers or Windows tab then choose the Checks tab.

 

Add

From the Add Check drop-down go to Add DSC Check, File Size Check

Configure the Check*

 

Edit

Select the required File Size Check in the south panel then of the Checks tab then from the Checks drop-down Edit Check, configure as required.

 

Delete

Select the required File Size Check in the south panel of the Checks tab then from the Checks drop-down Delete.

Enter the password of the user you have logged on to the Dashboard under to confirm deletion.


Link Check to On-Check Failure Automated Task


We have included the ability to run a Automated Tasks when a Check fails to, for example automatically dealing with cause of the failure, and with Dashboard 6.21 we have simplified its configuration process by incorporating the option to assign an On-Check Failure Automated Task when adding or editing a Check in the Checks tab for the Dashboard. Further information on this process is available in the section: Link Check to On-Check Failure Automated Task

 

Agent

After logging into the Advanced Monitoring Agent on the target machine go to Settings in the Daily Safety Checks section, Configure checks, File Size Check

 

Add

Click Add

Configure the Check*

 

Edit

Select the required File Size Check click Edit then configure as required.

 

Delete

Select the required File Size Check and click Delete

 

Whichever management option is selected click OK to apply changes.

 

Dashboard: Add or Edit Check Behaviour

Pre-Agent 10

When a Check is added or edited from the Dashboard the new settings are downloaded to the Agent the next time it communicates back to the Dashboard and applied when all of the Checks of that frequency type next run.

From Agent 10

Any changes to the Check actioned from the Dashboard are applied immediately with the Check automatically re-run when the settings are received. This ensures that the users can almost instantaneously see the effects of any Check addition or modification; with the time this individual Check ran reflected in its Date/Time column.

Please be aware that due to this improvement, the Date/Time may differ between Checks running at the same frequency.

 

 

*Settings

Name

The first stage is to give the check a meaningful name for identification on the Dashboard and in alerts.

 

Alert When

This threshold determines when an alert is generated. The options here are for less than [<] or greater than [>] the specified value. The specified value can be expressed as Bytes, Kilobytes (KBytes), Megabytes (MBytes) or Gigabytes (GBytes).

 

File Inclusion Filter

To select the files and folders for inclusion simply use the browse button [] to navigate to the required file or folder. If you wish to monitor the subfolders please enable the Include Subfolders option.

 

Please note that you can enter a wildcard for either inclusion or exclusion, but a File Inclusion Filter must be tied to a specific location. For example, a File Inclusion Filter of C:\WINDOWS\system32\*.txt will include all text files in the folder C:\WINDOWS\system32, whereas just entering *.txt, will return an empty result as a search location is not specified.

 

File Exclusion Filter                                                                                                                                  

There may be instances where you wish to exclude specific files and subfolders in a monitored folder and the File Exclusion Filters can be applied to exclude both explicit files and subfolders by navigating to them via the browse button [].

 

As mentioned above a wildcard may be entered, but unlike the File Inclusion Filter this does not have to be tied to a location. F or example using *.txt will exclude all text files discovered in the monitored folders.

 

 

_img17

 

 

Microsoft SQL Server Example

The above image illustrates setting up a File Size Check to monitor the combined size of all Microsoft SQL Server instances by adding File Inclusion filters for all data (*.MDF) and log (*.LDF) files in the Microsoft SQL Server data directory. File Exclusion Filters for temporary databases' data and log files have also been added.

Notes - Floating Point Numbers

To avoid integer conversion cut-offs, we would suggest entering a value without any floating point numbers.

 

For example if entering 1.2 Gbytes due to integer conversion cut-offs this would be interpreted in the check as 1 Gbyte exactly, rather than 1.2 Gbytes. As such to monitor 1.2 Gbytes (1228.8 Mbytes) we would suggest configuring the check to use either 1228 Mbytes or 1229 Mbytes.

 

 

File Size Check - Permissions Problems

The File Size Check queries local and networked locations (using the full UNC Path) and may fail where the Agent is unable to determine the size of a file. If the file exists, it is inaccessible, for example, the Agent does not have sufficient privileges or permissions to query the file or its parent folder.

 

For troubleshooting, the Agent reports both the Check failure and the name and location of the problem file.

 

To alleviate the issue, you can either add the problem file or folder to the File Exclusion Filter or change the permissions of the Agent, file or location to ensure it is reachable by the Agent.

 

Running Test Check in the Agent console can provide an indication of permissions problems. For example, the Check passes (running under the permissions of the user initiating the Test) but fails when it runs as scheduled (using the permissions the Agent service is running under).

 

Where the account the Agent service is running under does not have sufficient permissions or privileges to query the selected location it may be necessary to change the Advanced Monitoring Agent Log On account to allow access.