Based on File System Capacity
AMPS provides the following If
module for taking action based on the file system capacity. AMPS loads this module by default:
Module Name | Does |
---|---|
| Checks whether the specified path on the filesystem meets the specified usage level. If so, allows execution to continue. If not, stops the action. |
Parameter | Description |
---|---|
| Specifies the filesystem path to monitor. The AMPS process must have sufficient permissions to check the disk usage for this path at the time the check runs. There is no default for this parameter. |
| The threshold to check, specified as a percentage. If the provided path has more space used than specified in this parameter, subsequent |
This module does not add any variables to the AMPS context.
For example, the following action will log a message in the AMPS log every minute when the file system becomes more than 90% full, and perform a full shutdown of AMPS if the file system is more than 98% full.
Last updated