kman

Office 365 Service Status Checking

Recommended Posts

Hi All,

Thought I would share a couple of new datasources I have written to enhance the Office 365 checks that are currently provided by LM, It appears a lot of people have been asking for Office365 Service Status so I knocked the below together:

image.png.fed5c1e6f6ee54ff8a35d93fe984e84b.png

These will use the existing device properties that you have set for Office 365

image.png.7018fe9d333f5fa11a9583c44d57d7e6.png

and will use powershell to get the service information in 2 ways, the first is a simple top level service status so for the below

image.thumb.png.656d0a7608d71175cf52fd2b1ad83187.png

The next check (Extended) shows the status of the features that make up each of the above services

image.thumb.png.42b395e48a10e710479adfb2b5ed60af.png

Both of the above use AutoDiscovery to pull in info from any new services Microsoft may add in the future and the Office365_ServiceStatusExtended will also group the Features that are found as below:

image.thumb.png.4f0c8c4318ee183c02772e0a8f850056.png

Hopefully this will help a few people out as its something that I have wanted for a while

Let me know if you can think of any tweaks that may need to be made and apologies I'm not the neatest of script writers but it definitely does the job!

 

 

Share this post


Link to post
Share on other sites

@kman looks like useful stuff! If you publish it to the Exchange and share the locator here I can get it through security review for you. Thanks for contributing!

Share this post


Link to post
Share on other sites

This look really nice.

Does it still looks to 'not real-time' data from MS?
I know there was a limitation in terms of data that API parses (since it was getting data indeed but, not real-time).

Share this post


Link to post
Share on other sites

Hey,

so the Office365 Management API that is used for service status is actually real time, we know this as there are a few other commands you can run to get active ticket references (working on this one now ;-)) and the time Microsoft posted the event.

The GraphAPI on the other hand is out of date by approximately 1-2 Days so I couldn't use that one as it wouldn't make sense,

Both of these have already passed security so are available now, however thinking about it the Extended one is probably the more useful of the 2 as you get the feature status.

Just need to think how I can display the ticket references and along with any service disruption and then it will probably be better than the MS Portal

cheers

Kyle

Share this post


Link to post
Share on other sites

As an example I can get this level of info from Office 365 however I'm not sure the best way to display this in LogicMonitor,

image.thumb.png.a56be35cc6a41a71dcb0a47954ebaea3.png

Any recommendations would be much appreciated

Kyle

Share this post


Link to post
Share on other sites

Just a thought, you could extract those properties from API response & map those into the discovered instances (as auto.* props) - example

auto.service
auto.currentstatus

etc...

From there you could map the ones you feel important & if generating an alarm you could invoke those same properties on the alarm custom message itself (it could be useful) - example

Service '##auto.service##' is degraded....

Not sure if it makes sense to you. Just suggesting it because I did it this way a few days ago when creating a DS that reads from the device Event Fault table (I just mapped the important properties at the instance level & invoked those on the alarm message - in case it generates an alarm).

Thanks,

Share this post


Link to post
Share on other sites

So had another thought and I have managed to write a script to pull in the incidents using Powershell

However I have an issue in that the ConvertTo-JSON output returns he below error when setting up the Eventsource

image.png.72fa179ec82a6957755ee44f27e2ed7f.png

Does anyone know if we can use powershell in the uploaded script and how I can use the ConvetTo-JSON?

Cheers

Kyle

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.