Defining the Node Properties for File
Monitoring
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.
You can also specify the node properties for the file monitoring subtrees in these log file templates. These parameters have no effect on which files are monitored, or which alerts are generated when.
The following options are available:
● You can influence the naming of the MTE names and classes. Use this function, for example, if you want to create your own rule-based monitors, in which only particular monitored files are to be displayed.
●
You can assign
Methods to
the node in the log file template.

More information about the nodes for file monitoring in the alert monitor: Log File Monitoring Monitor.
You can use the following log file template parameters to determine the properties of the nodes in the alert monitor generated by file monitoring:
MONITOR_CONTEXT="<context name>" (Default: Files_of_<host name>) You can set
the name of the monitoring context in which the log file agent writes the
results of the monitoring here. Regardless of whether or not you set this
parameter, the MTE class of the monitoring context is always CcmsFileMonitoring. By
specifying this MTE class, you can define a rule-based monitor that contains
the subtrees for all monitored log files (more information:
In this way you can, for example, store monitored files for different components in different contexts, to further group the results. Like the PREFIX parameter (see below), this function allows you to differentiate between the different monitored files, but, unlike PREFIX, provides an additional hierarchical level to group the monitored files. Use this parameter only if you require this additional hierarchical level. |
MTE_CLASS=<MTE class> (Default = CcmsFile<file name>) You can use this parameter to set the MTE class of the monitoring object that the system creates for the monitored file. The associated monitoring attributes have the MTE class <MTE class of the monitoring object>.<attribute abbreviation>.
Note that the default value for the MTE class contains the name of the monitored file. |
PREFIX=<character string> (Optional parameter) You can use this parameter to define a prefix for the MTE name that is then displayed in the alert monitor. This allows you to differentiate between different files with different paths but the same name. |
AUTOREACTION_CEN="<method name>" (Default: no method) You can use this to set the central auto-reaction method assigned to the nodes Lines found for Pattern and File Existence (if they exist). You can use
this to directly assign a
This ensures quicker processing of the alert; since the assignment of the central auto-reaction method is otherwise performed by the program SAPMSSYT, which only runs once an hour, by default. In extreme cases, it is even possible that with traditional method assignment, the auto-reaction method would not even be executed for the first alerts of the relevant node. |
AUTOREACTION_LOC="<method name>" (Default: no method) You can use
this parameter to set the local auto-reaction method assigned to the nodes
Lines found for Pattern and File Existence (if they exist). (For
the traditional assignment of the method, see
Like the parameter AUTOREACTION_CEN, the purpose of this parameter is to speed up the assignment of the auto-reaction method to the node that you have just created. This ensures quicker processing of the corresponding alerts or the execution of the auto-reaction method. |
ANALYZEMETHOD="<method name>" (Default: no method) You can set the analysis method assigned to the alert here. |
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.

If you create a log file template, take account of the information in Structure of the Log File Template, which contains a short summary of all possible parameters. Other parameters of log file templates are described by topic in the following sections:
● Select the Files that Are to Be Monitored
● Select the File Content that Is to Be Monitored
● Select the General File Properties that Are to Be Monitored
● Select the Time Periods for the File Monitoring
See Example Log File Templates
CCMS Agents start
page, Monitoring Files with
CCMS Agents