Page 1 of 1
check access user/password in web page
Posted: Tue Nov 19, 2013 3:54 am
by yojarmye
Hi all,
This is my first post, I hope not to make any mistake ... First of all thanks for your help!
I want to monitor my nagios correct access to a website. This web page has two fields on the right side of it, where we indicate the user and password to access the content.
Is it possible to create some service for the Nagios enter a username and password to verify that everything is OK?.
I emphasize that the website asks not automatically so the user name and password, but you have to point manually on the fields to the right of the page to insert.
I hope I explained ...
Re: check access user/password in web page
Posted: Tue Nov 19, 2013 12:39 pm
by abrist
Are the input form values passed to the server as a GET request?
Re: check access user/password in web page
Posted: Thu Nov 21, 2013 4:27 am
by yojarmye
I copied the asp page code:
.....
......
<table border="0" cellspacing="5" cellpadding="0" align="center">
<tr>
<td>
<asp:Label id="lblUsuario" class="loginLabel" runat="server">__LogPageUsuario</asp:Label>
</td>
<td>
<asp:TextBox id="un" runat="server" class="loginInput" onChange="this.value=this.value.toUpperCase()"></asp:TextBox>
</td>
<td>
<span class="loginBoxMsg">
<asp:RequiredFieldValidator id="RFVNIF" Display="Dynamic" ForeColor="#d65825" runat="server" ErrorMessage="xxxxxxx" ControlToValidate="un"></asp:RequiredFieldValidator>
</span>
</td>
</tr>
<tr>
<td>
<asp:Label id="lblPassword" class="loginLabel" runat="server">__LogPagePassword</asp:Label>
</td>
<td>
<asp:TextBox id="pwd" runat="server" class="loginInput" TextMode="Password"></asp:TextBox>
</td>
<td>
<asp:LinkButton id="lnkContinue" class="loginButton" OnClick="loginButton_ServerClick" runat="server">__LogPageEntrar</asp:LinkButton>
<bntControls:loginvalidator id="Loginvalidator1" runat="server"></bntControls:loginvalidator>
</td>
</tr>
</table>
....
....
Thanks!
Re: check access user/password in web page
Posted: Thu Nov 21, 2013 2:55 pm
by tmcdonald
yojarmye wrote:
I emphasize that the website asks not automatically so the user name and password, but you have to point manually on the fields to the right of the page to insert.
What do you mean by this? Do you mean that the form does not appear on the screen until our mouse moves over it? Or do you mean that there is no "HTTP Basic Auth" style pop-up asking for the credentials? Either way this should be easily handled in Perl with minimal module requirements.