[KB8594] Install Microsoft SQL Server for ESET Inspect server

Issue

Solution

Install Microsoft SQL server

Microsoft SQL version

We recommend using the Microsoft Server Enterprise/Standard edition, which requires a license. Microsoft SQL Server Express is not supported by ESET Inspect On-Prem.

  1. Start the MSSQL installer. Click Custom.

  2. You can keep the default installation path or choose a different one. Click Install.

  3. In the left-side menu, click Installation.

  4. Click New SQL Server standalone installation or add features to an existing installation.

  5. Accept the License terms and click Next.

  6. Select the check box next to Use Microsoft Update to check for updates. Log into ESET Inspect On-Prem. To access ESET Inspect On-Prem from a different device, type the IP Address or hostname of the ESET Inspect Server in the browser.

  7. In the Install Rules window, click Next.

  8. In the Feature Selection window, select the check box next to Database Engine Services and SQL Client connectivity SDK (not valid for 2022). Click Next.

  9. Click Next.

  10. In the Server Configuration window, change the Startup Type for SQL Server Agent to Automatic and click Next.

  11. In the Database Engine Configuration window, select Mixed Mode.

  12. Type and confirm the password for the default sa user. You can use this user during the ESET Inspect Server installation process or create a custom user with sufficient privileges.

  13. Click Add Current User.

  14. Click Next.

  15. Click Install.


TCP/IP communication

  1. Open SQL Server Configuration Manager.

  2. In the left-side menu, click SQL Server Network Configuration.

  3. Click Protocols for MSSQLSERVER.

  4. Ensure that the TCP/IP protocol is enabled.

  5. In the left-side menu, click SQL Server Services.

  6. In the right-side menu, right-click the SQL Server (MSSQLSERVER) service. From the context menu, select Restart.

  7. In the right-side menu, right-click the SQL Server Agent (MSSQLSERVER) service. From the context menu, select Restart.

  8. Verify in Windows Services that the SQL Server service is running, otherwise, the ESET Inspect Server will not work.


Create a custom user MSSQL Server Management Studio

ESET Inspect On-Prem versions

Required user privileges have changed in ESET Inspect On-Prem version 1.8 and later. Users upgrading to version 1.8 or later must set user rights before upgrading the ESET Inspect Server.

  1. Download MSSQL Server Management Studio and install it on the MSSQL Server machine.

  2. Log in to the server.

  3. In the Server type drop-down, select Database Engine. In the Server name drop-down, select the server name used on that server. In the Authentication drop-down, select Windows Authentication.

  4. Click Connect.

  5. In the left-side menu, right-click the Security folder. From the context menu, click New Login.

  6. Type the login name. Select SQL Server Authentication. Type and confirm the password.

  7. Deselect Enforce password expiration.

  8. In the left-side menu, click User Mapping. From the list of users mapped to this login, select a master login. In the Database role membership list verify public role is selected.

  9. Click Securables. Click Search and select The server. Scroll down the Permission for list and select the check box next to Grant for View Server State.

  10. In the left-side menu, click Server Roles. From the server roles list, select dbcreator and verify public is selected.

  11. Click OK.

  12. Install ESET Inspect Server with the new custom SQL user.


Move the database to a separate partition/machine

MySQL is the most crucial ESET Inspect Server component and can consume a lot of disk space. Due to operating system stability, we recommend moving the MySQL data and a temporary folder to the dedicated partition or a separate server machine.

  1. Run SQL Server Management Center.

  2. In Object Explorer, right-click the name of the server.

  3. In the context menu, click Properties.

  4. In the left-side menu, select Database Settings.

  5. In the Database Default Location, change the Data path.

When calculating the required disk space, we track three folders:

  • Database folder—The folder where MySql or SQL Server stores ESET Inspect Database
  • Temporary database—The folder where MySql or SQL Server stores temporary tables
  • The ESET Inspect Server data folder—C:\ProgramData\ESET\Inspect Server\Server folder

If the database is installed on the same machine as the ESET Inspect Server, ESET Inspect On-Prem stops accepting new events when the following occurs:

  • There is less than 3% of free space on the disk with the database folder
  • There is less than 3% of free space on the disk with the temporary database folder
  • There is less than 5% of free space on the disk with the ESET Inspect Server data folder

If the <%EIS%> data folder and temporary database folder are on the same disk, ESET Inspect On-Prem stops accepting new events if there is less than 10% free space on this disk.

If the database is located on the same machine as ESET Inspect On-Prem, there must be at least 10% free disk space where the temporary folder is for the Purge to work. Any problems with the database purge are displayed as red markers on the Events processed chart on the Events Load Dashboard’s tab.