---
title: "Host Template: Application - Microsoft 365 - OneDrive"
description: ""
url: "https://docs.itrsgroup.com/docs/opsview/6.11.7/opspacks/application-microsoft-365-opspack/application-microsoft-365-onedrive-host-template/index.html"
---## Overview

This Host Template allows you to monitor your Microsoft 365 Subscription's OneDrive service, providing information on the service status and the storage usage of the entire userbase.

This Host Template includes the following Service Checks:

| Service&nbsp;Check&nbsp;Name | Description | Default&nbsp;Thresholds (Metric:&nbsp;Warning,&nbsp;Critical) | UOM |
|:-----------------------------|:------------|:------------------------------------------------:|:---:|
| Microsoft 365 - OneDrive - Service Status | The service status of OneDrive and any reported issues | N/A | N/A |
| Microsoft 365 - OneDrive - Storage Used | The total storage used of the OneDrive service | N/A | B |


**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 365 Opspack](https://docs.itrsgroup.com/docs/opsview/6.11.7/opspacks/application-microsoft-365-opspack/application-microsoft-365-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 365 - OneDrive** 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:

- [**MICROSOFT365_CREDENTIALS**](#microsoft365_credentials)


**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-365-output-application-microsoft-365-onedrive.png)

## Additional Information

We recommend adding the **Application - Microsoft 365 - Overview** Host Template to your Host when using this template to give you a better overview of your Microsoft 365 subscription.

## Available Variables

### MICROSOFT365_CREDENTIALS

The Value is not used and therefore can be set to anything. Override the arguments with your credentials.

| Plugin&nbsp;Parameter | Position&nbsp;in Variable | Name | Description |
|:---------------------:|:-------------------------:|:-----|:------------|
| N/A (Opsview UI Only) | Value | Microsoft 365 Credentials | The credentials for your Microsoft 365 account |
| `--client-id` | Arg1 | Microsoft 365 Client ID | ClientID of the Microsoft 365 account |
| `--client-secret` | Arg2 | Microsoft 365 Client Secret | Client Secret of the Microsoft 365 account |
| `--tenant-id` | Arg3 | Microsoft 365 Tenant ID | TenantID of the Microsoft 365 account |

## Plugin help

Plugin: `check_microsoft365`


**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 |
|:-----------------------------|:-----|
| Microsoft 365 - OneDrive - Service Status | `Microsoft365.OneDrive.Service.Status` |
| Microsoft 365 - OneDrive - Storage Used | `Microsoft365.OneDrive.Storage.Used` |


