Nagios monitoring 0365

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Helmut Schaeufele
Posts: 1
Joined: Thu Sep 08, 2016 1:48 am

Nagios monitoring 0365

Post by Helmut Schaeufele »

Hi

we want to Monitor 0365 with Webincjet. For this we Need to authenticate . As within o365 Webpage Redirect is use we can not authenticate against O365.
Do somebody have a solution
<case
id="1"
method="get"
url="https://home.dynamics.com/"
verifypositive="Dynamics"
errormessage="Not get W"
/>

<case
id="2"
description1="Authentication on Dynamics"
method="post"
url="https://login.microsoftonline.com/common/login"
postbody="login=test.account1@xyz.com&passwd=tttt^"
verifynegative=">Error"
errormessage="Unable to authenticate user test.account1@xyz.com in Dynamics"
/>


</testcases>
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios monitoring 0365

Post by mcapra »

Selenium is a pretty common solution:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Otherwise I've been exploring developing a plugin that works with CasperJS to reduce the overhead needed for such use cases, since Nagios XI already includes a PhantomJS binary. If you like, I can pass along once it's all documented and finished.

Also this plugin appears to be making calls to some Office365 endpoints using mechanize:
https://gist.github.com/dlundgren/f4778 ... 9f727f9a7c

Similar concepts could probably be applied to your use case if you're willing to write a bit of code.
Former Nagios employee
https://www.mcapra.com/
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios monitoring 0365

Post by dwhitfield »

I've noticed in the past that there is often a third page that displays quickly, so you may need an additional case.

Aside from that, @mcapra is correct about Selenium.
Locked