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

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
100908
Files:
FileDescription
check_form.plcheck_form.pl
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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!