Start of Content Area

Function documentation Select the General File Properties that Are to Be Monitored  Locate the document in its SAP Library structure

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.

Background documentation

Technically, in this case, you are monitoring the age of the last inode change. This has a different meaning depending on the platform you are using:

        Under UNIX, you are monitoring the age of the (re)creation time point or the last change to the owner of or authorizations for the file. A change to the file content is not monitored.

        Under Microsoft Windows, you are monitoring the period since the file was last changed.

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 falls below 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.

Note

If you want to have an alert generated both if the file size exceeds and falls below threshold values, you need to create two log file templates for the same file and set a threshold value in each template.

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.

Note

If you create a log file template, take account of the information in Structure of the Log File Templates for Monitoring Files, 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 Time Periods for the File Monitoring

        Defining the Node Properties for File Monitoring

Example

See Example Log File Templates

This graphic is explained in the accompanying text Infrastructure of the SAP NetWeaver Management Agents Start Page

 

End of Content Area