Hitachi

JP1 Version 12 JP1/Automatic Job Management System 3 Linkage Guide


10.5.1 Checking the root jobnets that are affected when an agent host stops

This section describes the template for checking root jobnets that are affected when an agent host stops.

If you execute the response action of this suggestion template, the window is changed automatically to a JP1/IM2 window that displays the root jobnets affected when the agent host on which JP1/AJS3 - Agent is installed stops. If an agent host stops, you can quickly identify the scope of job executions that will be affected in JP1/IM2 and can take countermeasures for the jobs that are scheduled to be run. This can prevent the affected scope from expanding.

Cautionary notes
  • If the JP1 user who is logged in to JP1/IM2 does not have permissions to view root jobnets, they cannot check detailed information about the affected root jobnets in the Related Nodes tab of JP1/AJS3 - Agent. If you use this suggestion template, set up the JP1 resource group so that the JP1 user who takes countermeasures in JP1/IM2 can view root jobnets.

  • Use this suggestion template on the assumption that the user handles the impact by stoppage of the agent host on which JP1/AJS3 - Agent is installed. You cannot use this suggestion template in a case where the manager host on which JP1/AJS3 - Manager is installed has stopped.

Organization of this subsection

(1) Prerequisite conditions

Before using the template for checking root jobnets that are affected when an agent host stops, make sure that the following prerequisite conditions are met:

  1. The version of JP1/AJS3 - Manager is 12-10 or later.

  2. The host on which JP1/AJS3 - Agent is installed is monitored by using the health check function of JP1/PFM.

  3. The versions of JP1/IM2 and JP1/PFM - Manager are 12-50 or later.

  4. JP1/IM2 is able to obtain system configuration information from JP1/AJS3 and JP1/PFM.

For details about the settings that are necessary for linkage between JP1/IM2 and JP1/AJS3, see 10.3 Setup for linking JP1/IM2.

For details about the settings that allow linkage between JP1/IM2 and JP1/PFM, see the JP1/Performance Management User's Guide. For details about the health check function of JP1/PFM, see the JP1/Performance Management Planning and Configuration Guide.

(2) Suggestion template

The following shows the file name of the suggestion template. The following also provides an overview and specification example of the suggestion template.

File name
For the Japanese version of JP1/IM2:

imdd_suggestion_ajs_check_failed_agent_jobnet_ja.conf

For the English version of JP1/IM2:

imdd_suggestion_ajs_check_failed_agent_jobnet_en.conf

For details about the location where suggestion templates are stored, see the JP1/Integrated Management 2 - Manager Administration Guide.

Overview

The following table provides an overview of this suggestion template.

No.

Item

Overview

1

Node on which suggestion information is shown

Node showing the JP1/PFM monitoring agents of the Management Applications category

2

JP1 user permission under which the suggestion information is shown

JP1_AJS_User or higher and JP1_PFM_Operator or higher

3

Suggestion activation criteria

  • The host that stopped is used as an execution agent of jobs

  • JP1/PFM issues a JP1 event indicating the Host Not Available status of the target host, and the status of that JP1 event in JP1/IM2 is Unprocessed

  • Information acquisition of the host on which JP1/PFM has stopped is successful

  • At the time of condition judgment, the target host has not recovered from the Host Not Available status

4

Response action

Go to the JP1/AJS3 - Agent node, and display the relationship between the stopped host and the root jobnet on the Related node tab

The suggestion activation criteria "JP1/PFM issues a JP1 event indicating the Host Not Available status of the target host, and the status of that JP1 event in JP1/IM2 is Unprocessed" of this suggestion template evaluates whether JP1 events issued by JP1/PFM are registered in JP1/IM2 as Severe events that satisfy the following conditions.

No.

JP1 event attributes

Value

1

Event ID

4860

2

Message

The character string (hcsstatus=Host Not Available) is included.

3

Event level

Error

4

Response status

Unprocessed

Cautionary notes
  • If JP1/IM2 is used to change the Event levels or Severe event definitions of JP1 events

    If the following JP1/IM2 functions are used, the response action is not suggested by this suggestion template when the agent host is stopped.

    - Function for changing severity levels

    - Function for defining severe events

    - Function for releasing severe events

    - Function for deleting severe events

    Customize the suggestion activation criteria "JP1/PFM issues a JP1 event indicating the Host Not Available status of the target host, and the status of that JP1 event in JP1/IM2 is Unprocessed" to match the Event levels or Severe event definitions of the monitored JP1 events.

  • If the Event levels of JP1 events issued by JP1/PFM are changed

    If the Event level of the JP1 events issued when the health check status is "Host Not Available" is changed from the default (Error), the response action is not suggested by this suggestion template when the agent host is stopped. Customize the suggestion activation criteria "JP1/PFM issues a JP1 event indicating the Host Not Available status of the target host, and the status of that JP1 event in JP1/IM2 is Unprocessed" to match the Event levels of the monitored JP1 events.

