OpenTP1 Version 7 Operation

[Contents][Index][Back][Next]

6.1.4 Resource manager monitor operations

Before using the resource manager monitor (RMM), program product TP1/Resource Manager Monitor must be installed.

Organization of this subsection
(1) Notes on creating commands for resource managers to be monitored

(1) Notes on creating commands for resource managers to be monitored

The user must create commands for resource managers to be monitored and define them in the RM-to-be-monitored definition. Following are the notes on creating these commands:

(a) Startup command

The startup command must be created so that the following conditions are satisfied:

While awaiting for the startup command to terminate, the RMM service assumes normal termination when the termination code is 0" or abnormal termination when the code is not 0.

If the startup command terminates normally but if system fails to obtain the process ID of the process to be monitored, the startup process will be unsuccessful. OpenTP1 checks the time until the startup command terminates; if the maximum check-time is exceeded, the startup process will also be unsuccessful.

(b) Termination command

The termination command must be created so that the following conditions are satisfied:

While awaiting for the termination command to complete, the RMM service assumes normal termination when the termination code is 0 or abnormal termination when the code is not 0.

If the termination command terminates normally but if any process to be monitored remains, the termination process will be unsuccessful. OpenTP1 checks the time until the termination command terminates; if the maximum check-time is exceeded, the termination process will also be unsuccessful.

(c) Forced termination command

The forced termination command must be created so that the following conditions are satisfied:

The forced termination command can be executed even when there are no processes to be monitored.

While awaiting for the forced termination command to complete, the RMM service assumes normal termination when the termination code is 0 or abnormal termination when the code is not 0.

If the forced termination command terminates normally but if any process to be monitored remains, the forced termination process will be unsuccessful. OpenTP1 checks the time until the forced termination command terminates; if the maximum check-time is exceeded, the forced termination process will also be unsuccessful.

(d) Process ID acquisition command
  1. Creation of process ID acquisition command
    The process ID acquisition command must be created so that the following conditions are satisfied:
    • The process ID of every process to be monitored is output to the standard output.
    • The process ID is output in the format shown in the following figure.

      Figure 6-1 Process ID output format

      [Figure]

    • One of the following conditions is reported to the RMM service by using termination code exit():
      0
      - The resource manager to be monitored is now working.
      1
      - The resource manager to be monitored is not normal.
      2
      - The resource manager to be monitored is not working.
    RMM provides rmmoraid as a model process ID acquisition command. This command has been created so that the following conditions are satisfied:
    • The process ID of every process to be monitored is output to the standard output.
    • The process ID is output in the format shown in Figure 6-1.
    • If the process name of a process is described in the command, its process ID is acquired by using /bin/ps.
    • The exit() termination code has the following meaning:
      0
      - All process IDs have been acquired.
      1
      - Not all process IDs have been acquired.
      2
      - No process IDs have been acquired.
  2. Restart of the resource manager to be monitored
    When the resource manager to be monitored has a facility that performs automatic full recovery at an error, the RMM service does not need to restart the resource manager. If an error occurs, the facility of the resource manager automatically performs full recovery. First output 0 as the standard output of the process ID acquisition command. This prohibits the RMM service from performing full recovery of the resource manager to be monitored.
    To perform full recovery using the facility of the resource manager to be monitored, satisfy the following conditions:
    • There is only one process to be monitored.
    • The termination code of exit() is 0 or 2.
    If the exit() process ID acquisition command terminates with a termination code of 0, the RMM service assumes it to be completion of the automatic full recovery of the resource manager to be monitored.
    The following figure shows the format of the standard output of the process ID acquisition command.

    Figure 6-2 Format of standard output of process ID acquisition command

    [Figure]

(e) Other commands