Hitachi

JP1 Version 12 JP1/Performance Management User's Guide


1.2.1 Starting services on monitoring managers and monitoring agents

Organization of this subsection

(1) Manually starting services on monitoring managers and monitoring agents

Use the jpcspm start command to manually start services on the monitoring manager or the monitoring agent.

You can use the jpcspm start command to start services only on the host to which you have logged on. You cannot start the Performance Management program services on a remote host. When the health check function is enabled, the health check agent starts when PFM - Manager starts.

  1. Log on to the host where you want to start services.

    Log on to the monitoring manager to start the PFM - Manager services. Log on to the monitoring agent to start the services of PFM-Base and either PFM - Agent or PFM - RM.

  2. Execute the jpcspm start command.

    Specify the service key indicating the service that you want to start, and execute the jpcspm start command. Service keys that the jpcspm start command can specify are as follows:

    • Manager or mgr: PFM - Manager services on the host

    • AH or act: Action Handler services on the host

    For details on the service keys used to start specific PFM - Agent or PFM - RM services on the host, see the appendix describing service naming rules in the manual JP1/Performance Management Planning and Configuration Guide.

    For example, to start all of the PFM - Manager, PFM - Base, PFM - Agent, and PFM - RM services on the local host, specify as follows:

    jpcspm start -key jp1pc

    Specify the instance name to start, separately instance by instance, a PFM - Agent or PFM - RM that runs in the instance environment.

    For example, to start the service that has the instance name oracleA in the PFM - Agent for Oracle, specify as follows:

    jpcspm start -key Oracle -inst oracleA

(2) Enabling or disabling the automatic service start feature for monitoring managers and monitoring agents (Windows)

With the default installation settings, most services start automatically when the system starts. Note that, however, some services of PFM - Agent for Service Response cannot be set to start automatically. For details, see the chapter that describes starting and stopping services in the manual JP1/Performance Management - Agent Option for Service Response.

If automatic startup processing is affected by high load and times out when the system starts, the Performance Management services might fail to start. In this case, block automatic startup and execute the jpcspm start command to start the services.

To disable and enable the automatic start feature:

  1. Log on to the monitoring manager or monitoring agent.

  2. Choose Services in Windows.

  3. In the Services dialog box, choose the Performance Management program service and click Properties from the pull-down menu.

  4. In the service properties dialog box, specify Startup type.

    To block automatic startup: Manual

    To reset automatic startup: Automatic

  5. Click the OK button.

    The service properties dialog box closes.

For details about Performance Management program services, see the explanation of the correspondence between the Performance Management service name and the Windows service name in the Appendix in the JP1/Performance Management Planning and Configuration Guide.

Important

Performance Management services are usually controlled from a system account. Changing the settings might cause service operation errors.

Do not modify the account settings of a service unless recommended to do so by this manual.

All the PFM - Base, PFM - Manager, and PFM - Web Console services are operated by using a system account.

For details on PFM - Agent or PFM - RM, see the respective PFM - Agent or PFM - RM manual.

(3) Enabling or disabling the automatic service start feature for monitoring managers and monitoring agents (UNIX)

With the default installation settings, services are not set to start automatically when the system starts.

To set services other than PFM - Web Console to start automatically at system startup, store in the installation folder for Performance Management the script file for starting services automatically (jpc_start). To disable the automatic service start feature, delete the jpc_start file.

Supplemental information:

Important
  • In the following environment you cannot configure the automatic service stop feature independently. If you enable automatic service stop, you must also enable automatic service start. Similarly, you disable automatic service start, you must also disable automatic service stop.

    - CentOS 7 or later

    - Linux 7 or later

    - Oracle Linux 7 or later

    - SUSE Linux 12 or later

  • When the automatic service start and stop features are enabled in the following environment and the jpcspm start command is used to start services, the services will not stop automatically when the OS shuts down.

    - CentOS 7 or later

    - Linux 7 or later

    - Oracle Linux 7 or later

    - SUSE Linux 12 or later

    If you want the services to stop automatically, use the systemctl command to restart all Performance Management services. Alternatively, use the jpcspm stop command to manually stop the services that were started by the jpcspm start command.

    The following example uses the systemctl command to restart the services:

    > systemctl stop jp1_pc

    > systemctl start jp1_pc

  • In the following environment where only the automatic service start feature is enabled, shutting down the OS causes a message to be output to syslog. This message says that the Performance Management services could not stop successfully. This message cannot be suppressed. If you enable the automatic service stop feature as well, this message is no longer output.

    - CentOS 7 or later

    - Linux 7 or later

    - Oracle Linux 7 or later

    - SUSE Linux 12 or later

To set automatic start of services:

  1. Log on to the host that you want to set for the automatic start of services.

  2. Execute the following command to move to the /opt/jp1pc directory:

    cd /opt/jp1pc
  3. Set the script file for starting services automatically for the Performance Management system.

    • Name of the .model file of the service automatic start script: jpc_start.model

    • Name of the script file for starting services automatically: jpc_start

    Copy the .model file of the service automatic start script to the script file for starting services automatically to add execution permission. Execute the command as follows:

    cp -p jpc_start.model jpc_start
    chmod 555 jpc_start
  4. Register the automatic start script file for AIX (in AIX only).

    To execute the automatic service start script file for the Performance Management system specified in step 3, Performance Management provides the automatic start script file for AIX. Register this automatic start script file to the AIX settings file.

    Note

    Assume that automatic start has been enabled in your environment and that you disable automatic start and then want to go back to enabling it again. In this case, if the automatic start script file for AIX is already registered in the AIX settings file in your environment, you do not need to register it again.

    • Name of the automatic start script file: /etc/rc.jp1_pc

    • Name of the settings file: /etc/inittab

    1. Use the mkitab command to register the /etc/rc.jp1_pc file to the /etc/inittab settings file.

     mkitab "jp1pc:2:wait:/etc/rc.jp1_pc >/dev/console 2>&1"

    2. Use the lsitab command to confirm that the /etc/rc.jp1_pc file is registered to the /etc/inittab settings file.

     lsitab jp1pc
     jp1pc:2:wait:/etc/rc.jp1_pc >/dev/console 2>&1

    Registering the file by the mkitab command places the file to the bottommost line of the /etc/inittab settings file. If a program linked by execution of an action is already registered in the /etc/inittab settings file, edit the /etc/inittab settings file so that the reference to the automatic start script file appears below it in the file.

    Also, the line registered in the /etc/inittab settings file is not deleted upon uninstallation.

    To cancel the registration at uninstallation:

    1. Use the rmitab command to cancel the registration of the /etc/rc.jp1_pc file from the /etc/inittab settings file.

     rmitab jp1pc

    2. Use the lsitab command to confirm that the /etc/rc.jp1_pc file is not registered to the /etc/inittab settings file.

     lsitab jp1pc

To disable automatic start of services, perform the procedure below.

Important

Assume that automatic start has been enabled in your environment and that you disable automatic start and then want to go back to enabling it again. In this case, you have to carry out the automatic service start setup procedure.

  1. Delete the jpc_start file that was stored when the automatic service start feature was set.

  2. If you have enabled automatic service stop, disable it.

    In the following environment only, disable automatic service stop by following the procedure described in 1.3.1(3) Enabling or disabling the automatic service stop feature for monitoring managers and monitoring agents (UNIX).

    • CentOS 7 or later

    • Linux 7 or later

    • Oracle Linux 7 or later

    • SUSE Linux 12 or later