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

Check form

Rating
4 votes
Favoured:
2
Current Version
0.4
Last Release Date
2010-08-20
Compatible With
  • Nagios 2.x
  • Nagios 3.x
License
GPL
Hits
106061
Files:
FileDescription
check_form.plcheck_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!
Check form allows the user to submit forms using post and test the output for a string. This can be useful to test authentication boxes or any other forms that use the POST method. Check form can also test the response time of the form and produce timing information for Nagios performance monitoring.
check_form.pl -u -f -e (-c -w )
-u # url string to post form data against
-e # string to query on the authenticated page
-f # post string
-c # the number of seconds to wait before a going critical
-w # the number of seconds to wait before a flagging a warning
-n do not follow redirection
-d prints page contents (debugging info)
-s prints status code (debugging info)
e.g check_form.pl -u https://foobar.com -f "login=foo&password=bar" -e "Hello sweetie" -c 10 -w 3 -v

Comments are very welcome
Reviews (2)
The app we use checks the browser and it returns 'browser not supported' - any chance you can add in a user agent string paramater?
bymaxidea, March 23, 2011
It was a useful script but one bug found.
When we get a authentication failed , the "CRITICAL" will show on the message. But the state of Nagios was not changed! The state of Nagios was OK. So I hope it can be fixed at next release. Thanks!