Page 1 of 1

Nagios monitoring 0365

Posted: Mon Aug 07, 2017 8:12 am
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>

Re: Nagios monitoring 0365

Posted: Mon Aug 07, 2017 9:44 am
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.

Re: Nagios monitoring 0365

Posted: Mon Aug 07, 2017 3:31 pm
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.