Defining an alert for disk % full
This example shows using the Alert Configurator to run a script if disk space is more than 90% full for at least 30 seconds.
Note: If your process configuration
uses Disk-based Message
Queuing, then use an alert for 90% full disk space.
- On the Alert Configurator, click the New Append tool.
- In the Trigger pane, select "disk % full" from the Alert Type drop-down menu.
- Clear Delta to check the actual percentage of full disk space.
-
In
Source, specify the path
of the root directory to monitor after the drive letter
For example, path names should be in the form of: C:\cloverleaf\cis6.2\integratorOr, you can click the button to open the Select File System dialog box, where you select the drive. Click Apply and the selected drive displays in the Source field, where you can finish specifying the path.
- Click Apply.
- Set Source Count to All to know when the file system approaches capacity. This is the default.
- Set Comparing to > and specify 90 in the adjacent text box for the alert condition to trigger when the disk space is more than 90% full.
- Set Duration to N Seconds and specify 30 in the adjacent text box to have the alert trigger when disk space remains more than 90% full for 30 seconds.
-
Click
Apply.
The next alert triggers two actions:
- First, a shell script (UserCleanup, in this example) runs, notifying users to clean up the directories.
- Then, a message is sent to root at the specified trigger.
- In the Actions pane, select exec from the Alert Action drop-down menu. The pane reconfigures for command input.
- Specify the name of the script (UserCleanup) in the Command text box.
- Click Update.
- Click Apply.
- On the Alerts list of the Alert Configurator, click the alert configured, if necessary.
- Click the Append tool in the Actions pane.
- Select the exec alert action.
-
Specify in
Command:
mailx -s ’%A’ root < \dev\null (UNIX)This sends a message to root with the "disk % full" subject line and an empty message body.
- Click Update.
- Click Apply. The new alert configuration displays on the Alerts List.