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
81613
Files:
FileDescription
html_form.plhtml_form.pl
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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