Adding Folder Monitoring Template
Besides monitoring files on the systems, you can also monitor the folders.You can track changes in folders based on the folder size, the number of files in a folder etc. Again, like file monitors, you can be notified if a specific change occurs. For instance, you might want to be notified if the folder size increases beyond a defined limit, if some files in a folder are missing etc. Configure meaningful templates in OpManager Plus and apply them to devices on which you want the folders monitored. Monitor the following parameters on folders:
- Folder size: Watch for an increase or decrease in the file size
- Existence of a file: Check the availability of a file in the specified directory (may have been moved, renamed, or deleted)
- Folder Modification: Keep track of changes (add/remove/rename) on the files or sub-folders with in a folder. However, sub-folder level changes are not monitored.
- File Name: Watch files in a folder by their name.
- File Size/Age: Check the last modified file or all files in a folder for file size and age.
- File count: Keep track of the number of files within a folder.
Steps to configure a file monitoring template
- Go to Settings > Monitoring > Configuration > Monitors > Folders
- Click New Template. Add New Template window opens.
- Template Name: Configure a name for the template.
- Folder Path: Specify the path in which OpManager Plus should locate the file. You can either provide the local directory (C:) or UNC share path (\servernameSharedDirectory).
- Polling Interval: Configure the interval at which OpManager Plus should monitor the file.
- Description: Provide a brief, meaningful description for the template and click OK.
Configuring Thresholds for Folder Monitors
Configure the monitoring criteria for Folder/File monitoring conditions based on which you want to be notified:
- Folder Existence: OpManager Plus looks for the folder in the specified path and alerts based on the conditions specified. You can configure to be notified if the folder does not exist in the path specified, or be notified if the folder exists , or you can choose not to monitor.
- Folder Size: Configure OpManager Plus to alert you if the folder size goes over, or comes below a specified size. Select the relevant threshold for alerting. You can configure the size in terms of bytes, KB, MB, or GB. Configure the rearm accordingly to reset the alarm.
- Folder Modification: Select Alert if modified check box to receive alerts when files/sub-folders are added/deleted/renamed in the specified folder.
- File Filter:By default all the files in the specified folder are monitored. Deselect All files check box and enter the file name or extension (*.pdf,*.txt) of the files alone you want to monitor. You can enter multiple values separated by comma, but no blank space is allowed. You can enter the filename in the following formats:
- Full file name with extension ‘stdout.doc,stdlog.txt’
- File name with wild characters ‘*out’ or ‘std*’. Files containing the same prefix or suffix name with same/different extension will be monitored
- File name in date format ‘2011062200001.txt’. Enter the file name in a static format $YYYY$MM$DD*.txt or $YYYY $DD$MM*.txt
- File Name Contains: OpManager Plus looks for the files in the specified folder and alerts based on the conditions specified. You can configure to be notified if the folder does not contain any file in the specified name , or be notified if the folder contains files in the specified name, or you can choose not to monitor.
- File Size/Age: OpManager Plus looks either last modified file or all files for file size and age. If the threshold condition for either file size or file age is violated, an alarm is raised. Configure the relevant threshold and ream conditions.
- File Count: You can monitor the number of files specified in the File Filter and be alerted if the count changes, or of it violates a count threshold. Configure the rearm accordingly to reset the alarm.
Configuring Alerts for Folder Monitors
Configure the following alerting options:
- Severity: Choose the severity that you would like to assign to this alert.
- Consecutive Times: Specify how many time the threshold can be violated to generate the alert
- Alarm Message Format: Configure the alarm message. You can include the alarm variables by appending $ to the variable name.
Associating the Folder monitor to devices
Having creating a template with the alert criteria, you can now associate the template to the devices.
- Go to Settings > Monitoring > Configuration > Monitors > Folders
- Click Associate
- Selecte the required Template from the drop-down
- Select the devices for which you want to apply this template and move them to the right.
- Click on Associate button at the bottom of the column to associate the template to all the selected devices.
The monitor is added to the device and OpManager Plus alerts based on the alert conditions configured.