<div>If you look at the content of the returned data it appears your call is failing for a bad license key.  Is that what you are tresting for?</div>
<div><br clear="all">\\Greg<br><br><br><br></div>
<div class="gmail_quote">On Fri, Jan 22, 2010 at 6:47 AM, Assaf Flatto <span dir="ltr"><<a href="mailto:nagios@flatto.net">nagios@flatto.net</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hello<br><br>I am trying to verify the working of a web service which output is a xml<br>content .<br><br>
I thought that using the check_http -s or -e will help me do the<br>verifications by searching for a string in the xml however when trying<br>the test , the result comes back as a 404 ( classified info changed to<br>XXX ).<br>
<br> ./check_http -H some.service.con -s "xml" -u<br>"xml.aspx?account_code=XXXXXXX&license_code=XXXXXXXXXXXXXXX&action=lookup&postcode=XXXXXX"<br><br>HTTP CRITICAL: HTTP/1.1 400 Bad Request - string not found - 163 bytes<br>
in 0.013 second response time |time=0.013409s;;;0.000000 size=163B;;;0<br><br>the output of curling (curl -D - $URL ) the page gives this :<br><br>Date: Fri, 22 Jan 2010 11:35:24 GMT<br>Server: Microsoft-IIS/6.0<br>X-Powered-By: <a href="http://asp.net/" target="_blank">ASP.NET</a><br>
X-AspNet-Version: 2.0.50727<br>NextAction:<br>NextType:<br>Prompt:<br>ResultType:<br>Cache-Control: private<br>Content-Type: text/xml<br>Content-Length: 356<br><br><?xml version="1.0" encoding="UTF-8"?><br>
<String Server="WEB11" Version="3.0" Date="22/01/2010 11:35:24"<br>Duration="0.000s"><br> <Schema Items="2"><br>   <Field Name="error_number" /><br>
   <Field Name="message" /><br> </Schema><br> <Data Items="1"><br>   <Item error_number="6" message="License key was not recognised" /><br> </Data><br>
<br><br>Does anyone have ideas on how to get xml content check ?<br>I looked at the nagiosexchange but did not find anything ( could be i<br>was looking in the wrong place/context) .<br><br>Thanks<br><br>Assaf<br><br>------------------------------------------------------------------------------<br>
Throughout its 18-year history, RSA Conference consistently attracts the<br>world's best and brightest in the field, creating opportunities for Conference<br>attendees to learn about information security's most important issues through<br>
interactions with peers, luminaries and emerging and established companies.<br><a href="http://p.sf.net/sfu/rsaconf-dev2dev" target="_blank">http://p.sf.net/sfu/rsaconf-dev2dev</a><br>_______________________________________________<br>
Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>