Possible Device Monitor installation options: All‑in‑one option involves hosting the Device Monitor Server and the Platform with the web interface of the Investigation Centre and the Administration Centre on a single server.
Distributed installation of the Device Monitor Server on the office node of the Platform. | Предупреждение |
|---|
| When using a distributed installation, take into account the following key aspects: - Products in the cluster must be installed on the same version of the Platform. If you install a product in the cluster on a new version of the Platform, you will need to update all products for them to work correctly.
- In a single cluster, you can deploy only one central node of the Platform, and each product in central mode can exist in only one instance.
- If a product is already installed in the cluster in
central mode, another installation of this product in the central mode in the same cluster will fail with an error. - Device Monitor supports installation only in the
central mode. At the same time, it supports installation on both the central and office nodes of the Platform.
|
Products in the same cluster have: - access to all functionality in the Investigation Centre interface, which is the same for all products;
- common settings;
- common role model;
- shared access to data regardless of which product is integrated with the source, as well as access to processed data.
| Предупреждение |
|---|
| When migrating from Windows to Device Monitor for Linux, you can save the data, meaning you can continue using the same database that was used with the server of Device Monitor for Windows. During the migration, the structure and contents of the database are automatically modified. To ensure correct migration: |
"All‑in‑one" installationmodeThis mode is suitable for installing the web interface, the Device Monitor Server, and the database on a single server, as well as when transitioning to Device Monitor for Linux from Windows. To install Device Monitor in "All‑in‑one" mode: Make sure the server meets the hardware and software requirements (see Аппаратно-программные требования). Follow the steps to prepare the server for Device Monitor installation (see Подготовка окружения). Copy the archive containing the Device Monitor Server distribution kit to the hard drive. Create a directory and unpack the contents of the archive into it. In the example, the archive will be unpacked into the /dmsl_distr directory: | Блок кода |
|---|
mkdir -p /dmsl_distr && tar xvf dmsl_setup_7.21.0.310.tar.gz -C /dmsl_distr |
- Go to the created directory.
Run the setup.sh script, which is included in the distribution kit: | Информация |
|---|
| If you encounter a permission error when running the script, make the file executable using the command: | Блок кода |
|---|
| chmod +x ./setup.sh |
Then run the script. |
After that, the following actions will be available: - Install – new installation;
- Update – updating installed components;
- Utilities – going to the utilities menu;
- Exit – exiting the program.
- Select the installation type Install. A list of components will be available:
- For "All‑in‑one" installation, select DM Server Service, Front End.
- Select the Device Monitor server installation option:
- Host, to install the server on a host; or
- Container (podman), to install the server with containerisation support.
Installation modes for the Platform with the web interface of the Investigation Centre and the Administration Centre will be proposed to you: - Central – intended for installation on the primary node or if there is no already installed web interface;
- Office – intended for distributed installation.
- Select the mode Central.
- View the terms of the license agreement. It contains several pages. To go to the next page, press Enter.
- Type "y" to accept the license agreement and press Enter.
- Enter the IP-address of the server in the IPv4 format:
"xxx.xxx.xxx.xxx" and press Enter.
- Allocate RAM to host ClickHouse data (by default, 80%) and press Enter.
- Specify the path to place ClickHouse data (by default:
/opt/chdata) and press Enter. - Specify the path to place PostgreSQL data (by default:
/opt/pgdata) and press Enter. - Specify the path to place NATS data (by default:
/opt/natsdata) and press Enter. - Specify the path to place data (by default:
/opt/dsdata) and press Enter. - Specify the path to temporarily place Traffic Monitor events before loading them to the Platform (by default:
/opt/factsldrtmdata) and press Enter. - Specify the port for connecting to the web interface (by default,
443) and press Enter. - Wait for the Platform installation to complete. The Device Monitor Server will be installed next. At the same time:
- Folders will be created:
/var/log/iwdms – folder for the Device Monitor server execution logs;/opt/iw/dmserver/bin – folder with the Device Monitor server files;/opt/iw/dmserver/queue – file queue folder;/opt/iw/dmserver/log – symbolic link to the folder /var/log/iwdms
- iwdms user with the key
--system will be added, making it possible to run the service under this user, but not allowing to log in as this user in the Investigation Centre. - A ZIP file from
data/iwdms of the installation package will be unpacked into the required folders. The iwdms user will be assigned as an owner for the aforementioned folders.
- In the systemd folder of the services
/etc/systemd/system, the file of the manifest of the Device Monitor Server service iwdms.service will be added, as well as services for syncing with Active Directory – iwdms_ldap.service.
- Select the language of the server being installed and press Enter. This will determine the names of the preinstalled groups, policies, and rules.
- Read the license agreement and select the required action. To continue the installation, you need to accept the license agreement. Select Accept and continue and press Enter.
- Select the type of server you need to install: Primary or Secondary.
If you are installing the System for the first time or switch from Device Monitor that is installed on Windows, select Primary. - Configure interaction with the database:
- Create a new database – to create a new database. Use this option for a clean installation;
- Update an existing database – to configure the existing database. Use this option to install with data migration.
Specify the name or the IP address of the server where the PostgreSQL DBMS is located. If you are installing Device Monitor with data migration, use the PostgreSQL DBMS that was used to install the Device Monitor Server on Windows. If you previously selected the installation option Container (podman) and placed the database on the same server with Device Monitor, then enter the address of the network interface of this server. Before this, configure the database (see Подготовка окружения). | Предупреждение |
|---|
| If you selected the installation option Container (podman), you cannot enter localhost or 127.0.0.1 as an IP address. |
- Specify the port for configuring interaction. If you do not specify it, the default
5432 port will be used. - Enter the name of the database. By default –
iwdm. Enter the name of the DBMS user. By default – postgres. - Enter the password.
- Select Yes to install the distribution service. In this case, the distribution point will be able to spread the agent distribution kits to workstations. If you previously selected the Container (podman) server installation option, then the distribution service will also be installed with the containerisation support.
- If you previously selected the Primary server, then specify the path to the PFX file of the key that encrypts the channel between the Device Monitor Server and the agents. If you do not specify the path, then the default
/opt/iw/dmserver/ssl.pfx path will be used. - If you are installing the Server to the new database, then you need to create the encryption key. Select Yes.
- Next, you can select the deployment type:
- Interact with Traffic Monitor – with the option to send events to Traffic Monitor;
Operate autonomously – autonomous work without integration with Traffic Monitor. | Предупреждение |
|---|
| | When selecting the autonomous work mode, no predefined rules will be created in the policies by default. |
| Информация |
|---|
| After the installation, you can switch the autonomous mode in the section Settings → | Multiexcerpt include |
|---|
| MultiExcerptName | DM_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| useIncluderPageContext | true |
|---|
| servers. |
If you selected Interact with Traffic Monitor on the previous step, then enter the name of the server or its IP address. | Предупреждение |
|---|
| The server name may contain Latin letters from "a" to "z" (case-insensitive), numbers from "0" to "9", and the hyphen "-". It cannot consist of numbers only. We recommend using the server name that starts with a letter. |
| Информация |
|---|
| If you need to change the InfoWatch Traffic Monitor address after the installation, you can do it in the Device Monitor server database: - the field
TRAFFIC_MONITOR_POLICY_SERVER_ADDRESS of the table Settings contains the address of the Traffic Monitor server that is used by all servers of the Device Monitor pool (both primary and secondary) to obtain the Traffic Monitor policy and distribute it to the agents; - the
TmAddress field in the ServerOption table contains the address of the Traffic Monitor server to which events from Device Monitor are sent. In this table, the TmAddress field may appear multiple times (depending on the number of servers in the pool).
|
If an access token to Traffic Monitor is requested, enter its value. To successfully connect the Device Monitor Server with the Traffic Monitor Server, you need to configure the remote server certificate validation (see Настройка проверки сертификатов удаленных серверов). If you selected Update an existing database, a check if there are rules that do not support configuration in the new version of Device Monitor is launched. If unsupported rules are detected, the migration will fail. In this case, we recommend contacting the InfoWatch technical support. - If you selected Update an existing database and plan to use the Device Control module, rules, and white lists, select Using Device Control is required, migrate rules and white lists. Wait until the Device Control rules and white lists are migrated to the new version. If you do not plan to use Device Control, select Using Device Control is not required, delete rules and white lists.
- Enter the IP address of the Device Monitor server.
During the initial installation of the Device Monitor Server and the database, you can load a custom configuration file with default policies and settings. To load the file, enter the path to it, such as /root/configuration.zip. In this case, all existing settings and configuration elements will be replaced with the imported ones. To skip this step, press Enter. | Предупреждение |
|---|
| The configuration file needs to be placed on a local disk or external storage device. Loading the file from a network folder is not supported. |
Wait for the installation to complete. If you are installing in "All-in-one" mode and have previously selected the DM Server Service, Front End option, the following actions will be performed automatically: If you install the web interface on the Platform basis and the Device Monitor Server in sequence, using the Front End only and DM Server Service only installation options, the actions involving the Platform's guard service key and the n.yaml file from the previous step will not be performed automatically. After installing the Platform and the Server, perform them using the installer. To do this: Run the installation script: - Select Utilities from the menu. The section contains utilities:
Fix n.yaml file – the utility for automatically adding the required settings to n.yaml. Select this option if the Platform with the web interface of the Investigation Centre and the primary Device Monitor server are installed on the current computer. You also need to perform this action after installing any product in the Investigation Centre; - Save platform guard public key to IWDM Service – if Device Monitor is installed on the current computer as the primary server, and the Platform is also installed (in either the central or office mode), then, by running this utility, you can automatically get the public key of the guard service of the Platform and save it to the server directory;
- Show IWDM Service version – the utility displays the version of the installed server;
- Export ssl key – the utility allows you to export the agent‑server channel protection key.
- Select Fix n.yaml file.
- Enter the IP address of the Device Monitor server and wait for the process to complete.
Run the installation script: - Select Utilities from the menu and then Save platform guard public key to IWDM Service. Wait for the process to complete.
Restart the iwdms service: | Блок кода |
|---|
systemctl restart iwdms |
| Предупреждение |
|---|
| To connect to the Investigation Centre web interface, always use the address or name of the server where the Platform is installed in the central mode. |
Distributed installation of Device MonitorA distributed installation is required when an organization also uses other InfoWatch products and/or has a structure with a central office and branches. In this case, you can install one or more Device Monitor Servers on computers with the Platform office nodes, where other InfoWatch products may also be installed. To install the primary Device Monitor server in the distributed mode: Make sure the server meets the hardware and software requirements (see Аппаратно-программные требования). - Follow the steps to prepare the server for the Device Monitor installation (see Подготовка окружения).
- Copy the archive containing the Device Monitor Server distribution kit to the hard drive of another computer.
Create a directory and unpack the contents of the archive into it. In the example, the archive will be unpacked into the /dmsl_distr directory: | Блок кода |
|---|
mkdir -p /dmsl_distr && tar xvf dmsl_setup_7.21.0.310.tar.gz -C /dmsl_distr |
- Go to the created directory.
Run the setup.sh script, which is included in the distribution kit: | Информация |
|---|
| If you encounter a permission error when running the script, make the file executable using the command: | Блок кода |
|---|
| chmod +x ./setup.sh |
Then run the script. |
- Select the installation type Install. A list of components will be available:
- Select DM Server Service, Front End.
- Select the Device Monitor server installation option:
- Host, to install the server on the host; or
- Container (podman), to install a server with containerization support.
Installation modes for the Platform with a web interface of the Investigation Centre and the Administration Centre will be provided: - Central – intended for installation on the primary node or in the absence of an already installed web interface;
- Office – intended for distributed installation.
- Select the Office mode.
- View the terms of the license agreement. It contains several pages. To go to the next page, press Enter.
- Type "y" to accept the license agreement and press Enter.
- Enter the IP address of the central node of the Platform that was installed earlier.
Get the token for the central node. To do this, run the following command on the server with the central node: | Блок кода |
|---|
kubeadm token list |
- Copy the received token.
- Enter the token on the Platform office node and press Enter.
- Specify the label for the Platform office node.
- Allocate RAM to host ClickHouse data (by default, 80%) and press Enter.
- Specify the path to place ClickHouse data (by default:
/opt/chdata) and press Enter. - Specify the path to place PostgreSQL data (by default:
/opt/pgdata) and press Enter. - Specify the path to place NATS data (by default:
/opt/natsdata) and press Enter. - Specify the path to place data (by default:
/opt/dsdata) and press Enter. - Specify the path to temporarily place Traffic Monitor events before loading them to the Platform (by default:
/opt/factsldrtmdata) and press Enter. - Wait for the installation of the office node of the Platform to complete. Next, the Device Monitor Server will be installed. At the same time:
- Folders will be created:
/var/log/iwdms – folder for the Device Monitor server execution logs;/opt/iw/dmserver/bin – folder with the Device Monitor server files;/opt/iw/dmserver/queue – file queue folder;/opt/iw/dmserver/log – symbolic link to the folder/var/log/iwdms
- iwdms user with the key
--system will be added, making it possible to run the service under this user, but not allowing to log in as this user in the Investigation Centre. - A ZIP file from
data/iwdms of the installation package will be unpacked into the required folders. The iwdms user will be assigned as an owner for the aforementioned folders. - In the systemd folder of the services
/etc/systemd/system, the file of the manifest of the Device Monitor Server service iwdms.service will be added, as well as services for syncing with Active Directory – iwdms_ldap.service.
- Select the language of the server being installed and press Enter. This will determine the names of the preinstalled groups, policies, and rules.
- Read the license agreement and select the required action. To continue the installation, you need to accept the license agreement. Select Accept and continue and press Enter.
- Select the Primary server type to install.
- Configure the interaction with the database:
- Create a new database – to create a new database. Use this option for a clean installation;
- Update an existing database – to configure the existing database. Use this option to install with data migration.
Specify the name or the IP address of the server where the PostgreSQL DBMS is located. If you are installing Device Monitor with data migration, use the PostgreSQL DBMS that was used to install the Device Monitor Server on Windows. If you previously selected the installation option Container (podman) and placed the database on the same server with Device Monitor, then enter the address of the network interface of this server. Before this, configure the database (see Подготовка окружения). | Предупреждение |
|---|
| If you selected the installation option Container (podman), you cannot enter localhost or 127.0.0.1 as an IP address. |
- Specify the port for configuring interaction. If you do not specify it, the default
5432 port will be used. - Enter the name of the database. By default –
iwdm. - Enter the name of the DBMS user. By default –
postgres. - Enter the password.
- Select Yes to install the distribution service. In this case, the distribution point will be able to spread the agent distribution kits to workstations. If you previously selected the Container (podman) server installation option, then the distribution service will also be installed with the containerisation support.
- Specify the path to the PFX file of the key that encrypts the channel between the Device Monitor Server and the agents. If you do not specify the path, then the default
/opt/iw/dmserver/ssl.pfx path will be used. - If you are installing the Server to the new database, then you need to create the encryption key. Select Yes.
- Next, you can select the deployment type:
- Interact with Traffic Monitor – with the option to send events to Traffic Monitor;
Operate autonomously – autonomous work without integration with Traffic Monitor. | Предупреждение |
|---|
| | When selecting the autonomous work mode, no predefined rules will be created in the policies by default. |
| Информация |
|---|
| After the installation, you can switch the autonomous mode in the section Settings → | Multiexcerpt include |
|---|
| MultiExcerptName | DM_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| useIncluderPageContext | true |
|---|
| servers. |
If you selected Interact with Traffic Monitor on the previous step, then enter the name of the server or its IP address. | Предупреждение |
|---|
| The server name may contain Latin letters from "a" to "z" (case-insensitive), numbers from "0" to "9", and the hyphen "-". It cannot consist of numbers only. We recommend using the server name that starts with a letter. |
| Информация |
|---|
| If you need to change the InfoWatch Traffic Monitor address after the installation, you can do it in the Device Monitor server database: - the field
TRAFFIC_MONITOR_POLICY_SERVER_ADDRESS of the table Settings contains the address of the Traffic Monitor server that is used by all servers of the Device Monitor pool (both primary and secondary) to obtain the Traffic Monitor policy and distribute it to the agents; - the
TmAddress field in the ServerOption table contains the address of the Traffic Monitor server to which events from Device Monitor are sent. In this table, the TmAddress field may appear multiple times (depending on the number of servers in the pool).
|
If an access token to Traffic Monitor is requested, enter its value. To successfully connect the Device Monitor Server with the Traffic Monitor Server, you need to configure the remote server certificate validation (see Настройка проверки сертификатов удаленных серверов). - If you selected Update an existing database, a check if there are rules that do not support configuration in the new version of Device Monitor is launched. If unsupported rules are detected, the migration will fail. In this case, we recommend contacting the InfoWatch technical support.
- If you selected Update an existing database and plan to use the Device Control module, rules, and white lists, select Using Device Control is required, migrate rules and white lists. Wait until the Device Control rules and white lists are migrated to the new version. If you do not plan to use Device Control, select Using Device Control is not required, delete rules and white lists.
- Enter the IP address of the Device Monitor server.
During the initial installation of the Device Monitor Server and the database, you can load a custom configuration file with default policies and settings. To load the file, enter the path to it, such as /root/configuration.zip. In this case, all existing settings and configuration elements will be replaced with the imported ones. To skip this step, press Enter. | Предупреждение |
|---|
| The configuration file needs to be placed on a local disk or external storage device. Loading the file from a network folder is not supported. |
Wait for the installation to complete. If you are installing in "All-in-one" mode to the office node of the Platform and have previously selected the DM Server Service, Front End option, the following actions will be performed automatically: If you install the web interface on the Platform basis and the Device Monitor Server in sequence, using the Front End only and DM Server Service only installation options, the actions involving the Platform's guard service key and the n.yaml file from the previous step will not be performed automatically. After installation, perform them using the installer. To do this: Run the installation script: - Select Utilities from the menu.
- Select Fix n.yaml file.
- Enter the IP address of the Device Monitor server and wait for the process to complete.
Run the installation script: - Select Utilities from the menu and then Save platform guard public key to IWDM Service. Wait for the process to complete.
Restart the iwdms service: | Блок кода |
|---|
systemctl restart iwdms |
Installation of a secondary serverRegardless of the installation mode, you can install one or more secondary servers in addition to the primary one.
To install the Device Monitor secondary server: Make sure the server meets the hardware and software requirements (see Аппаратно-программные требования). - Follow the steps to prepare the server for Device Monitor installation (see Подготовка окружения).
- Copy the archive containing the Device Monitor Server distribution kit to the hard drive.
Create a directory and unpack the contents of the archive into it. In the example, the archive will be unpacked into the /dmsl_distr directory: | Блок кода |
|---|
mkdir -p /dmsl_distr && tar xvf dmsl_setup_7.21.0.310.tar.gz -C /dmsl_distr |
- Go to the created directory.
Run the setup.sh script, which is included in the distribution kit: | Информация |
|---|
| If you encounter a permission error when running the script, make the file executable using the command: | Блок кода |
|---|
| chmod +x ./setup.sh |
Then run the script. |
- Select Install.
- Select DM Server Service only.
- Select the Device Monitor server installation option:
- Host, to install the server on a host; or
- Container (podman), to install the server with containerisation support.
- Select the language of the server being installed and press Enter. This will determine the names of the preinstalled groups, policies, and rules.
- Read the license agreement and select the required action. To continue the installation, you need to accept the license agreement. Select Accept and continue and press Enter.
- Select the Secondary server type to install.
Specify the name or the IP address of the server where the PostgreSQL DBMS is located. Here and below, specify the same DBMS parameters that you specified when installing the primary server. - Specify the port for configuring interaction. If you do not specify it, the default
5432 port will be used. - Enter the name of the database. By default –
iwdm. - Enter the name of the DBMS user. By default –
postgres. - Enter the password.
- Select Yes to install the distribution service. In this case, the distribution point will be able to spread the agent distribution kits to workstations. If you previously selected the Container (podman) server installation option, then the distribution service will also be installed with the containerisation support.
- Wait for the installation to complete.
If the installation is successful, the Device Monitor Server service will be started. The service will be marked as automatically starting. To check whether the Device Monitor server service is running, run the command: | Блок кода |
|---|
systemctl status iwdms |
Next, go to the Investigation Centre. To connect to the web interface of the Investigation Centre, always use the address or name of the server where the Platform is installed in central mode. If the product in central mode is installed on the office node of the Platform, still use the central node of the Platform for work. |