Date: Sat, 30 Mar 2024 00:52:27 +0000 (UTC) Message-ID: <1376897765.5825.1711759947880@ip-10-0-1-161.ec2.internal> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_5824_123399042.1711759947876" ------=_Part_5824_123399042.1711759947876 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Users of web sites often complain about difficulties with loggin= g into those sites. The causes of those difficulties include user error and= problems with Web server. Using Uptime Infrastructure Monitor's HTTP (Web = Services) monitor, you can monitor the page that users go to in order to lo= gin to a Web site.
Note
The login page will probably contain a form (denoted by the <form>= tags) that describes how the fields on the page are used to process a user= login. In a Web browser window, the login form will look something like th= is:
The following is the HTML code for the form illustrated above:
<tabl= e width=3D"100%" border=3D"0" cellspacing=3D"0" cellpadding=3D"0"> <form method=3D"POST" action=3D"login.aspx"> <input type=3D'hidden' name=3D'state' value=3D'LOGIN'> <tr> <td align=3D'left' valign=3D'top' nowrap> Username: </td> <td valign=3D'top'> <input type=3D'text' name=3D'user' id=3D'user' class=3D'= loginEntries' value=3D'' maxlength=3D'256'> </td> </tr> <tr> <td align=3D'left' valign=3D'top' nowrap> Password: </td> <td valign=3D'top'> <input type=3D'password' name=3D'password' id=3D'passwor= d' class=3D'loginEntries' value=3D''> </td> </tr> =20 <tr valign=3D'middle'> <td align=3D'right' colspan=3D'2'> <input type=3D'submit' name=3D'login' value=3D'Log In'= title=3D"Click this button to log in."> </td> </tr> </form>=20 </table>
The variables that are needed to configure the monitor are enclosed in t= he blue <form> tags. The green POST variable indicates the HTTP POST = function will be used in the service monitor instead of the GET function. T= he green login.aspx is the actual page on the Web server that will be monit= ored by the HTTP service monitor. The red variables are the POST variable s= ettings that will be entered into the monitor template.
Monitoring the Login Page
To monitor a login page, do the following:
The Add Service wi= ndow appears.
Enter the following in the Post String field:
user=3Datestuser&password=3Datestpa= ssword&login=3DLog%20In |
---|
The post string is a combination o= f all of the input variables in the login form; these variables were colore= d red in the example above. Each inp= ut variable within the form should be listed in the post string with an amp= ersand separating the fields. For example, if the form has only two input v= ariables, input_one and input_two, you would enter them like this into the = Post String field:
input_one=3DFirst%20Setting&input_two=3DSeco= nd%20setting |
---|
Notice that %20 is used instead of a space. This ensures tha= t the string can be safely parsed by a Web browser.
If the error message is found, th= en the monitor will fail and will send an alert if you configured it to do = so.