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

Mark Thomas mark at firstoption.net
Wed Oct 3 23:39:42 CEST 2007


ok - think i got it - using either -r or -R seems to work....
> 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
> 					
>
> -------------------------------------------------------------------------
> 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
>   



___________________________________________________________

First Option's outgoing email policy is at 
http://www.firstoption.net/emailpolicy.html, but a short summary is :-

- all email/attachments are confidential; do not use, circulate or release 
without our consent

- email is not authorised unless it is on First Option business

- email is not binding unless it is from an authorised person
and is signed with a digital certificate

First Option Ltd. - Switchboard +44 (0) 1962 738200
Signal House, Jacklyns Lane, Alresford, Hants, SO24 9JJ, United Kingdom
Registered Company No: 2453594
___________________________________________________________




More information about the Help mailing list