File Modifications Test
File freshness is often an early warning signal. A log file that has stopped growing may mean that an application has stopped writing. A rapidly growing error file may indicate a fault. A missing file may point to a failed process, incorrect path, permission issue, or cleanup job. The File Modifications Test helps you track such files continuously.
This test checks whether each configured file exists, reports its current size, detects whether it has changed, and shows how long it has been since the last modification. Using this test, administrators can find out:
-
Whether an important file is missing
-
How large the file currently is
-
Whether the file is grown since the last measurement period
-
Whether the file is recently modified
-
How long it has been since the file was last updated
-
Whether the file should be treated as too old or stale
By tracking availability, size, growth, and modification time, this test helps administrators to also spot file-level issues before they turn into application or service outages.
This test is disabled by default. To enable the test, go to the enable / disable tests page using the menu sequence : Agents -> Tests -> Enable/Disable, pick the desired Component type, set Performance as the Test type, choose the test from the disabled tests list, and click on the < button to move the test to the ENABLED TESTS list. Finally, click the Update button.
Target of the test : A Windows/Linux Host
Agent deploying the test : An internal agent
Outputs of the test : One set of results for every configured file name.
| Parameter | Description |
|---|---|
|
Test Period |
How often should the test be executed. |
|
Host |
The host for which the test is to be configured. |
|
File Names |
Provide a comma-separated list of the full path of the files that are to be monitored. For instance, on a Unix host, your specification can be: /opt/usr/alert.log,opt/tmp/error.log. On a Windows host, your specification can be: C:\eGurkha\agent\logs\agentout.log,C:\eGurkha\agent\logs\agenterr.log. Also, if you want to monitor files with names that include a date, then your FileName specification should indicate the date format used for naming the files. For instance, to monitor all files that are named error, but which end with dates that are of the format DDMMYY, your FileName specification should be: C:\logs\errorDDMMYY. As per this specification, files such as error21082015, error22082015, and error24082015 will be monitored. Your FileName specification can include file names with dates and without dates – for eg., C:\eGurkha\agent\logs\agentout.log,C:\eGurkha\agent\logs\agenterr.log,C:\logs\errorDDMMYY,C:\errorlogs\MMDDYYYY_error If you wish to monitor the latest file in a folder that consists of too many files with the same extension, say for example .log, then your FileName specification should be : C:\Temp\*.log. Note: Wildcard characters are not supported while entering the full path of the files in the FileName text box. So, provide the exact path of the files in the same. |
|
Max Age In Seconds |
The maximum allowed time since the file was last modified. If the file has not changed within this period, it is reported as old. The default value is 0. |
| Measurement | Description | Measurement Unit | Interpretation | ||||||
|---|---|---|---|---|---|---|---|---|---|
|
Is file available? |
Indicates whether/not this file is currently available. |
|
The numeric values that correspond to these measure values are as follows:
Note: By default, this test reports the Measure Values listed in the table above to indicate whether/not the file is currently available. In the graph of this measure however, the same is represented using the numeric equivalents only. |
||||||
|
Current file size |
Indicates the current size of this file. |
KB |
This measure reports the size of a file only if the Is file available measure returns a value of 1 for that file - i.e., only when the file is available. |
||||||
|
File growth during last measure period |
Indicates the amount by which the size of this file has increased since the last measurement period. |
KB |
A consistent increase in the value of this measure indicates that the file size is increasing steadily. |
||||||
|
Has file been modified? |
Indicates whether/not this file was modified. |
|
The numeric values that correspond to these measure values are as follows:
Note: By default, this test reports the Measure Values listed in the table above to indicate whether/not a file has been modified. In the graph of this measure however, the same is represented using the numeric equivalents only. |
||||||
|
Time since file has been last modified |
Indicates the last time since this file has been modified. |
Seconds |
|
||||||
|
Is the file very old? |
Indicates whether/not the file is old. |
|
If the Time since file has been last modified measure is greater than the value of Max Age In Seconds parameter, then this file is considered as old. The numeric values that correspond to these measure values are as follows:
Note: By default, this test reports the Measure Values listed in the table above to indicate whether this file is old. In the graph of this measure however, the same is represented using the numeric equivalents only. |