Selecting the General File Properties that Are to Be Monitored

Use

You can use SAP NetWeaver management 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, including details about which general file properties are to be monitored. You do this by setting appropriate parameters in the log file template. These parameters are described below.

This section describes these file properties, which you can monitor with agents. These are as follows:

  • You can monitor the file size. Depending on which parameter you set, an alert is generated if the size of the file exceeds or falls below the defined size.

  • You can monitor the time of the last change time for the file (without alert generation).

  • You can monitor the period since the last change to the file; in this case, the system generates an alert if the age of the file exceeds the threshold value that you have set.

Features

You can use the following parameters of the log file template to determine which file properties are to be monitored:

MONITOR_FILESIZE_KB=<Size>

(Default: Log File Size is not created)

You can use this optional parameter to monitor the file size in a node called Log File Size, and to have an alert generated if the size exceeds a defined threshold value:

  • If the value set for the file size is zero, the size of the file in KB is monitored in the node Log File Size.

  • If the value set for the file size is larger than zero, the size of the file in KB is monitored in the node Log File Size; an alert is also generated if the file size in kilobytes exceeds the threshold value set in the parameter.

MONITOR_FILESIZE_BELOW_KB=<Size>

(Default: Log File Size is not created)

You can use this optional parameter to monitor the file size in a node called Log File Size, and to have an alert generated if the size exceeds a defined threshold value:

  • If the value set for the file size is zero, the size of the file in KB is monitored in the node Log File Size.

    If the value set for the file size is larger than zero, the size of the file in KB is monitored in the node Log File Size; an alert is also generated if the file size in kilobytes falls below the value set.

MONITOR_LAST_FILE_MODIF=[0,1]

(Default = 0)

You can define here whether a separate performance node File Time Stamp is to be created, which then monitors the last change time point of the file ( 1), or whether the last change time point is not to be displayed ( 0).

MONITOR_FILE_AGE_MINUTES=<Age>

(Default: File Age is not created)

You can use this optional parameter to monitor the time that has passed since the file was last changed (note the background information above), and have an alert generated if the threshold value is exceeded:

  • If the value set for the age is zero, the time since the last change of the file is monitored in the File Age node.

  • If the value set for the age is greater than zero, the time since the last change of the file is monitored in the File Age node; an alert is also generated if the period in minutes exceeds the threshold value set in the parameter.

Activities

If you want to use file monitoring with SAP NetWeaver management agents, create one or more log file templates. Specify this log file template in Configuration File SAPCCMSR.INI.

Example

More information: Example Log File Templates