Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

html form

Rating
0 votes
Favoured:
1
Current Version
0.3
Last Release Date
2011-11-21
Compatible With
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
  • Nagios Fusion
License
GPL
Hits
80107
Files:
FileDescription
html_form.plhtml_form.pl
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
html_form.pl - Authenticate a web page by filling in a form using browser emulation allowing javascript and cookies to be processed.

This script fills in the username and password boxes within a form and then searches the output for an expected string.

This script relies on WWW::HtmlUnit being installed

http://search.cpan.org/~awwaiid/WWW-HtmlUnit-0.15/lib/WWW/HtmlUnit.pm
This script requires that you know a bit about html and the way it works I have tried to document this as best I can as it is not a simple script.


SYNOPSIS
html_form.pl -w -c -u -f
-e (-p) (-d)

Options:

--help or -h This brief help message
--man or -m Full documentation
--warning or -w Time before a warning in seconds
--critical or -c Time before going critical in seconds
--url or -u The url of server (https://someserver.com)
--form or -f The form string Formname&UserBoxName=username&PassBoxName=password&SubmitButtonName
--expect or -e String to find in returned page
--page or -p Show returned page
--debug or -d File to redirect STDERR output to