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

tom.welsh at bt.com tom.welsh at bt.com
Wed Oct 3 20:19:11 CEST 2007


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

-----Original Message-----
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




More information about the Help mailing list