[Nagiosplug-help] Checking URL for Content that requries password

Jason Martin jhmartin at toger.us
Wed Oct 3 20:26:08 CEST 2007


On Wed, Oct 03, 2007 at 07:19:11PM +0100, tom.welsh at bt.com wrote:
> Hi Mark,
> 
> 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
> --url=/wiki/index.php/Main_Page --string='Welcome to' -w 5 -c 7 
This uses HTTP authentication, but I believe the OP needed to
essentially 'post' a name/password *form* from a page, not HTTP
auth. Think hotmail.com, for example.

-Jason Martin

> From: nagiosplug-help-bounces at lists.sourceforge.net
> [mailto:nagiosplug-help-bounces at lists.sourceforge.net] On Behalf Of Mark
> Thomas
> Sent: 03 October 2007 17:26
> To: nagiosplug-help at lists.sourceforge.net; mark at firstoption.net
> Subject: [Nagiosplug-help] Checking URL for Content that requries
> password
> 
> 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
> 
> 
> - Mark Thomas (Veeoh)
> 
> -----------------------
> 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 at 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 at 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

-- 
As a matter of fact, no, I don't have a life.
This message is PGP/MIME signed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 211 bytes
Desc: not available
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20071003/83daf066/attachment.sig>


More information about the Help mailing list