Select the Files that Are to Be Monitored
Use
You can use CCMS agents to monitor files, for example, for their size, their existence, their last change date, or their content. You define all of this in Log File-Templates, along with information about which files are to be monitored. You do this by setting appropriate parameters in the log file template. These parameters are described below.
A separate subtree is created in the alert monitor for every file that fulfills this naming condition in the log file template. If the condition does not apply to any files, a subtree is also created. However, an alert is only generated in this case if you have set the parameter CHECK_EXISTENCE_ONLY(explained below).
Features
You can use the following parameters of the log file template to determine which files are to be monitored:
|
DIRECTORY="<directory>" (required parameter) Directory that contains the files that you want to monitor |
|
FILENAME="<file name>" (required parameter) Name of the files that are to be monitored; the file name can contain wildcards You can set the maximum number of files that are to be monitored for each file name pattern with the parameter MONITOR_NEWEST_FILES (explained below). |
|
IGNORE_FILE="<file name>" (Default: not set) Name of the files that are not to be monitored - even if the log file meets the FILENAME condition; this file name can also contain wildcards |
|
CHECK_EXISTENCE_ONLY=[0,1] (Default = 0) You can use this parameter to define that only the existence of the monitored file is to be monitored (1). In this case, all parameters for monitoring search patterns (more information: Select the File Content that Is to Be Monitored) are ignored. |
|
MONITOR_NEWEST_FILES=<number> (Default = 20) If you specify a file name pattern for the FILENAME parameter that multiple files match, this parameter specifies the maximum number of files that are simultaneously monitored. If more files fulfill the condition, exactly the specified number of files are monitored. The files with the newest change times are those monitored. |
|
ENCODING=UTF-16 (Default: not set) As of Patch 2007/5, you can monitor files that were created in UTF-16 format on Microsoft Windows platforms. To do so, you require a Unicode agent. To monitor files that were created in UTF-16 format, you need to set the keyword ENCODING=UTF-16 in the log file template. |
Activities
If you want to use file monitoring with CCMS agents, create one or more log file templates. Specify this log file template in SAPCCMSR.INI: Configuration File for CCMS Agents.
Example
Refer to Example Log File Templates
CCMS Agents start page, Monitoring Files with CCMS Agents