Page 1 of 1

Microsoft 365 Monitoring

Posted: Wed Dec 04, 2024 11:55 am
by jimdurr
I'm trying to walk through the MS365 Wizard, and I think I have everything set up correctly on the MS side of things. After putting in the tenant, application, and secret and clicking Next I just get a spinning wheel for a little while and then:

Gateway Timeout
The gateway did not receive a timely response from the upstream server or application.

I recently made some changes on the 365 side (changed the permissions from Delegated to Application). Prior to that clicking Next would take me to a settings page, but most things were greyed out/inaccessible and the host wasn't filled in, and it mentioned that we had anonymous data turned on on the 365 side, which I had already changed. So I think the permissions change was the key to getting things to work, but now it's bombing out trying to read the data.

Re: Microsoft 365 Monitoring

Posted: Wed Dec 04, 2024 4:33 pm
by lgute
Hi @jimdurr,

Thanks for reaching out.

When you changed permissions, did you use the Grant admin consent for <organization name> button? You do have to be a Global Administrator to grant this.

Here are the instructions from Microsoft:
https://docs.microsoft.com/en-us/azure/ ... in-consent

Re: Microsoft 365 Monitoring

Posted: Thu Dec 05, 2024 9:51 am
by jimdurr
Laura,

Yes, admin consent has been granted by my MS365 admin account. I did run this command from the Nagios server and it does return a bunch of stuff after a bit of a wait:

/usr/local/nagios/libexec/check_microsoft_365.php --tenant '*****' --appid '******' --secret '*****' --warning '0' --critical '1' --mode 'userslist' -v