Configuring ASM and APM Inventory
The APM module includes the create_arm.py utility designed for building the Asset Service Model (ASM) and performing service and resource inventory.
Utility Capabilities
-
ASM construction and configuration:
- creating model layers
- generating services and relationships
- binding metrics to services
-
inventory management:
- creating assets (services, resources)
- establishing relationships between assets
Requirements
The utility is part of the make_ko_apm package. Before running, you must install configurations as described in APM Configuration Installation and Setup.
Running the Utility
python create_arm.py --sm_host <host> --sm_user <user> --sm_password <password> [--sm_api_port <port>]
Parameters
| Parameter | Required | Type | Default | Purpose |
|---|---|---|---|---|
--sm_host | Yes | string | — | Smart Monitor web interface host |
--sm_api_port | No | int | 5601 | Web interface port |
--sm_user | Yes | string | — | Username |
--sm_password | Yes | string | — | Password |
Example
python create_arm.py --sm_host sm-host-web.my_company.ru --sm_user admin --sm_password securepassword
Installation Results
After script execution:
- the RSM structure will appear in the Smart Monitor interface
- service and resource assets will be automatically created