---
title: "Host Template: Application - Microsoft Exchange - Database"
description: ""
url: "https://docs.itrsgroup.com/docs/opsview/6.11.7/opspacks/application-microsoft-exchange-agentless-opspack/application-microsoft-exchange-database-host-template/index.html"
---## Overview

Monitor the status of your Microsoft Exchange mailbox databases with a variety of checks including database disk usage, replication health status and database IO operations.

This Host Template includes the following Service Checks:

| Service&nbsp;Check&nbsp;Name | Description | Default&nbsp;Thresholds (Metric:&nbsp;Warning,&nbsp;Critical) | UOM |
|:-----------------------------|:------------|:------------------------------------------------:|:---:|
| Exchange - Database - Disk Space | Shows the disk space information about one or more mailbox databases. | disk_free_space: &#8203;`30:`,`10:` | % |
| Exchange - Database - Backup Status | Shows the backup status information about one or more mailbox databases. If not run with verbose mode, results will be truncated and summarised. | N/A | N/A |
| Exchange - Database - Replication Health Status | Checks all aspects of replication and replay and the status of Mailbox servers in a database availability group (DAG). | N/A | N/A |
| Exchange - Database - MAPI Connectivity Status | Checks the server functionality by logging on to the mailbox that you specify. If not run with verbose mode, results will be truncated and summarised. | N/A | ms |
| Exchange - Database - I/O | Shows the average length of time, in milliseconds, per database read/write operation. If not run with verbose mode, results will be truncated and summarised. | database_reads: &#8203;`20`,`40`
database_writes: &#8203;`50`,`100` | ms |
| Exchange - Database - Instances | Shows the number of active database copies on the server | N/A | N/A |
| Exchange - Database - RPC Latency | RPC Latency is the average latency in milliseconds of RPC requests per database. If not run with verbose mode, results will be truncated and summarised. | rpc_latency: &#8203;`50`,`100` | ms |
| Exchange - Database - LDAP Search Time | Shows the time in milliseconds to send an LDAP search request and receive a response. If not run with verbose mode, results will be truncated and summarised. | ldap_search_time: &#8203;`50`,`100` | ms |


**Note**


See details about [Monitoring Plugin thresholds here](https://www.monitoring-plugins.org/doc/guidelines.html#THRESHOLDFORMAT).



## Usage Instructions

Please review the overall [Application - Microsoft Exchange Agentless Opspack](https://docs.itrsgroup.com/docs/opsview/6.11.7/opspacks/application-microsoft-exchange-agentless-opspack/application-microsoft-exchange-agentless-opspack/index.html) documentation for details on prerequisites, known issues, and other necessary configurations that apply to all Host Templates in the Opspack.

### Add this Host Template

Add the **Application - Microsoft Exchange - Database** Host Template to your Opsview Monitor host.
If the resource you're monitoring has no hostname or public IP, then open the **Advanced** settings pane and change **Host Check Command** to **Always assumed to be UP**.


**Note**


For more information, refer to the documentation on [Adding Host Templates to Hosts](https://docs.itrsgroup.com/docs/opsview/6.11.7/host/index.html#host-templates).



### Add and configure Variables

The Service Checks in this Host Template use the following variables, and they will be added to your Opsview Monitor instance alongside the Host Template:

- [**WINRM_TRANSPORT**](#winrm_transport)


**Note**


For more information, refer to the documentation on [Adding Variables to Hosts](https://docs.itrsgroup.com/docs/opsview/6.11.7/adding-a-new-variable/index.html#adding-a-variable-to-a-host).



### Apply Changes

Apply Changes and the system will now be monitored:

![View Output](https://docscdn.itrsgroup.com/opsview/images/opspacks-application-microsoft-exchange-agentless-output-application-microsoft-exchange-database.png)

## Additional Information

Ensure you have set the Primary Hostname/IP field of your Opsview Host to the hostname or IP address of your exchange server.

## Available Variables

### WINRM_TRANSPORT

| Plugin&nbsp;Parameter | Position&nbsp;in Variable | Name | Description |
|:---------------------:|:-------------------------:|:-----|:------------|
| `-Transport` | Value | Authentication Type | Authentication type to use |
| `-Username` | Arg1 | Username | Username for remote windows host |
| `-Password` | Arg2 | Password | Password for remote windows host |
| `-Scheme` | Arg3 | Scheme | Scheme for connecting to remote windows host |
| N/A | Arg4 | Extra Args | Extra args for check_by_winrm. The value is appended to the check_by_winrm call. |

## Plugin help

Plugin: `check_microsoft_exchange`


**Secure Args**


This plugin uses the [Secure Args](https://docs.itrsgroup.com/docs/opsview/6.11.7/configuration/secure-arguments/index.html) feature for argument passing.



For mode-specific help, run the plugin with the `-h -m <mode>` flags. This will list the required and optional Variable Arguments for that mode.
The appropriate mode for each Service Check is listed here:

| Service&nbsp;Check&nbsp;Name | Mode |
|:-----------------------------|:-----|
| Exchange - Database - Disk Space | `MSExDatabase.Disk.Space` |
| Exchange - Database - Backup Status | `MSExDatabase.Backup.Status` |
| Exchange - Database - Replication Health Status | `MSExDatabase.Replication.Health` |
| Exchange - Database - MAPI Connectivity Status | `MSExDatabase.MAPI.Connectivity` |
| Exchange - Database - I/O | `MSExDatabase.IO` |
| Exchange - Database - Instances | `MSExDatabase.Instances` |
| Exchange - Database - RPC Latency | `MSExDatabase.RPC.Latency` |
| Exchange - Database - LDAP Search Time | `MSExDatabase.LDAP.Search.Time` |


