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

Mark Thomas mark at firstoption.net
Wed Oct 3 21:37:03 CEST 2007


Hi everyone.

Looks like I am on the right path, and Tom - it didn't come across as being off, don't worry.

Ok, here is the command I am using:-

./check_http -H <IP> --url=/messaging/DistributedEngineController  --post=<password>

with a -v this provides the following output...

STATUS: HTTP/1.1 200 OK
**** HEADER ****
Server: Microsoft-IIS/5.0
Date: Wed, 03 Oct 2007 19:32:16 GMT
X-Powered-By: ASP.NET
X-Powered-By: Servlet 2.4; JBoss-4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)/Tomcat-5.5
Set-Cookie: JSESSIONID=74ABABB3F5D182DD392CD7D985B3A724; Path=/
Content-Length: 166
**** CONTENT ****
<html><body><form action="DistributedEngineController" method="post">Enter Password: <input type="text" name="password" /><input type="submit" /></form></body></html>
HTTP OK HTTP/1.1 200 OK - 462 bytes in 0.043 seconds |time=0.042996s;;;0.000000 size=462B;;;0

So looks good so far.

The problem I now have is that I need to use this to create a notification if it detects the word "Locked" on the website content after logging in, anything else should come back as "OK".

I have studied the check_http -h output above but not sure how to configure it to check for a string on the page? Is this even the correct plugin to use?

Help anyone?

Thanks


Mark


- Mark Thomas (Veeoh)

-----------------------
This thread is located in the archive at this URL:
http://www.nagiosexchange.org/nagiosplug-help.32.0.html?&tx_maillisttofaq_pi1[showUid]=4990
					




More information about the Help mailing list