To ensure the | Multiexcerpt include |
|---|
| MultiExcerptName | DM_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| useIncluderPageContext | true |
|---|
| Server operation, you need to prepare the environment:- Enter the computer where the
| Multiexcerpt include |
|---|
| MultiExcerptName | DM_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| useIncluderPageContext | true |
|---|
| Server will be installed into the domain. Make sure that the server has an FQDN hostname configured. To do this, run the command: As a result, the full name should be displayed, such as dmserv.company.ru | Раскрыть |
|---|
| title | If a short name is displayed, such as dmserv, then: |
|---|
| Set the full name of the host: - Restart the server.
Run the command again:
|
Install Microsoft .NET 8 (https://dotnet.microsoft.com/) on this computer. See the installation examples below.
| Информация |
|---|
| If you plan to install the | Multiexcerpt include |
|---|
| MultiExcerptName | DM_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| useIncluderPageContext | true |
|---|
| Server with containerization support (see Новая установка), then installing .NET 8 is not required. |
- Complete the Inotify subsystem settings. For this:
- Open the configuration file
/etc/sysctl.conf for editing. Add the following strings at the end of the file: | Блок кода |
|---|
| fs.inotify.max_user_instances = 16384
fs.inotify.max_user_watches = 32768
fs.inotify.max_queued_events = 262144 |
You can also set the maximum number of files to be opened. To do this, specify the value of the file-max parameter, such as: | Блок кода |
|---|
| fs.file-max = 500000 |
- Save the changes and close the configuration file.
To apply the new subsystem settings, run the command:
- If the installation is performed on a server running Mos.OS, make sure that the official OS repositories are available:
software, update, oss-suse. - Install the
conntrack (or conntrack-tools) and socat packages. For an example of package installation, see below. If you are going to use the option to install the server with containerization support, install the podman package. | Раскрыть |
|---|
| title | Examples for installing the podman package on ALT OS, Astra Linux, RED OS, and Mos.OS: |
|---|
| |
- Configure the antivirus for joint operation with the System (see Antivirus configuration for Device Monitor Server on Linux OS).
- Configure the POD network rules or disable the firewall (see Firewalld and Kubernetes interaction conflicts, Firewall complete shutdown).
- Install the Python version 3 interpreter. The package with the interpreter is not included in the product distribution kit.
| Раскрыть |
|---|
| title | If the installation is performed on a server running RedOS, Mos.OS, or Astra Linux: |
|---|
| Install the following packages: RED OS: | Блок кода |
|---|
| dnf install python3-pyyaml
dnf install python3-importlib-metadata |
Astra Linux: | Блок кода |
|---|
| apt-get install python3-importlib-metadata
apt-get install python3-distutils
apt-get install python3-mako
apt-get install python3-yaml |
Mos.OS: | Блок кода |
|---|
| zypper install python3-PyYAML
zypper install python3-importlib-metadata |
| Информация |
|---|
| The packages may be missing in the product distribution kit and repositories. In this case, download and install the required packages manually. |
|
| Раскрыть |
|---|
| title | If the installation is performed on a server running ALT OS: |
|---|
| | Информация |
|---|
| The packages may be missing in the product distribution kit and repositories. In this case, download and install the required packages manually. |
- Configure the correspondence between the encryption algorithms of the
| Multiexcerpt include |
|---|
| MultiExcerptName | DM_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| useIncluderPageContext | true |
|---|
| and | Multiexcerpt include |
|---|
| MultiExcerptName | TM_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| useIncluderPageContext | true |
|---|
| Servers. To do this, modify the file /etc/openssl/openssl.cnf as follows:Find the strings in the file: | Блок кода |
|---|
| # Extra OBJECT IDENTIFIER info:
#oid_file = $ENV::HOME/.oid
oid_section = new_oids |
After them, add the strings: | Блок кода |
|---|
| # System default
openssl_conf = default_conf |
Add the following strings to the end of the file: | Блок кода |
|---|
| [default_conf]
ssl_conf = ssl_sect
[ssl_sect]
system_default = system_default_sect
[system_default_sect]
MinProtocol = TLSv1.2
CipherString = DEFAULT:@SECLEVEL=1 |
|
| Раскрыть |
|---|
| title | If the installation is performed using the Host option on a server running Astra Linux 1.8: |
|---|
| - Configure the correspondence between the encryption algorithms of the
| Multiexcerpt include |
|---|
| MultiExcerptName | DM_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| useIncluderPageContext | true |
|---|
| and | Multiexcerpt include |
|---|
| MultiExcerptName | TM_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| useIncluderPageContext | true |
|---|
| Servers. To do this, modify the file /etc/openssl/openssl.cnf as follows:
Find the strings in the file: | Блок кода |
|---|
| # Extra OBJECT IDENTIFIER info:
#oid_file = $ENV::HOME/.oid
oid_section = new_oids |
After them, add the strings: | Блок кода |
|---|
| # System default
openssl_conf = default_conf |
Add the following strings to the end of the file: | Блок кода |
|---|
| [default_conf]
ssl_conf = ssl_sect
[ssl_sect]
system_default = system_default_sect
[system_default_sect]
MinProtocol = TLSv1.2
CipherString = DEFAULT:@SECLEVEL=1 |
|
| Раскрыть |
|---|
| title | If the installation is performed using the Host option on a server running RED OS 8: |
|---|
| Install the package openldap-compat: | Блок кода |
|---|
| dnf install openldap-compat |
If you installed the package after installing the | Multiexcerpt include |
|---|
| MultiExcerptName | DM_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| useIncluderPageContext | true |
|---|
| server, restart the webapi service:
| Блок кода |
|---|
| systemctl restart iwdms_webapi |
|
| Раскрыть |
|---|
| title | If the installation is performed on a server running Mos.OS: |
|---|
| Install the packages ethtool, app_armor, fuse-overlayfs, and sysctl with dependencies: | Блок кода |
|---|
| zypper install ethtool
zypper install patterns-base-apparmor
zypper install procps
zypper install fuse-overlayfs |
|
| Раскрыть |
|---|
| title | If you plan to distribute Agents to workstations running Windows OS: |
|---|
| Install the Samba client on the server: | Информация |
|---|
| If you plan to install the | Multiexcerpt include |
|---|
| MultiExcerptName | DM_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| useIncluderPageContext | true |
|---|
| Server with containerization support (see Новая установка), then installing the Samba client on the server is not required. |
|
Install the PostgreSQL DBMS. We recommend to install the DBMS on another computer. If you need to receive events from a small number of Agents, you can install the PostgreSQL DBMS together with the | Multiexcerpt include |
|---|
| MultiExcerptName | DM_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| useIncluderPageContext | true |
|---|
| Server.| Раскрыть |
|---|
| title | Example of installing PostgreSQL 15 on RED OS |
|---|
| Update the packages installed in the system: Install and initialize the DBMS by running the following commands: | Блок кода |
|---|
| sudo dnf install postgresql
sudo dnf install postgresql15-server
sudo postgresql-15-setup initdb
sudo systemctl enable postgresql-15.service --now |
Make sure the PostgreSQL service is running and has the status active: | Блок кода |
|---|
| sudo systemctl status postgresql-15.service |
You can also obtain information on installing PostgreSQL on RED OS from the official RED OS documentation.
|
| Информация |
|---|
| To ensure the correct and uninterrupted operation of the Server, store the DBMS files and shadow copies of events on different physical disks. To work with the DBMS, you need a role with the rights to create a database. |
Additionally configure the database. | Предупреждение |
|---|
| The file names postgresql.conf and pg_hba.conf are the same for all operating systems, but paths to them differ. The article provides example paths used on RED OS. |
- Open the file
/var/lib/pgsql/15/data/postgresql.conf. - Enable the ability to escape special characters when inserting strings into database tables. To do this, set the
"standard_conforming_strings" parameter to on. - Set the parameters that optimize performance. For a more precise selection of parameters, use the PGTune calculator.
- Assign the value 250 to the
"max_connections" parameter. - Configure the log rotation.
- Specify other parameters (memory resource consumption, WAL settings, query planning) in accordance with the official PostgreSQL documentation.
If you are going to use the option to install a server with containerization support and place the database on a single server with | Multiexcerpt include |
|---|
| MultiExcerptName | DM_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| useIncluderPageContext | true |
|---|
| : Find the string in the file: | Блок кода |
|---|
| # listen_addresses = 'localhost' |
and replace it with the following: | Блок кода |
|---|
| listen_addresses = '*' |
- Open the
/var/lib/pgsql/15/data/pg_hba.conf file for editing. If you are going to use the option to install a server with containerization support and place the database on a single server with | Multiexcerpt include |
|---|
| MultiExcerptName | DM_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| useIncluderPageContext | true |
|---|
| , add the following parameter as the first line: | Блок кода |
|---|
| host all all 0.0.0.0/0 md5 |
- If you are installing the DBMS on a server that is separate from
| Multiexcerpt include |
|---|
| MultiExcerptName | DM_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| useIncluderPageContext | true |
|---|
| , configure access to the DBMS in the pg_hba.conf file in accordance with the official PostgreSQL documentation. Restart the PostgreSQL service. | Раскрыть |
|---|
| title | Example command for RED OS: |
|---|
| | Блок кода |
|---|
| sudo systemctl restart postgresql-15.service |
|
If you plan to subsequently install the System with containerization support and use Oracle Linux, we recommend you to install the language pack after installing the DBMS: | Блок кода |
|---|
| sudo dnf install langpacks-ru -y |
- Configure the password for
postgres. For this:Log in as a postgres user: Run the program psql: Enter the password setting command: | Блок кода |
|---|
| \password postgres |
- Enter the new password twice.
Log out of the psql program and switch the postgres user:
- To successfully connect the
| Multiexcerpt include |
|---|
| MultiExcerptName | DM_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| useIncluderPageContext | true |
|---|
| Server to the | Multiexcerpt include |
|---|
| MultiExcerptName | TM_Short_Name |
|---|
| PageWithExcerpt | Excerpt Source |
|---|
| useIncluderPageContext | true |
|---|
| Server, configure the remote server certificate verification (see Настройка проверки сертификатов удаленных серверов). You can also do this after the installation. | Раскрыть |
|---|
| title | If you plan to use the Kerberos protocol to retrieve information about employees and computers from MS Active Directory: |
|---|
| - If Device Monitor is installed using the Host option:
- Make sure that the Device Monitor Server time matches the domain controller time. The maximum allowable deviation is 5 minutes. If necessary, install and configure
chrony or ntpd. - Make sure that the file
/etc/resolv.conf:- has the search domain properly specified;
- Active Directory DNS servers are specified as DNS servers.
- Install the packages
krb5-workstation, krb5-libs, cyrus-sasl-gssapi. You can also install the package openldap-clients for diagnostics in case of connection errors. - Configure the Kerberos protocol configuration file
/etc/krb5.conf. Make sure to respect the case when specifying Realm addresses.
- When installing Device Monitor using the Container option:
- Install the
openldap-clients package to diagnose connection errors. - Configure the Kerberos protocol configuration file
/opt/iw/dmserver/etc/krb5.conf. Make sure to use the correct case when specifying Realm addresses.
| Информация |
|---|
| The steps can also be performed after installing the Device Monitor Server. |
|
- Make sure that the server has the current date and time set.
Examples of installing additional packagesExample of installing .NET on ALT OSMake sure that the ALT OS repositories are available by running the command: - If the repositories are unavailable (commented out), you need to edit the
/etc/apt/sources.list file by uncommenting the strings containing the repository addresses. - Edit the file
/etc/apt/apt.conf:- Uncomment all stings.
- Provide the correct username and password for the domain account.
Install the .NET 8 runtime with the necessary ASP.NET Core support. To do this, run the command in the terminal:
| Блок кода |
|---|
| apt-get install dotnet-aspnetcore-runtime-8.0 |
As a result, the .NET 8 runtime environment with ASP.NET Core support will be installed. Check the installed .NET 8 by running the command: Image Added
Example of installing .NET on Astra LinuxMake sure that the Astra Linux repositories are available by running the command: - If the repositories are unavailable (commented out), you need to edit the
/etc/apt/sources.list file by uncommenting the lines containing the repository addresses. - Edit the file
/etc/apt/apt.conf:- Uncomment all strings.
- Provide the correct username and password for the domain account.
Install the .NET 8 runtime with the necessary ASP.NET Core support. To do this, run the following command in the terminal: | Блок кода |
|---|
| apt install aspnetcore-runtime-8.0 |
As a result, the .NET 8 runtime environment with ASP.NET Core support will be installed. Check the installed .NET 8 by running the command: Image Added
Example of installing .NET on Astra LinuxMake sure that the RED OS repositories are available by running the command: Install the .NET 8 runtime with the necessary ASP.NET Core support. To do this, run the following command in the terminal: | Блок кода |
|---|
| sudo dnf install aspnetcore-runtime-8.0 |
In some Linux distributions, the package name may be dotnet-aspnetcore-runtime-8.0 As a result, the .NET 8 runtime environment with ASP.NET Core support will be installed. Check the installed .NET 8 by running the command: Image Added
| Раскрыть |
|---|
| title | If errors occur during the installation of .NET: |
|---|
| Remove all packages related to .NET from the operating system. Run the command: | Блок кода |
|---|
| sudo dnf remove 'dotnet*' 'aspnet*' 'netstandard*' |
Reinstall a specific version of .NET, for example: | Блок кода |
|---|
| sudo dnf install aspnetcore-runtime-8.0-8.0.17-1.el7 |
To view the list of available versions, run: | Блок кода |
|---|
| dnf --showduplicates list aspnetcore-runtime-8.0 |
|
Example of installing conntrack and socat on RED OSTo ensure proper Kubernetes support, check that the conntrack and socat packages are installed. For this: In the command line, type: In response, you will see information about the operation and the current version of this package. If conntrack is not installed, install it using the command:
| Блок кода |
|---|
| sudo dnf install conntrack |
If the package is not available in the repository, download it, navigate to the directory containing the package, and install it manually using a command like:
| Блок кода |
|---|
| rpm -Uhv ./<package_name> |
- Repeat the steps described above to install the
socat package.
|