Ad Widget

Collapse

Web scenario and Azure AD authentication.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zaicnupagadi
    Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2010
    • 73

    #1

    Web scenario and Azure AD authentication.

    Hey,

    I wanted to monitor some websites like for instance "https://admin.microsoft.com/Adminportal/Home?source=applauncher#/servicehealth" where I can monitor the status of Azure services for my particular tenant, I am truggling with building a web scenario that would check particular word on this site, but seems logging does not really work.

    Any suggestions / thoughts if it is even possible to log in on such (Azure AD authentication) site?

    SPOILER: I KNOW I can do the same with powershell and get the status, this website is just an example to get the overview of what I am trying to achieve. The thing is I got some other websites protected by Azure login, and wanted to check their health status.

    Appreciate any help,
    Pawel
  • 1berto
    Senior Member
    • Sep 2018
    • 182

    #2
    You know that you can use powershell, but have you?
    Or... Can you do the test from the command line with the same options that are you using in zabbix?
    In Unix i would use curl to be assured that i have set all parameters working and then (and only then) i would try it as an item.
    I myself can't help with Windows command, but if you post a working windows Powershell example (hidding sensible information of course) , other users could help you.

    Comment

    • zaicnupagadi
      Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2010
      • 73

      #3
      Hey 1berto, Thanks for answering. I am fascinated in how to pass such credentials strictly in webscenario, I could do a command line query, however I'm not sure how ZABBIX triggers such.

      The issue with such login (hotmail, o365 services) is that first you got a question about login, and later about the password - these are not in "one" form, instead you are being asked twice for different piece of information.

      In PS I could use sth like restmethod or webrequest and get desired info (even better because it might be structured), I wanted to ask not how to read such information, but strictly is there a hero in this world that figured out how to monitor websites with such login method (first login, later password) purely with web scenarios .

      Cheers,
      J

      Comment

      Working...