|
|||||||||||
|
Re: [Nagiosplug-help] Checking URL for Content that requries password
From: <tom.welsh(at)bt.com>
Date: Wed Oct 03 2007 - 14:19:11 EDT
Take a look at check_http I think that will do exactly what you want out off the box. Here is an example off some stuff I do.
./check_http -H someurl.com --authorization=username:password
This connects to someurl.com provides login via the authorisation strings. Content checks against the --url for the string "Welcome to" warns if response is slower than 5 seconds, Goes critical if response is slower than 7 seconds.
Take a look at all the switches in check_http by issuing a ./check_http
Regards Tom -----Original Message----- Hi everyone, I need a bit of help. I am in the process of evaluating Nagios as a replacement for the very expensive Sitescope system from Mercury Interactive and am enjoying the challenge. I have a small question about check_http or something similar. Basically I have a website that I want to check and depending on a phrase found on the website, alert accordingly. The website requires a password to be passed in via a POST command. I.e. www.example.com POST <password> Look for "Error" If "Error" detected then alert, if "OK" found then show OK. Is this possible and how? Thanks! Mark
The mailing list archive is found here: http://www.nagiosexchange.org/nagiosplug-help.32.0.html - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ Nagiosplug-help mailing list Nagiosplug-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ Nagiosplug-help mailing list Nagiosplug-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Received on Wed Oct 3 14:34:48 2007 This archive was generated by hypermail 2.1.8 : Mon Oct 08 2007 - 18:06:17 EDT |
||||||||||
|
|||||||||||