Unable to monitor Office 365 instance
search cancel

Unable to monitor Office 365 instance

book

Article ID: 131982

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

When I test the connection using Tenant ID, Client ID and Client Secret, the connection is successful from Office 365 probe configuration page. When I save the settings, it is staying in the state with the below error in logs and alarm message. PROD-Office365-Monitoring is not responding (reason: Connection and/or inventory update failure) {Failed : HTTP error code : HTTP/1.1 500 Internal Server Error [Lorg.apache.http.Header;@38092e86 System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.. at System.ThrowHelper.ThrowKeyNotFoundException(). at System.Collections.Generic.Dictionary`2.get_Item(TKey key). at Microsoft.Office365ServiceComms.Common.OAuthAuthorizeAttribute.OnAuthorization(HttpActionContext actionContext). at System.Web.Http.Filters.AuthorizationFilterAttribute.OnAuthorizationAsync(HttpActionContext actionContext, CancellationToken cancellationToken). --- End of stack trace from previous location where exception was thrown ---. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(). at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task). at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext(). --- End of stack trace from previous location where exception was thrown ---. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(). at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task). at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext(). --- End of stack trace from previous location where exception was thrown ---. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(). at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task). at System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext(). --- End of stack trace from previous location where exception was thrown ---. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(). at System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext(). --- End of stack trace from previous location where exception was thrown ---. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(). at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task). at Microsoft.Office365ServiceComms.MessageHandlers.RequestResponseLogHandler.d__1.MoveNext(). --- End of stack trace from previous location where exception was thrown ---. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(). at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task). at System.Web.Http.HttpServer.d__0.MoveNext()}

Environment

- UIM v8.5.1
- office365 v1.0

Cause

- configuration task

Resolution

The probe is reporting back information that it needs in order to successfully pull data from the platform the probe is running on. This means an error is happening not within the probe config, but at the application it is trying to connect to. 

This may be referring to the section of configuration here: 

https://docops.ca.com/ca-unified-infrastructure-management-probes/ga/en/alphabetical-probe-articles/office365-office-365-monitoring/office365-office-365-monitoring-release-notes#office365(Office365Monitoring)ReleaseNotes-RegisterOffice365ApplicationintheAzureActiveDirectory

Under step 5,e. In Keys, create a key value that is unique to the app.