Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check form
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
-u
-e
-f
-c
-w
-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)
byideal2545, July 12, 2017
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!
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!