Not sure if this is the correct forum for this question, so apologises if its not.
We have a site I need to put a check against, to ensure the site is authenticating a user and then check the resulting page.
It uses form based authentication and I've not yet been able to find anything I can use to login to the page, I've tried a number of Perl Cpan modules but without success.
Attached is a screen shot of the webpage form and also the code from the source code of the webpage.
Thanks in advance
Tony
Logging into a web form
Re: Logging into a web form
you sure can i'm about to head to bed so sorry for the brief response but this old archive has the answer
https://www.mail-archive.com/nagios-use ... 23865.html
https://www.mail-archive.com/nagios-use ... 23865.html
Looking forward to seeing you all at #NagiosCon2019?
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
Re: Logging into a web form
I'm interested to know why you want to test to see if you can log into your EPO server,
i'm a huge fan of EPO and nagios but not sure of the benefit of doing this
you could check to see if your epo server is running properly a number of different ways like checking for the services via nsclient
i'm a huge fan of EPO and nagios but not sure of the benefit of doing this
you could check to see if your epo server is running properly a number of different ways like checking for the services via nsclient
Looking forward to seeing you all at #NagiosCon2019?
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
Re: Logging into a web form
@delboy1966 please let us know if that linked thread helped.
Former Nagios employee
-
- Posts: 96
- Joined: Thu Oct 22, 2015 5:26 am
Re: Logging into a web form
Hi All
Thanks for your help.
@nozlaf
Its been requested. I agree you I could just check if the service is running and we do. However its been requested to ensure that:
1. Authentication is working
2. The page is displaying correctly
So that we aren't made aware of it when a manager can't login or the page isn't loading.
@tmcdonald
For some reason its not actually working, it just comes back with a connection refused using the check_http plugin.
However I have found that using the CPAN WWW::Mechanize module works fine.
Thanks again
Thanks for your help.
@nozlaf
Its been requested. I agree you I could just check if the service is running and we do. However its been requested to ensure that:
1. Authentication is working
2. The page is displaying correctly
So that we aren't made aware of it when a manager can't login or the page isn't loading.
@tmcdonald
For some reason its not actually working, it just comes back with a connection refused using the check_http plugin.
However I have found that using the CPAN WWW::Mechanize module works fine.
Thanks again
Re: Logging into a web form
Just to make sure - are we good to mark this thread as resolved then?
Former Nagios Employee