Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

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


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 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
--help

Regards

Tom

Do you need help?X

-----Original Message-----

From: nagiosplug-help-bounces@lists.sourceforge.net [mailto:nagiosplug-help-bounces@lists.sourceforge.net] On Behalf Of Mark Thomas
Sent: 03 October 2007 17:26
To: nagiosplug-help@lists.sourceforge.net; mark@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

Do you need more help?X

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@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

Can we help you?X

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library