check access user/password in web page

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
yojarmye
Posts: 2
Joined: Tue Nov 19, 2013 3:44 am

check access user/password in web page

Post 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 ...
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check access user/password in web page

Post by abrist »

Are the input form values passed to the server as a GET request?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
yojarmye
Posts: 2
Joined: Tue Nov 19, 2013 3:44 am

Re: check access user/password in web page

Post 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!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check access user/password in web page

Post 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.
Former Nagios employee
Locked