System monitoring
Requests
HTTP verb | Endpoint | Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
For all requests:
Domain type: master
System status
Collecting information on deviations from correct system behavior.
Some parameters can be set in settings of the master domain.
Request
Specification | Description |
---|---|
|
Level of detail. Applies only if there are no keys. Possible values:
|
|
Strategies for analyzing the system. A list of keys separated by ',' or ';'. Key Description |
|
Timeout to wait for system analysis in ms. By default, it is calculated using data from the collection strategies. |
|
Return all keys, keys with an empty value will be filtered out on activation. Default false. |
GET /api/monitor/v1/system/state HTTP/1.1
Response
HTTP/1.1 200 OK
{
"resultcode": 0,
"resultmsg": "OK",
"data": {
{
"unavailable_sites": [
"slave2"
],
"unavailable_servers": [
{
"site": "central",
"servers": [
"192.168.0.123",
"192.168.0.127"
]
}
],
"inactive_nodes": [
{
"site": "central",
"nodes": [
"lwm5ws1@192.168.0.127",
"lwmrpco32@192.168.0.123"
]
}
],
"cpu_usage": [
{
"site": "central",
"servers": [
{
"server": "192.168.0.35",
"busy_percent": 52.49,
"rup_load_avg1": 5.76,
"rup_load_avg5": 5.45,
"rup_load_avg15": 6.54,
"cpu_count": 4
}
]
}
]
}
}
}
Name | Description |
---|---|
|
|
|
Unavailable sites. |
|
Unavailable servers. |
|
Inactive nodes. |
|
Timeout for collecting information from node. |
|
The current time differs on different servers by more than 1 second. |
|
Not enough disk space on the server. |
|
Insufficient free RAM on the server. |
|
Overloading CPU. |
|
The configuration is different on the nodes. |
|
Basic microservices are missing from the site. |
|
Microservice instance not found fsync. |
|
The number of 'mg' media gateways connected to the 'mgc' controller does not match the number configured in the configuration. |
|
Product version information (assembly.info) on nodes is different. |
|
Global names on websites are different. |
|
Unavailable domains on nodes. |
|
Noda was launched less than 60 seconds ago. |
|
The microservice instance was started less than 60 seconds ago, or a startup error occurred. |
|
States of non-started microservices on nodes. |
|
Active-Passive microservices not running on the site. |
|
Unavailable global service names in nodes. |
|
Information about custom applications, installation errors or the installation process. |
|
Cross-site connectivity between nodes is present. |
|
Errors and warnings on TLS/SSL certificates used in microservices. Information about certificates loaded on disk and specified in the 'ws', 'sg' and 'esg' microservices parameters in the configuration is reported. It also tracks the validity time of certificates downloaded to domains. |
|
Project warnings issued as a result of running a special service script. The script code is specified by the |
|
|
|
The total hash of the binary files (*.beam) of the platform applications their dependencies and erlang is different on the servers. |
|
The total hash of platform binary files (*.beam) differs on servers. |
|
|
|
The total hash of the binary files (*.beam) of the platform applications their dependencies and erlang is different on the servers. |
|
The total hash of all platform files is different on the servers. |
System node status
Request
Specification | Description |
---|---|
|
The node for which data should be collected. Possible values:
|
|
Level of detail. Applies only if there are no keys. Possible values:
|
|
Strategies for analyzing nodes. List of keys separated by ',' or ';'. Key Description |
|
Return only the specified microservices in the node(s). List of microservices with ',' separator or ';'. |
GET /api/monitor/v1/system/node?node=b2bua1@192.168.0.35 HTTP/1.1
Response
HTTP/1.1 200 OK
{
"resultcode": 0,
"resultmsg": "OK",
"data": [
{
"site": "central",
"nodes": [
{
"node": "b2bua1@192.168.0.35",
"available": true,
"parentnode": "testserv@192.168.0.35",
"start_utc": "2019-10-21T08:02:23.38Z",
"now_utc": "2019-10-24T13:05:37.01Z",
"is_open": false,
"config_hash": 104521630,
"globals_hash": false,
"eaddr": "192.168.0.35",
"ifaces": [
"192.168.0.35",
"172.17.0.1"
],
"cpu": {
"busy": 52.49346178074708,
"nonbusy": 47.50653821925292,
"avg1": 9.37109375,
"avg5": 7.609375,
"avg15": 6.12890625,
"cpu_count": 4
},
"mem": {
"total": 33599832064,
"allocated": 32505409536,
"free": [
"!tuple!",
"free_memory",
1071202304
],
"cached": [
"!tuple!",
"cached_memory",
10312015872
],
"buffers": [
"!tuple!",
"buffered_memory",
1033371648
]
},
"disk_space": 31896128,
"roleapps": false,
"versions": {
"assembly_date": "2018-05-31T07:26:28.380Z",
"product": "2019.4.16-nightly",
"product_name": "{product_name}",
"era": "2021.4.16",
"rtx": "v3.2.0",
"default_solution": "{product_name}",
"fe-autoprovision": "v.0.0.1",
"fe-calls-statistic": "v.0.2.0",
"fe-data-manager": "v.0.4.0",
"fe-monitor": "v.0.2.0",
"fe-reporter": "v.0.1.1",
"fe-root": "v.0.0.2",
"fe-script-editor": "v.0.3.0",
"fe-selector": "v.0.2.1"
},
"connected": [
"testserv@192.168.0.35",
"statestore2@192.168.0.35",
"callstorage1@192.168.0.35"
],
"roles": [
{
"role": "environment",
"is_running": true,
"boot_state": {
"result": "wait_for_boot",
"reason": "undefined",
"utc": "undefined"
},
"app_type": "basic",
"state": "ok"
},
{
"role": "trace",
"is_running": true,
"boot_state": {
"result": "wait_for_boot",
"reason": "undefined",
"utc": "undefined"
},
"app_type": "basic",
"state": "ok"
},
{
"role": "b2bua",
"is_running": true,
"boot_state": {
"result": "ok",
"reason": "OK",
"utc": "2019-10-21T08:02:25.68Z"
},
"app_type": "sip",
"state": "ok"
}
]
}
]
}
]
}
Name | Description |
---|---|
|
|
|
The full name of the node. |
|
Node accessibility (whether the method call passes from the statistical builder node). |
|
Is the node open. |
|
Node start time in UTC. |
|
Current time on the node in UTC. |
|
Hash node configurations. |
|
List of connected nodes. |
|
CPU utilization indicators on the server with node. |
|
Free space on the server disk in KB. |
|
The address on which the node is raised. |
|
Hash of global names registered on node. |
|
Interfaces on the server. |
|
Indicators of RAM utilization on the server with node. |
|
Parent node (ServerShell). |
|
Information about user applications or false in case of no service on the node. |
|
List of microservices maintained on the node. |
|
Product version on the server. |
|
|
|
Total hash of binary files (*.beam) of applications of the platform platform their dependencies and erlang on the server. |
|
|
|
Total hash of binary files (*.beam) of the platform on the server. |
|
|
|
Total hash of all platform files on the server. |
List of analysis strategies
Request
Specification | Description |
---|---|
|
Type of analysis strategies. Possible values:
|
|
Display system strategies. Default false. |
GET /api/monitor/v1/system/keys?mode=node HTTP/1.1
Response
HTTP/1.1 200 OK
{
"resultcode": 0,
"resultmsg": "OK",
"data": [
"available",
"config_hash",
"connected",
"cpu",
"disk_space",
"eaddr",
"globals_hash",
"ifaces",
"is_open",
"mem",
"node",
"now_utc",
"parentnode",
"roleapps",
"roles",
"sourcecode_data_all",
"sourcecode_hash",
"start_utc",
"versions"
]
}
Nodes of the system
Distribution of nodes to servers on sites.
Response
HTTP/1.1 200 OK
{
"resultcode": 0,
"resultmsg": "OK",
"data": [
{
"site": "central",
"servers": [
{
"server": "192.168.0.35",
"nodes": [
"b2bua1@192.168.0.35",
"bgmg1@192.168.0.35"
]
},
{
"server": "192.168.0.123",
"nodes": [
"lwmic2@192.168.0.123",
"lwmrpco32@192.168.0.123",
"lwmws1lwmgate32@192.168.0.123"
]
}
]
}
]
}
System Roles
Roles (including service roles) of the system distributed by nodes with site indication.
Request
Specification | Description |
---|---|
|
Display microservices parameters. Default false. |
GET /api/monitor/v1/system/roles HTTP/1.1
Response
HTTP/1.1 200 OK
{
"resultcode": 0,
"resultmsg": "OK",
"data": [
{
"site": "central",
"nodes": [
{
"node": "b2bua1@192.168.0.35",
"roles": ["b2bua"]
},
{
"node": "bgmg1@192.168.0.35",
"roles": ["mg"]
},
{
"node": "callstorage1@192.168.0.35",
"roles": ["mnesia","callstore"]
}
]
}
]
}
Service of domains on sites
Response
HTTP/1.1 200 OK
{
"resultcode": 0,
"resultmsg": "OK",
"data": [
{
"domain": "ceceron.ru",
"sites": ["central"]
},
{
"domain": "ak.ceceron.ru",
"sites": ["central"]
},
{
"domain": "mmak.ceceron.ru",
"sites": ["central"]
},
{
"domain": "test.ceceron.ru",
"sites": ["central","slave2"]
},
{
"domain": "w.ceceron.ru",
"sites": ["central"]
}
]
}
Product version
Response
HTTP/1.1 200 OK
{
"resultcode": 0,
"resultmsg": "OK",
"data": {
"assembly_date": "2019-11-26T19:51:43.332Z",
"product": "{product_name}",
"projects": [
{
"branch": "develop",
"commitid": "ba102bee006b54cac8a3d4ef591f88fafe0be574",
"name": "era",
"version": "2020.11.26-nightly-build.105"
},
{
"commitid": "ecb12af3336dc15c594351cf7c9e99c95d715824",
"name": "era_assets",
"tag": "v1.8.0",
"version": "1.8.0"
},
{
"commitid": "3d39ae33036df4ee5f8d3f1ab43bcddce477a7fe",
"name": "rtx_assets",
"tag": "v3.9.0",
"version": "3.9.0"
},
{
"branch": "develop",
"commitid": "eade2bb358a0e3d8b78629f07f8e28c1e761f018",
"name": "rtx",
"version": "2019.11.26-nightly-build.105"
},
{
"branch": "master",
"commitid": "69ba462b699d18bda820b298c0f0e0fdb14e8ad0",
"name": "r_assets_www",
"version": "2019.11.26-nightly-build.105"
},
{
"branch": "develop",
"commitid": "59a61f6affa592aaa19795d2ae3e4e57ccba479b",
"name": "app-configuration",
"version": "2019.11.26-nightly-build.105"
}
],
"version": "2019.11.26-nightly-build.105"
}
}
Name | Description |
---|---|
|
Product Name |
|
Product version. |
|
Product build date. |
|
Projects included in the product. |
|
Project Name. |
|
Project version. |
|
A branch in the repository from which the product is built. |
|
Tag in the repository from which the product was built. |
|
ID of the commit in the repository from which the product was built. |