Nagios monitoring 0365

Discuss new project and feature ideas here.
See labs.nagios.com for new projects under development.

Nagios monitoring 0365

Postby Helmut Schaeufele » Mon Aug 07, 2017 8:12 am

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>
Helmut Schaeufele
 
Posts: 1
Joined: Thu Sep 08, 2016 1:48 am

Re: Nagios monitoring 0365

Postby mcapra » Mon Aug 07, 2017 9:44 am

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
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3600
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios monitoring 0365

Postby dwhitfield » Mon Aug 07, 2017 3:31 pm

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.
Need additional support for CentOS or ubuntu? Try OpenLogic: https://www.openlogic.com/talk-to-expert

We can write Nagios plugins for you!

We are hiring: https://www.perforce.com/careers
dwhitfield
Former Nagios Staff
 
Posts: 4577
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN


Return to Nagios Ideas

Who is online

Users browsing this forum: No registered users and 2 guests