An example of coding
{
  "meta":{ 
    "version":"1" 
  },
  "suggestions":[
    {
      "suggestionId":"jp1_ajs_check_failed_agent_jobnet",
      "label":"Check the root jobnet affected by the stopped host",
      "node":"_CATEGORY_m.*_OBJECT_JP1PFM-A([^1478]|[1478].*%5B([^%]*%5D|(.|..|[^A]..|.[^l].|..[^l]|.{4,})%40))",
      "permissions":[
        ["JP1_PFM_Admin","JP1_AJS_Guest"],
        ["JP1_PFM_Admin","JP1_AJS_Operator"],
        ["JP1_PFM_Admin","JP1_AJS_Editor"],
        ["JP1_PFM_Admin","JP1_AJS_Manager"],
        ["JP1_PFM_Admin","JP1_AJS_Admin"],
        ["JP1_PFM_Operator","JP1_AJS_Guest"],
        ["JP1_PFM_Operator","JP1_AJS_Operator"],
        ["JP1_PFM_Operator","JP1_AJS_Editor"],
        ["JP1_PFM_Operator","JP1_AJS_Manager"],
        ["JP1_PFM_Operator","JP1_AJS_Admin"]
      ],
      "cases":[
        [
          {
            "type":"struct",
            "key":{
              "idType":"target",
              "sid":"${../../_OBJECT_JP1AJSAGT/<managerAgent:target:sid:}"
            },
            "ope":"EXIST",
            "val":true,
            "description":"The host that stopped is used as an execution agent of jobs"
          },
          {
            "type":"event",
            "key":{
              "statusFilter":[30],
              "sid":"${.:tree:sid:}",
              "B.ID":["00004860"],
              "REGEX_B.MESSAGE":"KAVL15022-E.*hcsstatus=Host Not Available",
              "E.@JP1IM_DEALT":[0]
            },
            "ope":"EXIST",
            "val":true,
            "description":"JP1/PFM issues a JP1 event indicating the Host Not Available status of the target host, and the status of that JP1 event in JP1/IM2 is Unprocessed"
          },
          {
            "type":"plugin",
            "key":{
              "sid":"${.:tree:sid:}",
              "method":"jp1pfmSuggestionGetAgentAllInformation",
              "args":{}
            },
            "ope":"NOTIN",
            "val":"",
            "description":"Information acquisition of the host on which JP1/PFM has stopped is successful"
          },
          {
            "type":"plugin",
            "key":{
              "sid":"${.:tree:sid:}",
              "method":"jp1pfmSuggestionGetAgentInformation",
              "args":{
                "allInformation":"${:plugin[1]::}",
                "member":"healthDetail"
              }
            },
            "ope":"IN",
            "val":"Host Not Available",
            "description":"At the time of condition judgment, the target host has not recovered from the Host Not Available status"
          }
        ]
      ],
      "action":{
        "type":"jump",
        "params":{
          "url":"index?tab=relation&sid=${../../..:tree:sid:URLENC}%2F%5FCATEGORY%5FmanagementApplications%2F%5FOBJECT%5FJP1AJSAGT&view=tree&eou=1"
        },
        "description":"Go to the JP1/AJS3 - Agent node, and display the relationship between the stopped host and the root jobnet on the Related node tab"
      }
    }
  ]
}

For details about each item in the suggestion template, see the description of the suggestion definition file in the manual JP1/Integrated Management 2 - Manager Command, Definition File and API Reference.

(3) Procedure for applying the template

The following shows the procedure for applying the suggestion template to JP1/IM2:

  1. Copy the suggestion template to any folder of your choice on the JP1/IM2 manager host.

  2. On the JP1/IM2 manager host, run the jddupdatesuggestion command in which the path of the folder to which the suggestion template was copied is specified as an argument.

(4) Procedure for customizing the template

In this suggestion template, you can change JP1/PFM to another product that monitors stoppage of an agent host. In this case, however, the mechanism of agent host stoppage detection follows the specifications of the new monitoring product. If you change JP1/PFM to another monitoring product, change the settings of the following items in the suggestion template according to the new monitoring product:

In addition, change the following variables so that the path is a relative path starting from the IM management node on which the suggestion is shown.

No.

Item

Description

Variable

1

Node of the Destination JP1/AJS3 - Manager

Indicates the JP1/AJS3 - Manager node that is connected with a relation to managerAgent and the JP1/AJS3 - Agent node of the host that stopped. Specify a relative path starting from the IM management node on which the suggestion is shown.

${../../_OBJECT_JP1AJSAGT/<managerAgent:target:sid:}

2

Object root of the host that stopped

Indicates the node indicating the Object root of the host that stopped.

Specify a relative path starting from the IM management node on which the suggestion is shown.

${../../..:tree:sid:URLENC}

The following shows the procedure for customizing the suggestion template:

  1. Copy the suggestion template to any folder of your choice on the JP1/IM2 manager host.

  2. Rename the suggestion template you have copied.

    Rename the copied suggestion template to imdd_suggestion_X.conf (X: a name of your choice).

  3. Use a text editor to open the suggestion template that you have copied, and then edit the settings in the template.

  4. On the JP1/IM2 manager host, run the jddupdatesuggestion command in which the path of the folder to which the suggestion template was copied is specified as an argument.

Cautionary note

Save the suggestion template in UTF-8 encoding without BOM.