What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

ADFS + CAS

Votes:

0

I was trying to set up a sensor to monitor CAS login system. Can't seem to figure it out. I tried using HTTP Transaction sensor. Any help will be much appreciated!

adfs login

Created on Jan 28, 2015 6:33:52 PM



Best Answer

Accepted Answer

Votes:

0

The problem is that the HTTP sensors cannot handle redirects at this time. We have a Powershell script here that we wrote to allow you to monitor 2013 exchange with a redirect so you may be able to adapt this to your purposes but the standard HTTP sensors in PRTG will not work.

<scriptname> -hostname "<server>" -user "<user as domain\username>" -password "<password>"

Param(
    [string]$hostname,                                   
    [string]$username,   # as 'domain\username'
    [string]$password,
    [boolean]$test = $false
    )

if ($test) {
. $env:HOMEPATH\testcred.ps1
}


$destination="https://$($hostname)/owa/";
$response = '';
$postParams = @{
    destination="$destination";
    flags='0';
    forcedownlevel='0';
    trusted='0'
    username="$($username)";
    password="$($password)";
    isUtf8='1'
}

$url = "$($destination)auth.owa"

$response = Invoke-WebRequest -uri $url -Method POST -body $postParams

if ($response.content.Contains('Try entering it again')) {
    write-host 'password failed or Exchange2010'
} elseif ($response.content.Contains('Connected to Microsoft Exchange')) {
    write-host '1:success'
} else {
    write-host '0:failed'
}

Created on Feb 3, 2015 9:39:16 AM by  Greg Campion [Paessler Support]



5 Replies

Votes:

0

What kind of a login is this and how do you have the sensor set up? Most form Authentication methods won't work with that or any other sensor in PRTG but basic, NTLM and some form authentication methods will work if they are POST data based.

Created on Jan 30, 2015 11:51:21 AM by  Greg Campion [Paessler Support]




Votes:

0

Are you trying to monitor 2010 Exchange or 2013?

Created on Feb 2, 2015 4:07:55 PM by  Greg Campion [Paessler Support]



Votes:

0

No, I am just trying to monitor login system. We've a lot of applications authenticated by Central Authentication System(CAS). CAS uses ADFS to verify username and password.

For example: LDAP can be used verify a lot of applications. Instead of LDAP, we use CAS+ADFS. I have some applications that is authenticated using LDAP and it is pretty straightforward. But with CAS+ADFS, there are lots of redirection and cookies involved.

Created on Feb 2, 2015 4:14:47 PM



Accepted Answer

Votes:

0

The problem is that the HTTP sensors cannot handle redirects at this time. We have a Powershell script here that we wrote to allow you to monitor 2013 exchange with a redirect so you may be able to adapt this to your purposes but the standard HTTP sensors in PRTG will not work.

<scriptname> -hostname "<server>" -user "<user as domain\username>" -password "<password>"

Param(
    [string]$hostname,                                   
    [string]$username,   # as 'domain\username'
    [string]$password,
    [boolean]$test = $false
    )

if ($test) {
. $env:HOMEPATH\testcred.ps1
}


$destination="https://$($hostname)/owa/";
$response = '';
$postParams = @{
    destination="$destination";
    flags='0';
    forcedownlevel='0';
    trusted='0'
    username="$($username)";
    password="$($password)";
    isUtf8='1'
}

$url = "$($destination)auth.owa"

$response = Invoke-WebRequest -uri $url -Method POST -body $postParams

if ($response.content.Contains('Try entering it again')) {
    write-host 'password failed or Exchange2010'
} elseif ($response.content.Contains('Connected to Microsoft Exchange')) {
    write-host '1:success'
} else {
    write-host '0:failed'
}

Created on Feb 3, 2015 9:39:16 AM by  Greg Campion [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.