---
title: Installing the Health monitoring Windows service
related:
  - https://docs.kentico.com/k10/configuring-kentico/health-monitoring/registering-performance-counters.md
  - https://docs.kentico.com/k10/configuring-kentico/health-monitoring/enabling-health-monitoring.md
  - https://docs.kentico.com/k10/configuring-kentico/health-monitoring/monitoring-using-the-performance-monitor.md
  - https://docs.kentico.com/k10/external-utilities/kentico-installation-manager.md
  - https://docs.kentico.com/k10/external-utilities/kentico-service-manager.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

> **Info:** **Kentico EMS required**
>
> Features described on this page require the **Kentico EMS** license.

Kentico provides a dedicated Windows service for Health monitoring purposes called **Kentico Health Monitor**.

You can use this service to additionally register performance counters. This service is also useful for writing values to the _Scheduled tasks in queue_, _E-mails in queue_ and _Error e-mails in queue_ performance counters. As these three counters require database access to get their values, using the Windows service for their monitoring instead of the application itself can provide **better performance**.

## Installing the Health monitoring Windows service using Kentico Service Manager

The easiest way to install the Health monitoring Windows service is to use the Kentico Service Manager utility:

1. Launch the [Kentico Service Manager](https://docs.kentico.com/k10/external-utilities/kentico-service-manager.md) utility from the Kentico program files group in the Windows Start menu.

   - You can also launch the **KSM** utility from [Kentico Installation Manager](https://docs.kentico.com/k10/external-utilities/kentico-installation-manager.md) using the **Services** button.
2. Choose the Kentico instance where you want to install the service (select the CMS folder).
3. Select the **Kentico Health Monitor** service.
4. Click **Install**. 

   ![Installing the Kentico Health monitor service](https://docs.kentico.com/docsassets/k10/installing-the-health-monitoring-windows-service/Health_Monitoring_Service_Install.png "Installing the Kentico Health monitor service")
5. Click **Start** to start the service after it is installed.

You have installed the **Kentico Health Monitor** service, which is now running and ready to be used.

You can uninstall the service at any time by clicking **Uninstall** in the Kentico Service Manager utility.

## Installing the Health monitoring Windows service using the command line

To install the Windows service from the command line, you need to use **Installer Tool** (InstallUtil.exe), which is a native part of the .NET Framework:

1. Open the Windows command line (type _cmd_ in the Start menu search box).
2. Navigate to the .NET folder containing _InstallUtil.exe_ (e.g. _c:\Windows\Microsoft.NET\Framework64\v4.0.30319\\_).
3. Execute _InstallUtil.exe_ from the Windows command line with the following parameters:

   ```powershell

   InstallUtil /webpath="C:\inetpub\wwwroot\Kentico\CMS" "c:\inetpub\wwwroot\Kentico\CMS\bin\HealthMonitoringService.exe" /LogToConsole=true /i

   ```

   The following table describes the used parameters:

   | **/webpath**         | Path to the CMS folder of the Kentico instance for which you want to install the service.                                                                               |
   | -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   | **second parameter** | Path to the _HealthMonitoringService.exe_ file in the _Bin_ folder inside the application (typically _c:\inetpub\wwwroot\Kentico\CMS\bin\HealthMonitoringService.exe_). |
   | **/LogToConsole**    | Optional parameter that determines whether the installation progress is logged to the console.                                                                          |
   | **/i**               | If this parameter is used, the Installer Tool performs installation of the Windows service.                                                                             |
4. Open the **Services** management console (type _services.msc_ into the Start menu search box).
5. Select the **Kentico CMS Health Monitor ()** service.
6. Click the **Start Service** button on the top toolbar.

   ![](https://docs.kentico.com/docsassets/k10/installing-the-health-monitoring-windows-service/image.png)

## Configuring database permissions for services

By default, Kentico services run under the **Local System** (_NT AUTHORITY\System_) account. If you experience problems with services not starting, the Local System account may not have sufficient permissions for your Kentico database.

Either grant sufficient permissions for the _NT AUTHORITY\SYSTEM_ login in your database (at least assign a schema with the _Connect_ permission), or use the Windows **Services** management console to change the Log On account of individual services to a different account with database access.

## Uninstalling the Health monitoring Windows service using the command line

1. Open the Windows command line (type _cmd_ in the Start menu search box).
2. Navigate to the .NET folder containing _InstallUtil.exe_ (e.g. _c:\Windows\Microsoft.NET\Framework64\v4.0.30319\\_).
3. Execute _InstallUtil.exe_ from Windows command line with the following parameters: 

   ```powershell

   InstallUtil /webpath="C:\inetpub\wwwroot\Kentico\CMS" "c:\inetpub\wwwroot\Kentico\CMS\bin\HealthMonitoringService.exe" /LogToConsole=true /u

   ```

After executing this command, the Health monitoring Windows service for the Kentico instance specified by the **/webpath** parameter is uninstalled.
