EDR Task Integration
Integration of BI.ZONE EDR tasks with the Incident Manager is performed by the utility
add_task_actions.py.
The utility is provided in the smart_edr_ko_maker package, located in the bin directory, and automates the processes of:
- Creating active actions in
Smart MonitorforBI.ZONE EDRtasks - Generating a ready deployment package
- Preparing the environment for executing EDR tasks as active actions
Installation Sequence
Generating the Directory of Available Tasks
- Log in to the
Smart Monitor Webinterface - Go to the task list:
Navigation Menu-Job Scheduler-Jobs List - Select the task
Directory: Tasks:
- Copy the query and execute it to generate an up-to-date task list:

Running the add_task_actions.py Utility
- In the
smart_edr_ko_makerbuilder, navigate to thebindirectory - Run the utility
add_task_actions.py
Execution Parameters
Mandatory parameters:
| Parameter | Description |
|---|---|
--sm_host | Smart Monitor host (one of the cluster nodes) |
--sm_user | Smart Monitor user |
--sm_password | Smart Monitor password |
--bizone_edr_host | BI.ZONE EDR host |
--bizone_edr_token | BI.ZONE EDR API token |
Optional parameters:
| Parameter | Default | Description |
|---|---|---|
--sm_port | 9200 | Smart Monitor port |
--bizone_edr_port | 9993 | BI.ZONE EDR port |
Full Execution Example
python add_task_actions.py \
--sm_host open-search-host-1.my_company.ru \
--sm_user admin \
--sm_password securepass \
--bizone_edr_host bi-zone-edr.my_company.ru \
--bizone_edr_token api_token_123 \
--sm_port 9200 \
--bizone_edr_port 9993
Installing Active Actions
After executing add_task_actions.py, a build directory is created:
smart_edr_actions.tar.gz- archive containing:- executable scripts (
run_job_handler.py,run_task.py) - configuration files
Pythondependencies
- executable scripts (
add_actions.sh- installation script- Transfer the contents of
buildto theSmart Monitor Webserver - Transfer the active actions:
Executing the commands will restart Smart Monitor Web.
chmod +x add_actions.sh
./add_actions.sh
systemctl restart opensearch-dashboards
Environment Preparation
EDR tasks are executed on the Smart Monitor Web server. To launch active actions from the Smart Monitor interface, the following is required:
- Install Python 3.7+ on all
dataandmasternodes - Make the installed
pythoninterpreter system-wide
Starting from version 5.1, Smart Monitor includes Python 3.12, which meets the requirements for executing active actions.
- Install libraries required for active actions:
cd /app/opensearch-dashboards/config/actions
pip install -r requirements.txt
Verifying Configuration Application
In the Active Actions section (Main Menu - System Parameters - Module Settings - Incident Manager - Active Actions), EDR tasks with the required set of parameters are displayed:
