1.19.3 Setup When Using JP1/IM - Agent as an agent
- Organization of this subsection
(1) Changing the settings of JP1/IM agent management base
(a) Common way to setup
■ To edit the configuration files (for Windows)
Configuration file is located in the following directories:
|
OS |
Storage destination |
|---|---|
|
Windows |
Manager-path\conf\imdd\plugin\jp1pccs\ Manager-path\conf\imddimagent\ |
|
Linux |
/etc/opt/JP1imm/conf/imdd/plugin/jp1pccs/ /etc/opt/JP1imm/conf/imdd/imagent/ |
There are two ways to change configuration file:
-
The way to use integrated operation viewer
-
The way to Login the host and Setup
For configuration file that can be edited when integrated operation viewer is used, see the notes of the definition file for JP1/IM - Manager in List of definition files in Chapter 2. Definition Files in the JP1/Integrated Management 3 - Manager Command, Definition File and API Reference. If you want to Login and Setup the host, all configuration files can be edited.
The following are the steps for setting:
- How to use integrated operation viewer
-
Download configuration file from integrated operation viewer.
If you add File, it does not need to be downloaded.
-
Edit the downloaded File.
-
Use integrated operation viewer to upload the edited File.
Setup is automatically reflected when uploaded.
- How to Login and Setup the Hosts
-
Login to the Integration Manager host.
-
Stop JP1/IM - Manager servicing.
For details about how to stop the service, see 3.2 Stopping JP1/IM - Manager in the JP1/Integrated Management 3 - Manager Administration Guide.
-
To edit the configuration file
-
Start the service.
For details about how to start the service, see 3.1 Starting JP1/IM - Manager in the JP1/Integrated Management 3 - Manager Administration Guide.
(b) Change settings of JP1/IM agent management base (for Windows)
The following describes how to change setup of JP1/IM agent management base (imbase,imbaseproxy).
■ Change configuration file of JP1/IM agent management base
JP1/IM agent management base's configuration file are imbase configuration file (jpc_imbase.json) and imbaseproxy configuration file (.json).
For configuration file editing procedure, see 1.19.3(1)(a) Common way to setup.
■ Changing JP1/IM agent management base ports
Perform the following steps:
-
Stop JP1/IM - Manager.
-
Change the listen port number of JP1/IM agent management base.
The listen port number is set to JP1/IM agent management base's imbase configuration file (jpc_imbase.json) and imbaseproxy configuration file (jpc_imbaseproxy.json) port member. Change this to the new port number.
For details on imbase configuration file and imbaseproxy configuration file, see the description of the appropriate file in Chapter 2. Definition Files in the JP1/Integrated Management 3 - Manager Command, Definition File and API Reference.
-
Starts JP1/IM - Manager.
If the listen Port number of the JP1/IM agent management base is changed in an environment that is already in operation, the destination port number of the JP1/IM agent control base must also be changed.
■ Setup the certificate
To encrypt communication between JP1/IM3-Manager and JP1/IM3-Agent, perform the following steps:
-
Stop JP1/IM - Manager.
-
Change Server certificate and keying File for JP1/IM agent management base.
The listen port number is set to a member of the cert_file or key_file of imbase shared configuration file (jjpc_imbasecommon.json).
Updates Setup Value of cert_file or key_file, or File that you set itself.
For details of imbase shared configuration file, see the explanation of appropriate file in Chapter 2. Definition Files in the JP1/Integrated Management 3 - Manager Command, Definition File and API Reference.
-
Starts JP1/IM - Manager.
■ Setup event-forwarding relay function (optional)
If you use event-forwarding relay function, JP1/IM - Manager must be 13-01 or later.
The following describes how to configure JP1/IM - Manager to enable event-forwarding relay function.
-
Stop JP1/IM - Manager servicing.
For a cluster configuration, stop the service from the cluster software.
-
Open imbase configuration file (jpc_imbase.json) and set the jp1base_forward_send items.
-
When JP1/IM - Manager 13-10 or later is newly installed
The jp1base_forward_send items are listed in imbase configuration file, but because they are commented like "//jp1base_forward_send", remove the leading "//".
-
Upgrading from a version earlier than JP1/IM - Manager 13-10
Imbase configuration file refers to imbase configuration file model file, because the jp1base_forward_send items are not listed. When writing, remove the leading "//".
-
-
Set port below the jp1base_forward_send items in imbase configuration file.
Specifies the port for event-forwarding for JP1/Base that reside together.
If you specify a service name, set the service name and TCP in services file.
-
Start JP1/IM - Manager servicing.
For a cluster configuration, start the service from the cluster software.
To disable the event forwarding function, follow the same steps as above and comment out the jp1base_forward_send items as "//jp1base_forward_send" or remove the jp1base_forward_send items in step 2.
(c) Creation and import of IM management node tree data (for Windows) (required)
Follow the steps below to create and import IM management node tree.
-
Perform the steps in integrated agent host.
Follow steps 1 to 4 in 1.21.2(19) Creation and import of IM management node tree data (for Windows) (required).
-
Run JP1/IM - Manager's jddcreatetree command/create IM managed node-related API.
If the execution fails, follow the instructions in Message and execute again.
-
If add-on program or user-defined Prometheus or Fluentd configuration changes or deletions are made and trend data saved in Trend data Management Database is not required prior to the configuration change, delete the trend data and then execute jddcreatetree commandor IM control node-related information generation API of JP1/IM - Manager.
Deleting trend data deletes all trend data saved by Prometheus and Fluentd (including user-defined Prometheus and user-defined Fluentd) on the specified host. If you want to retain trend data for add-on program that has not made any configuration changes, run jddcreatetree command in JP1/IM - Manager or the Generate IM Administration Node-related Information API without deleting trend data.
If execution fails, take corrective action according to the contents of the message and re-execute.
For details on how to delete trend data, see the following sections:
-
2.2.1 List of Integrated Agents window in the JP1/Integrated Management 3 - Manager GUI Reference
-
5.11.4 Delete Trend Data and 5.18.2 Delete integrated agent info in the JP1/Integrated Management 3 - Manager Command, Definition File and API Reference
-
-
When add-on program or user-defined Prometheus or Fluentd configuration is changed or deleted, IM management node-related files described in "Editing IM management node-related files" below is edited (it is not necessary to perform it when building a new system).
-
Execute jddupdatetree command of JP1/IM - Manager (configuration change mode) or the import API of IM control node-related information.
If the execution fails, follow the instructions in Message and execute again.
-
Display integrated operation viewer and verify that IM management node is created correctly.
If it is not created correctly, review settings in integrated agent, add-on program, user-defined Prometheus or Fluentd that was not created, and then repeat the procedure from step 2.
- - Editing IM management node-related files
-
If add-on program, or user-defined Prometheus or Fluentd configuration changes (configuration changes or deletions) are made, a pre-configuration IM management node is created until those sample are removed from Trend data Management Database. For the timing when trend data is deleted, see 2.7.2 Trend data Management Database in the JP1/Integrated Management 3 - Manager Overview and System Design Guide.
If you do not want to create a pre-configuration IM management node, you can modify IM management node file and IM management node tree file output by jddcreatetree command. For details on IM management node tree file, see 3.5.3 IM management node-related files in the JP1/Integrated Management 3 - Manager Overview and System Design Guide. Copy the file to make a backup before editing.
- - Editing IM management node Files
-
Jddcreatetree command-generated IM management node file (filename: imdd_node_HITACHI_JP1_JPCCS_CONFINFO_JP1 hostname.json) also displays /IM-Manager's pre-configuration OOE. When the setting is changed, SID of the configuration information is the same before and after the change, and SID of the second and subsequent configuration information is output with the suffix "-xx"(xx are numbered from 01 to 99).
If you do not need IM management node prior to the configuration change, remove IM management node object from jddcreatetree before the configuration change by editing IM management node file. The format of IM management node file is shown below.
{ "meta":{ ... }, "simtData": [ Objects in IM management node, ... ] }An object of IM management node is an element of an array of simtData in the following format:
-
IM management node Object-Format
{ "sid": "SID Configuration", "value": { ... "property": { Displayed in IM management node Properties, }, "jp1im_TrendData_labels": { Values for identifying trend data }, ... } }Review the values that you want to see in the properties of IM management node and the values to identify the trend data. Remove the objects in IM management node prior to the configuration change. For the values displayed in the properties of IM management node, see 3.15.6(1)(f) Property display in the JP1/Integrated Management 3 - Manager Overview and System Design Guide. The values shown in the following table are set as values for identifying trend data.
Key
Value Description
jp1_pc_prome_hostname
Hostname of Prometheus server
This is the setting for the jp1_pc_prome_hostname of Prometheus configuration file. For log-monitored SID, this key/value is not displayed.
job
Scrape job name
This is the setting for job_name in Prometheus configuration file. For log-monitored SID, or SID of kubernetes, this key/value is not printed.
instance
Instance Name
This is specified in targets of the discovery configuration file.
jp1_pc_nodelabel
Label-name of IM management node
This is the scrape_configs or metrics_scrape_configs of Prometheus configuration file or the jp1_pc_nodelabel tag for AWS resource.
When deleting an object of IM management node that does not have "-xx" at the end of SID of the configuration information and leaving an object of IM management node that has "-xx" at the end, delete and save the "-xx" at the end of SID of the configuration information to be left.
The following shows an example of editing when Node exporter port number is changed.
In this example, the port number before the change is 20716 and the port number after the change is 29999.
-
Sample Pre-Edit IM management node Files
{ "meta":{ ... }, "simtData": [ ... { "sid": "_JP1PC-IMB_MHOST/_JP1PC-M_AHOST/_JP1PC-AHOST_AHOST/_HOST_AHOST/_JP1PC-A_Linux%20metric%20collector%28Node%20exporter%29", "value": { "component": "/HITACHI/JP1/JPCCS/CONFINFO", "category": "platform", "visible": true, "label": "Linux metric collector(Node exporter)", "property": { "jp1_pc_prome_hostname": "ahost", "job": "jpc_node", "jp1_pc_exporter": "JPC Node exporter", "jp1_pc_trendname": "node_exporter" }, "jp1im_TrendData_labels": { "jp1_pc_prome_hostname": "ahost", "job": "jpc_node", "instance": "ahost:20716", "jp1_pc_nodelabel": "Linux metric collector(Node exporter)" }, "methods": [ "__metricListGet", "__timeSeriesDataGet" ] } }, { "sid": "_JP1PC-IMB_MHOST/_JP1PC-M_AHOST/_JP1PC-AHOST_AHOST/_HOST_AHOST/_JP1PC-A_Linux%20metric%20collector%28Node%20exporter%29-01", "value": { "component": "/HITACHI/JP1/JPCCS/CONFINFO", "category": "platform", "visible": true, "label": "Linux metric collector(Node exporter)", "property": { "jp1_pc_prome_hostname": "ahost", "job": "jpc_node", "jp1_pc_exporter": "JPC Node exporter", "jp1_pc_trendname": "node_exporter" }, "jp1im_TrendData_labels": { "jp1_pc_prome_hostname": "ahost", "job": "jpc_node", "instance": "ahost:29999", "jp1_pc_nodelabel": "Linux metric collector(Node exporter)" }, "methods": [ "__metricListGet", "__timeSeriesDataGet" ] } }, ... ] }Deletes IM management node object whose instance is set to ahost:20716, and removes-xx at the end of the configuration SID that you want to keep. The edited IM management node filename is shown below.
-
Sample IM management node Files After Editing
{ "meta":{ ... }, "simtData": [ ... { "sid": "_JP1PC-IMB_MHOST/_JP1PC-M_AHOST/_JP1PC-AHOST_AHOST/_HOST_AHOST/_JP1PC-A_Linux%20metric%20collector%28Node%20exporter%29", "value": { "component": "/HITACHI/JP1/JPCCS/CONFINFO", "category": "platform", "visible": true, "label": "Linux metric collector(Node exporter)", "property": { "jp1_pc_prome_hostname": "ahost", "job": "jpc_node", "jp1_pc_exporter": "JPC Node exporter", "jp1_pc_trendname": "node_exporter" }, "jp1im_TrendData_labels": { "jp1_pc_prome_hostname": "ahost", "job": "jpc_node", "instance": "ahost:29999", "jp1_pc_nodelabel": "Linux metric collector(Node exporter)" }, "methods": [ "__metricListGet", "__timeSeriesDataGet" ] } }, ... ] } -
- - Editing IM management node tree file
-
IM management node tree file output by jddcreatetree command. is edited.
If you delete the configuration, delete the description of the tree object of the deleted IM management node.
When the setting is changed, the description of SID of the configuration information to which "-xx" is added at the end of SID of the configuration information is deleted from target array.
The following shows an example of editing when Node exporter setting is changed.
-
Pre-Edit IM management node tree file Sample
{ "meta":{ ... }, "simtData": [ ... { "sid": "_ROOT_AllSystems/_HOST_AHOST/_CATEGORY_platform/_OBJECT_JP1PC-ALinux%20metric%20collector%28Node%20exporter%29", "value": { "target": [ "_JP1PC-IMB_MHOST/_JP1PC-M_AHOST/_JP1PC-AHOST_AHOST/_HOST_AHOST/_JP1PC-A_Linux%20metric%20collector%28Node%20exporter%29" ], "label": "Linux metric collector(Node exporter)" } }, { "sid": "_ROOT_AllSystems/_HOST_AHOST/_CATEGORY_platform/_OBJECT_JP1PC-ALinux%20metric%20collector%28Node%20exporter%29-01", "value": { "target": [ "_JP1PC-IMB_MHOST/_JP1PC-M_AHOST/_JP1PC-AHOST_AHOST/_HOST_AHOST/_JP1PC-A_Linux%20metric%20collector%28Node%20exporter%29-01" ], "label": "Linux metric collector(Node exporter)" } }, ... ] }-
Sample IM management node tree file After Editing
{ "meta":{ ... }, "simtData": [ ... { "sid": "_ROOT_AllSystems/_HOST_AHOST/_CATEGORY_platform/_OBJECT_JP1PC-ALinux%20metric%20collector%28Node%20exporter%29", "value": { "target": [ "_JP1PC-IMB_MHOST/_JP1PC-M_AHOST/_JP1PC-AHOST_AHOST/_HOST_AHOST/_JP1PC-A_Linux%20metric%20collector%28Node%20exporter%29" ], "label": "Linux metric collector(Node exporter)" } }, ... ] } -
- - What happens when IM management node-related files is not edited
-
If you do not edit IM management node-related files, IM management node are created until the old sample is removed from Trend data Management Database. For configuration changes, JP1 events issued by add-on program, or user-defined Prometheus and Fluentd are mapped to IM management node without "-xx" at the end of the configuration SID.
(d) Settings of product plugin (for Windows)
This section explains how to set product plugin.
■ Define metric to Trend (optional)
Define metric to be displayed in the [Trend] tabbed page of integrated operation viewer in metric Defined File. The primary metric is initially setup. For details about the metric definition file, see the description of each metric definition file in Chapter 2. Definition Files in the JP1/Integrated Management 3 - Manager Command, Definition File and API Reference.
To use the service monitoring function, configure the following settings. However, if you do not want to add metrics to display in the Trends tab, this setting is not required.
-
When monitoring service with the Windows version of JP1/IM - Agent
Edit the Windows exporter (service monitoring) metric definition file (metrics_windows_exporter_service.conf). For details about the Windows exporter (service monitoring) metric definition file, see Windows exporter (service monitoring) metric definition file (metrics_windows_exporter_service.conf) in Chapter 2. Definition Files in the JP1/Integrated Management 3 - Manager Command, Definition File and API Reference. For the initial value of this metric definition file, see Model file settings (initial status) in Windows exporter (service monitoring) metric definition file (metrics_windows_exporter_service.conf).
-
When monitoring service with the Linux version of JP1/IM - Agent
Edit the Node exporter (service monitoring) metric definition file (metrics_node_exporter_service.conf). For details about the Node exporter (service monitoring) metric definition file, see Node exporter (service monitoring) metric definition file (metrics_node_exporter_service.conf) in Chapter 2. Definition Files in the JP1/Integrated Management 3 - Manager Command, Definition File and API Reference. For the initial value of this metric definition file, see Model file settings (initial status) in Node exporter (service monitoring) metric definition file (metrics_node_exporter_service.conf).
If you newly installed JP1/IM - Manager 13-50 or later, promql range vector selector in metric definition-file (value specified in square brackets [ ]) is set to "$stepTime{minSeconds="minimum-seconds"}".
When upgrading JP1/IM - Manager from versions 13-00 to 13-11 to version 13-50 or later, the range vector selector in promql of metric definition file does not have "$stepTime{minSeconds="minimum-seconds"}". The values set in JP1/IM - Manager 13-00 to 13-11 are inherited (the default is "2m"). In this case, if you want to specify "$stepTime{minSeconds="minimum-seconds"}" as the promql range vector selector in the metric definition file, you must edit the metric definition file to specify it.
For details about the value of the range vector selector specified in promql of metric definition file, see 3.15.6(4)(c) About Performance Data to Retrieve in the JP1/Integrated Management 3 - Manager Overview and System Design Guide.
■ Setup AWS definition file (optional)
When monitoring with Yet another cloudwatch exporter, specify the mapping between the account ID of AWS that you want to use monitoring with Yet another cloudwatch exporter, and the account strings that setup to SID and IM management node properties by editing AWS definition file.
For details about AWS definition file, see AWS definition file (aws_settings.conf) in Chapter 2. Definition Files in the JP1/Integrated Management 3 - Manager Command, Definition File and API Reference.
■ Edit system node definition file (imdd_systemnode) (Required only when using Yet another cloudwatch exporter)
If you want to monitor using Yet another cloudwatch exporter of add-on program and create a system node, setup system node definition file (imdd_systemnode) of JP1/IM - Manager.
This setup is mandatory if you want to monitor it using add-on program's Yet another cloudwatch exporter.
When creating system node shown in 3.15.6(1)(i) Tree Format in the JP1/Integrated Management 3 - Manager Overview and System Design Guide, specify the following settings by editing system node definition file (imdd_systemnode). For setting items not listed here, specify an arbitrary value.
|
Item nam |
Description |
|---|---|
|
displayName |
Specifies the name# of the service that publishes Amazon CloudWatch metric. |
|
type |
The slash (/) must be changed to a hyphen (-). |
|
name |
Specify the following string: [{".*":"regexp"}] |
- #
-
Indicates what is on Web of Amazon CloudWatch.
When configuring a system-managed node for AWS namespace monitored by Yet another cloudwatch exporter metric definition file (metrics_ya_cloudwatch_exporter).conf default settings, the following is a sample of the values to be set for the items in system node definition file.
|
displayName |
type |
name |
|---|---|---|
|
Amazon Simple Storage Service |
JP1PC-AWS-S3 |
[{".*":"regexp"}] |
|
AWS Lambda |
JP1PC-AWS-LAMBDA |
|
|
Amazon DynamoDB |
JP1PC-AWS-DYNAMODB |
|
|
AWS Step Functions |
JP1PC-AWS-STATES |
|
|
Amazon Simple Queue Service |
JP1PC-AWS-SQS |
|
|
Amazon Elastic Container Service |
JP1PC-AWS-ECS |
|
|
Amazon Elastic Block Store |
JP1PC-AWS-EBS |
|
|
Amazon Elastic File System |
JP1PC-AWS-EFS |
|
|
FSx File System |
JP1PC-AWS-FSX |
|
|
Simple Notification Service |
JP1PC-AWS-SNS |
|
|
Relational Database Service |
JP1PC-AWS-RDS |
If you set the above content to system node definition file, it will be as follows.
{
"meta":{
"version":"2"
},
"allSystem":[
{
"id":"strageSystem",
"displayName":"Amazon Simple Storage Service",
"objectRoot":[
{
"type":"JP1PC-AWS-S3",
"name":[{".*":"regexp"}]
}
]
},
{
"id":"lambda",
"displayName":"AWS Lambda",
"objectRoot":[
{
"type":"JP1PC-AWS-LAMBDA",
"name":[{".*":"regexp"}]
}
]
},
{
"id":"dynamodb",
"displayName":"Amazon DynamoDB",
"objectRoot":[
{
"type":"JP1PC-AWS-DYNAMODB",
"name":[{".*":"regexp"}]
}
]
},
{
"id":"states",
"displayName":"AWS Step Functions",
"objectRoot":[
{
"type":"JP1PC-AWS-STATES",
"name":[{".*":"regexp"}]
}
]
},
{
"id":"sqs",
"displayName":"Amazon Simple Queue Service",
"objectRoot":[
{
"type":"JP1PC-AWS-SQS",
"name":[{".*":"regexp"}]
}
]
},
{
"id":"ecs",
"displayName":"Amazon Elastic Container Service",
"objectRoot":[
{
"type":"JP1PC-AWS-ECS",
"name":[{".*":"regexp"}]
}
]
},
{
"id":"ebs",
"displayName":"Amazon Elastic Block Store",
"objectRoot":[
{
"type":"JP1PC-AWS-EBS",
"name":[{".*":"regexp"}]
}
]
},
{
"id":"efs",
"displayName":"Amazon Elastic File System",
"objectRoot":[
{
"type":"JP1PC-AWS-EFS",
"name":[{".*":"regexp"}]
}
]
},
{
"id":"fsx",
"displayName":"FSx File System",
"objectRoot":[
{
"type":"JP1PC-AWS-FSX",
"name":[{".*":"regexp"}]
}
]
},
{
"id":"sns",
"displayName":"Simple Notification Service",
"objectRoot":[
{
"type":"JP1PC-AWS-SNS",
"name":[{".*":"regexp"}]
}
]
},
{
"id":"rds",
"displayName":"Relational Database Service",
"objectRoot":[
{
"type":"JP1PC-AWS-RDS",
"name":[{".*":"regexp"}]
}
]
}
]
}After configuring system node definition file, if you run JP1/IM - Manager's jddcreatetree command to create a CloudWatch other than EC2, JP1/IM - Manager displays IM managed node under system node in the Operating status area of the integrated operation viewer, depending on AWS namespace name.
For details about the system node definition file, see System node definition file (imdd_systemnode.conf) in Chapter 2. Definition Files in the JP1/Integrated Management 3 - Manager Command, Definition File and API Reference.
■ Placing the credential file
When monitoring with the add-on program Yet another cloudwatch exporter, place the credentials file under "C:\Windows\System32\config\systemprofile\.aws\" written in 1.21.2(7) Setup in Yet another cloudwatch exporter, (b) Modify Setup to connect to CloudWatch (for Windows) (required).
■ Editing category name definition file for IM management nodes (imdd_category_name.conf) (optional)
To use the service monitoring function, configure the following settings. However, if you newly installed JP1/IM - Manager 13-01 or later, this setting is not required because it was set at the time of installation.
In category name definition file for IM management nodes (imdd_category_name.conf), add the definitions shown in the following table. IM management node of agent SID created by the service-monitoring feature is displayed as the displayed category name shown in this table. If no definitions are added, IM management node category is "service" (the value of specified category ID). This setting is not required if "service" is already set for the specified category ID.
|
Display category name |
Specified category ID |
|---|---|
|
Service |
service |
For details about this definition file, see Category name definition file for IM management nodes (imdd_category_name.conf) in Chapter 2. Definition Files in the JP1/Integrated Management 3 - Manager Command, Definition File and API Reference.